Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Make `sha2` an optional dependency of `wasmtime-environ` (#14305)

CfirTsabarie8890cc7b367
diff --git a/crates/environ/Cargo.toml b/crates/environ/Cargo.toml
index aecdb45fab..b503d5557c 100644
--- a/crates/environ/Cargo.toml
+++ b/crates/environ/Cargo.toml
@@ -40,7 +40,7 @@ wasmtime-component-util = { workspace = true, optional = true }
wasmtime-core = { workspace = true, features = ['serde'] }
semver = { workspace = true, optional = true, features = ['serde'] }
smallvec = { workspace = true, features = ['serde'] }
-sha2 = { workspace = true }
+sha2 = { workspace = true, optional = true }
[dev-dependencies]
clap = { workspace = true, features = ['default'] }
@@ -95,5 +95,6 @@ std = [
'rustc-demangle?/std',
]
rr = [
- "component-model"
+ "component-model",
+ "dep:sha2",
]