rust.nix
1 { 2 ... 3 }: 4 { 5 languages.rust = { 6 enable = true; 7 channel = "stable"; 8 # lld.enable = true; # FIXME: breaks dioxus 9 # mold.enable = true; # FIXME: breaks loco 10 11 components = [ 12 "rustc" 13 "cargo" 14 "clippy" 15 "rustfmt" 16 "rust-std" 17 "rust-src" 18 "rust-analyzer" 19 ]; 20 21 # development.yaml is now tangled from CONTRIBUTING.org 22 loco.enable = true; 23 24 # Dioxus.toml is now tangled from CONTRIBUTING.org 25 dioxus = { 26 enable = true; 27 desktop.linux.enable = false; 28 mobile.android.enable = false; 29 }; 30 }; 31 }