diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..350bd4e --- /dev/null +++ b/.cargo/config.toml @@ -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" \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 6311f33..11c6719 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", +] diff --git a/Cargo.toml b/Cargo.toml index 8c99310..377e8ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,7 @@ panic = "abort" [[bin]] name = "rustos" test = false -bench = false \ No newline at end of file +bench = false + +[dependencies] +bootloader = "0.9" \ No newline at end of file