We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f654f commit 718caa9Copy full SHA for 718caa9
flake.nix
@@ -33,15 +33,10 @@
33
let
34
inherit (pkgs) lib;
35
# Toolchain with wasm32 target
36
- toolchain = with fenix.packages.${system};
37
- combine [
38
- complete.cargo
39
- complete.clippy
40
- complete.rust-src
41
- complete.rustc
42
- complete.rustfmt
43
- targets.wasm32-unknown-unknown.latest.rust-std
44
- ];
+ toolchain = fenix.packages.${system}.fromToolchainFile {
+ file = ./rust-toolchain.toml;
+ sha256 = "sha256-2Af13p12CWwmppsdujS1EeCQ41u0rMzJmqNh7WQ2QKM=";
+ };
45
# craneLib with wasm32 toolchain
46
craneLib = crane.lib.${system}.overrideToolchain toolchain;
47
# Node modules installer
rust-toolchain.toml
@@ -1,3 +1,5 @@
1
[toolchain]
2
channel = "nightly-2024-02-12"
3
-profile = "default"
+profile = "minimal"
4
+targets = ["wasm32-unknown-unknown"]
5
+
0 commit comments