Compare commits
4 Commits
feat-libin
...
master
Author | SHA1 | Date | |
---|---|---|---|
20f46098ec | |||
c9a9df5746 | |||
49b37f37c8 | |||
30cc19fb3c |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,4 +2,4 @@
|
|||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
/rust_dos.com
|
/rust_dos.com
|
||||||
rust.kex
|
*.kex
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
name = "kos"
|
name = "kos"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Kitsu <mail@kitsu.me>", "Sweetbread"]
|
authors = ["Kitsu <mail@kitsu.me>", "Sweetbread"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
@@ -19,6 +19,6 @@ opt-level = "z"
|
|||||||
lto = "thin"
|
lto = "thin"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cstr_core = { version = "0.2.4", default-features = false, features = ["nightly"] }
|
cstr_core = { version = "0.2.6", default-features = false, features = ["nightly"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@@ -18,4 +18,4 @@ args = ["build", "@@remove-empty(RELEASE_FLAG)"]
|
|||||||
[tasks.example]
|
[tasks.example]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--example", "${@}", "--", "-O", "binary", "--strip-all", "${@}.kex"]
|
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--example", "${@}", "--", "-O", "binary", "--strip-all", "${@}.kex"]
|
||||||
#install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
|
# install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
# Rust library for KolibriOS
|
# Rust library for KolibriOS
|
||||||
|
|
||||||
Project uses [cargo-make](https://github.com/sagiegurari/cargo-make) for building steps.
|
Project uses [cargo-make](https://github.com/sagiegurari/cargo-make) for building steps.
|
||||||
|
You need to install cargo-binutils: `cargo install cargo-binutils` and llvm-tools-preview: `rustup component add llvm-tools-preview` to make it work.
|
||||||
Also you need a working [FASM](https://flatassembler.net/download.php).
|
Also you need a working [FASM](https://flatassembler.net/download.php).
|
||||||
|
|
||||||
Once installed building is trivial then: `cargo make --profile production <example name>` produces
|
Once installed building is trivial then: `cargo make --profile production example <example name>` produces
|
||||||
a ready-to-use binary at root.
|
a ready-to-use binary at root.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"arch": "x86",
|
"arch": "x86",
|
||||||
"cpu": "pentium",
|
"cpu": "pentium",
|
||||||
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128",
|
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
|
||||||
"dynamic-linking": false,
|
"dynamic-linking": false,
|
||||||
"executables": true,
|
"executables": true,
|
||||||
"has-rpath": true,
|
"has-rpath": true,
|
||||||
|
Reference in New Issue
Block a user