1 unstable release

0.1.1 Nov 14, 2024

#393 in Operating systems

Download history 85/week @ 2024-11-08 39/week @ 2024-11-15 5/week @ 2024-11-22 2/week @ 2024-11-29 8/week @ 2024-12-06

139 downloads per month
Used in kos

MIT license

38KB
910 lines

K-Scale OS

Welcome to the K-Scale Operating System!

Building

Prerequisites

  • cross toolchain

Native build

Native build with stub features:

cargo build --features stub

Cross build

Cross build for kbot:

cross build --release --target aarch64-unknown-linux-gnu --features kscale_pro

Running

RUST_LOG=debug cargo run --features stub

You can specify logging levels for individual modules by adding module_name=log_level to the RUST_LOG environment variable. For example:

RUST_LOG=debug,krec=warn cargo run --features stub

To save trace logs to a file, pass the --log flag:

cargo run --features stub -- --log

Contributing

  • Use cargo fmt --all to format the code.
  • Use cargo clippy to check for lint errors.
  • Use cargo test to run the tests.
  • Use tracing for logging.
  • Use eyre to handle errors.
  • No unwrap() or expect().

License

This project is licensed under the MIT License. See the LICENSE file for details.

Dependencies

~9–19MB
~261K SLoC