Skip to content

Commit 06bc85b

Browse files
committed
Use wasm_js feature of getrandom in gix-diff
This is instead of the old `js` feature, which is absent in `getrandom` 0.3. This change makes it possible to resolve dependencies, as `Cargo.lock` now reflects. However, the features are not equivalent, and further changes will need to be made, at least to how building is done, to allow `getrandom` 0.3 to work on `wasm32-unknown-unknown`. See #2092.
1 parent 32b6408 commit 06bc85b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gix-diff/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ gix-traverse = { version = "^0.47.0", path = "../gix-traverse", optional = true
4444
thiserror = "2.0.0"
4545
imara-diff = { version = "0.1.8", optional = true }
4646
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
47-
getrandom = { version = "0.3.3", optional = true, default-features = false, features = ["js"] }
47+
getrandom = { version = "0.3.3", optional = true, default-features = false, features = ["wasm_js"] }
4848
bstr = { version = "1.12.0", default-features = false }
4949

5050
document-features = { version = "0.2.0", optional = true }

0 commit comments

Comments
 (0)