mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: Use nightly rust tool chain in shell.nix
Note that the rust version is still stable in flake.nix which is used to build the provide the app via flake. The rustfmt.toml rules are only supported by rust nightly. With the current stable rust tool chain in flake.nix, `cargo fmt` gives me warnings like ``` Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel. Warning: can't set `format_code_in_doc_comments = false`, unstable features are only available in n ``` The format result with those warnings is different from the current code base for almost all files. I guess the main contributors of the repo use nightly rust. If so, we should make it consistent in shell.nix to help other contributors onboard with the same env.
This commit is contained in:
parent
47df39ee20
commit
647bda93aa
1 changed files with 6 additions and 7 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
rustToolchain
|
||||
rust-analyzer
|
||||
|
||||
nodePackages.cspell
|
||||
|
|
@ -16,13 +15,13 @@ pkgs.mkShell {
|
|||
ripgrep
|
||||
fzf
|
||||
zoxide
|
||||
|
||||
(rust-bin.nightly.latest.rust.override { extensions = [ "rust-src" ]; })
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; lib.optionals stdenv.isDarwin (
|
||||
with darwin.apple_sdk.frameworks; [ Foundation ]
|
||||
);
|
||||
buildInputs = with pkgs;
|
||||
lib.optionals stdenv.isDarwin
|
||||
(with darwin.apple_sdk.frameworks; [ Foundation ]);
|
||||
|
||||
env = {
|
||||
RUST_BACKTRACE = "1";
|
||||
};
|
||||
env = { RUST_BACKTRACE = "1"; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue