Dioxus: Difference between revisions
CathalMullan (talk | contribs) m Fix page hierarchy. |
wasm-bindgen-cli package uses buildWasmBindgenCli function now. |
||
| Line 56: | Line 56: | ||
==== Choosing ''wasm-bindgen-cli'' version ==== | ==== Choosing ''wasm-bindgen-cli'' version ==== | ||
You will also want to ensure the version of ''wasm-bindgen-cli'' matches whatever is in your lock file.<syntaxhighlight lang="nix"> | You will also want to ensure the version of ''wasm-bindgen-cli'' matches whatever is in your lock file.<syntaxhighlight lang="nix">cargoLock = builtins.fromTOML (builtins.readFile ./Cargo.lock); | ||
cargoLock = builtins.fromTOML (builtins.readFile ./Cargo.lock); | |||
wasmBindgen = pkgs.lib.findFirst | wasmBindgen = pkgs.lib.findFirst | ||
| Line 64: | Line 63: | ||
cargoLock.package; | cargoLock.package; | ||
wasm-bindgen-cli = pkgs.wasm-bindgen-cli | wasm-bindgen-cli = pkgs.buildWasmBindgenCli rec { | ||
src = pkgs.fetchCrate { | |||
pname = "wasm-bindgen-cli"; | |||
version = wasmBindgen.version; | |||
}; | hash = pkgs.lib.fakeHash; | ||
</syntaxhighlight> | }; | ||
cargoDeps = pkgs.rustPlatform.fetchCargoVendor { | |||
inherit src; | |||
inherit (src) pname version; | |||
hash = pkgs.lib.fakeHash; | |||
}; | |||
};</syntaxhighlight> | |||
[[Category:Rust]] | [[Category:Rust]] | ||