Skip to content

Commit 7516c4d

Browse files
committed
Bump flake
1 parent a546ce1 commit 7516c4d

3 files changed

Lines changed: 31 additions & 10 deletions

File tree

flake.lock

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

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
wasm = command-utils.wasm.${system};
127127
cmd = command-utils.cmd.${system};
128128

129-
bodge-commands = {
129+
projectCommands = {
130130
"bodge" = cmd "Build ucan_wasm with wasm-bodge" ''
131131
set -e
132132
rm -rf "$WORKSPACE_ROOT/ucan_wasm/dist"
@@ -174,8 +174,8 @@
174174
xdg-open = pkgs.xdg-utils;
175175
})
176176

177-
# Bodge commands
178-
bodge-commands
177+
# Project-specific commands
178+
{ commands = projectCommands; packages = []; }
179179
];
180180
in rec {
181181
devShells.default = pkgs.mkShell {

ucan_wasm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ rust-version.workspace = true
1515
[dependencies]
1616
ucan = { path = "../ucan" }
1717

18+
[target.'cfg(target_arch = "wasm32")'.dependencies]
19+
getrandom = { version = "0.2", features = ["js"] }
20+
1821
[lints]
1922
workspace = true

0 commit comments

Comments
 (0)