mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-06 09:48:58 +00:00
chore: update Rust to 1.95; replace cfg_if with cfg_select (#2121)
This commit is contained in:
@@ -29,15 +29,15 @@
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
rustVersion = "1.93.0";
|
||||
makeRust =
|
||||
features:
|
||||
let
|
||||
rustTarget = pkgs.stdenv.hostPlatform.config;
|
||||
muslTarget = pkgs.lib.replaceStrings [ "gnu" ] [ "musl" ] rustTarget;
|
||||
muslTargets = if pkgs.stdenv.isLinux then [ muslTarget ] else [ ];
|
||||
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
in
|
||||
pkgs.rust-bin.stable.${rustVersion}.default.override {
|
||||
toolchain.override {
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"rust-analyzer"
|
||||
|
||||
Reference in New Issue
Block a user