Skip to content

Commit

Permalink
remove the getrandom thing
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeohepperle committed Sep 20, 2023
1 parent 7f4fab9 commit 16ad86d
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 89 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

3 changes: 0 additions & 3 deletions codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ description = "Generate an API for interacting with a substrate node from FRAME
[features]
default = ["fetch-metadata"]
fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"]
web = ["getrandom/js"]

[dependencies]
codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] }
Expand All @@ -30,8 +29,6 @@ jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport
hex = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }
thiserror = { workspace = true }
getrandom = { workspace = true, optional = true }


[dev-dependencies]
bitvec = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ pub mod utils;
#[cfg(all(feature = "web", feature = "fetch-metadata"))]
compile_error!("subxt-codegen: the features 'web' and 'fetch_metadata' cannot be used together.");

#[cfg(feature = "web")]
#[allow(unused_imports)]
pub use getrandom as _;

pub use self::{
api::{GenerateRuntimeApi, RuntimeGenerator},
error::{CodegenError, TypeSubstitutionError},
Expand Down
Loading

0 comments on commit 16ad86d

Please sign in to comment.