4 Commits

Author SHA1 Message Date
20f46098ec Update .gitignore 2024-03-23 14:55:48 +03:00
c9a9df5746 Modify README.md a little
Add info about requirements
2024-03-23 14:55:48 +03:00
49b37f37c8 config: Update Cargo.toml
Bump cstr_core
2024-03-23 14:55:48 +03:00
30cc19fb3c build: Update layout 2024-03-23 14:55:48 +03:00
5 changed files with 7 additions and 6 deletions

2
.gitignore vendored
View File

@@ -2,4 +2,4 @@
**/*.rs.bk
/Cargo.lock
/rust_dos.com
rust.kex
*.kex

View File

@@ -2,7 +2,7 @@
name = "kos"
version = "0.1.0"
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
@@ -19,6 +19,6 @@ opt-level = "z"
lto = "thin"
[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]

View File

@@ -18,4 +18,4 @@ args = ["build", "@@remove-empty(RELEASE_FLAG)"]
[tasks.example]
command = "cargo"
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"] }

View File

@@ -1,7 +1,8 @@
# Rust library for KolibriOS
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).
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.

View File

@@ -1,7 +1,7 @@
{
"arch": "x86",
"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,
"executables": true,
"has-rpath": true,