Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
chore: Fix potentially cyclic dependencies downstream:
Browse files Browse the repository at this point in the history
* Remove vestigial "getrandom" dependency
* Remove "serde-deserialize" feature in "wasm-bindgen"
* Make `noosphere_core::api::route` public
  • Loading branch information
jsantell committed Mar 25, 2024
1 parent 116c071 commit 62050ce
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ ed25519-dalek = { version = "2" }
fastcdc = { version = "3.1" }
futures = { version = "^0.3.30" }
futures-util = { version = "0.3" }
getrandom = { version = "~0.2", features = ["js"]}
gloo-net = { version = "0.4" }
gloo-timers = { version = "0.3", features = ["futures"] }
ignore = { version = "0.4.20" }
Expand Down
2 changes: 0 additions & 2 deletions rust/noosphere-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ tokio = { workspace = true, features = ["full"] }
tracing-subscriber = { workspace = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: This is needed so that rand can be included in WASM builds
getrandom = { workspace = true, features = ["js"] }
gloo-net = { workspace = true }
wasm-streams = { workspace = true }
wasm-bindgen = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions rust/noosphere-core/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub mod v0alpha2;

pub use client::*;
pub use data::*;
pub use route::*;

// Re-export `http::StatusCode` here as our preferred `StatusCode` instance,
// disambiguating from other crate's implementations.
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rocksdb = { version = "0.22.0", optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
tokio = { workspace = true, features = ["sync", "macros"] }
wasm-bindgen = { workspace = true, features = ["serde-serialize"] }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = { workspace = true }
serde-wasm-bindgen = { workspace = true }
js-sys = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions rust/noosphere-ucan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ wasm-bindgen = { workspace = true, optional = true }
wasm-bindgen-futures = { workspace = true, optional = true }
js-sys = { workspace = true, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: This is needed so that rand can be included in WASM builds
getrandom = { workspace = true, features = ["js"] }

[dev-dependencies]
serde_ipld_dagcbor = { workspace = true }
wasm-bindgen-test = { workspace = true }
Expand Down

0 comments on commit 62050ce

Please sign in to comment.