Skip to content

Commit

Permalink
chore: Remove getrandom workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 21, 2023
1 parent 178c535 commit 862cb13
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions crates/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,5 @@ wasm-logger = "0.2.0"
console_error_panic_hook = "0.1.7"
gloo-utils = { version = "0.1", features = ["serde"] }

# This is an unused dependency, we are adding it
# so that we can enable the js feature in getrandom.
getrandom = { version = "*", features = ["js"] }

[build-dependencies]
build-data = "0.1.3"
build-data = "0.1.3"
7 changes: 0 additions & 7 deletions crates/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ use serde::{Deserialize, Serialize};
use std::str::FromStr;
use wasm_bindgen::prelude::*;

// This dependency is not used. We import it
// to bypass the `unused_crate_dependencies` lint.
//
// It is being imported as we get errors regarding the
// js feature not being enabled.
use getrandom as _;

mod circuit;
mod compile;

Expand Down

0 comments on commit 862cb13

Please sign in to comment.