feat: настройки для создания исполняемого бинаря

This commit is contained in:
ilya 2026-09-29 05:16:11 +03:00
parent 322d0a0406
commit a887b12014
3 changed files with 23 additions and 1 deletions

10
.cargo/config.toml Normal file
View file

@ -0,0 +1,10 @@
[build]
target = "x86-rustos.json"
[unstable]
json-target-spec = true
build-std-features = ["compiler-builtins-mem"]
build-std = ["core", "compiler_builtins"]
[target.'cfg(target_os = "none")']
runner = "bootimage runner"

9
Cargo.lock generated
View file

@ -2,6 +2,15 @@
# It is not intended for manual editing.
version = 4
[[package]]
name = "bootloader"
version = "0.9.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e22d5a0b9e11dd5bee9d24a68885de6dc7ed367f897323b1c1286150fd469374"
[[package]]
name = "rustos"
version = "0.1.0"
dependencies = [
"bootloader",
]

View file

@ -12,4 +12,7 @@ panic = "abort"
[[bin]]
name = "rustos"
test = false
bench = false
bench = false
[dependencies]
bootloader = "0.9"