Skip to content

Commit 27c4fdc

Browse files
committed
Allow use of wasip3 0.3 for MSRV reasons.
This allows a project dependeing on `getrandom` to use this to get an Fully Rust-1.85-compatible Cargo.lock, while still allowing projects with newer MSRV to use 0.4: ``` CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo update -p getrandom ``` Inspired by the windows-sys documentation that recommends using the same pattern.
1 parent f71482e commit 27c4fdc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ wasip2 = { version = "1", default-features = false }
8282

8383
# wasi_p2_3
8484
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p3"))'.dependencies]
85-
wasip3 = "0.4"
85+
# TODO(MSRV): Remove 0.3.
86+
# Projects that need to support MSRV 1.85 can use the following:
87+
# ```
88+
# CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo update -p getrandom
89+
# ```
90+
wasip3 = ">=0.3, <=0.4"
8691

8792
# wasm_js
8893
[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies]

0 commit comments

Comments
 (0)