You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are trying to add a target, you should use a rust-toolchain.toml file. In your case, this can look like this:
[toolchain]
channel = "nightly-2022-03-05"# or whatever channel you are usingtargets = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu"]
There isn't yet a way to directly override what toolchain nix-cargo-integration will use, as I haven't yet thought of a good way to expose this. Once #56 is merged, I can work on this more.
I tried using a toolchain file but it didn't seem to have any effect. Maybe some interaction with cargo workspaces? I put the toolchain file in the root workspace directory next to Cargo.lock
Is it possible to globally overlay rustc, rustfmt, cargo, etc. for the dev shell and the build environment? I tried to use https://github.com/yusdacra/nix-cargo-integration/blob/master/docs/example_flake.nix#L39 but I wasn't very successful.
In particular, I am interested in using a version of rustc which has the
wasm32-unknown-unknown
target, e.g. from https://github.com/oxalica/rust-overlay.The text was updated successfully, but these errors were encountered: