config: update things and add shell.nix

This commit is contained in:
2026-03-14 18:23:41 +03:00
parent 21c90abd44
commit 3e8244f686
4 changed files with 21 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
[unstable]
build-std = ["core", "compiler_builtins", "alloc"]
json-target-spec = true
[build]
target = "i686-kolibri.json"

View File

@@ -5,7 +5,6 @@
"dynamic-linking": false,
"executables": true,
"has-rpath": true,
"is-builtin": false,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"llvm-target": "i686-unknown-none-code32",
@@ -14,9 +13,9 @@
"relocation-model": "static",
"position-independent-executables": false,
"relro-level": "off",
"target-c-int-width": "32",
"target-c-int-width": 32,
"target-endian": "little",
"target-pointer-width": "32",
"target-pointer-width": 32,
"vendor": "unknown",
"disable-redzone": true,
"panic-strategy": "abort",

View File

@@ -1 +1,4 @@
nightly
[toolchain]
channel = "nightly"
components = ["rust-src", "llvm-tools-preview"]
profile = "default"

14
shell.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
rustup
cargo-make
cargo-binutils
fasm
];
shellHook = ''
export PATH="$HOME/.cargo/bin:$PATH"
'';
}