Skip to content

Commit b3437c1

Browse files
committed
chore(deps): reorganize wasm dependencies
The getrandom crate is used only by the wasm feature, through the `ring` dependency. It was explicitly mentioned by our Cargo.toml to enable the `js` feature, required by the `wasm32-unknown-unknown` target. Starting from this commit, we stop mentioning the `getrandom` dependency and instead we make the `ring` dependency explicit. The `js` feature of the getrandom crate is now set by using a dedicated feature of the ring crate itself. Signed-off-by: Flavio Castelli <[email protected]>
1 parent e2b62cc commit b3437c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ verify = [
8585
"fulcio",
8686
"rekor",
8787
]
88-
wasm = ["chrono/wasmbind"]
88+
wasm = ["chrono/wasmbind", "ring/wasm32_unknown_unknown_js"]
8989

9090
[dependencies]
9191
async-trait = { version = "0.1", optional = true, default-features = false }
@@ -157,6 +157,8 @@ reqwest = { version = "0.12", default-features = false, features = [
157157
"json",
158158
"multipart",
159159
], optional = true }
160+
# used only by the wasm feature
161+
ring = { version = "0", default-features = false, optional = true }
160162
rsa = { version = "0.9", default-features = false, features = ["std"] }
161163
rustls-webpki = { version = "0.103", default-features = false, features = [
162164
"std",

0 commit comments

Comments
 (0)