Skip to content

Commit 718caa9

Browse files
committedSep 10, 2024
build: Update rust toolchain
1 parent 49f654f commit 718caa9

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed
 

‎flake.nix

+4-9
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,10 @@
3333
let
3434
inherit (pkgs) lib;
3535
# 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-
];
36+
toolchain = fenix.packages.${system}.fromToolchainFile {
37+
file = ./rust-toolchain.toml;
38+
sha256 = "sha256-2Af13p12CWwmppsdujS1EeCQ41u0rMzJmqNh7WQ2QKM=";
39+
};
4540
# craneLib with wasm32 toolchain
4641
craneLib = crane.lib.${system}.overrideToolchain toolchain;
4742
# Node modules installer

‎rust-toolchain.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[toolchain]
22
channel = "nightly-2024-02-12"
3-
profile = "default"
3+
profile = "minimal"
4+
targets = ["wasm32-unknown-unknown"]
5+

0 commit comments

Comments
 (0)