Crates.io | kos |
lib.rs | kos |
version | 0.5.0 |
source | src |
created_at | 2024-11-10 08:47:09.126044 |
updated_at | 2025-01-17 06:18:47.930713 |
description | The K-Scale Operating System |
homepage | |
repository | https://github.com/kscalelabs/kos |
max_upload_size | |
id | 1442737 |
size | 125,444 |
Welcome to the K-Scale Operating System!
cross
toolchainYou can install cross
by running:
cargo install cross
Native build:
cargo build
You can run the kos-stub
endpoint for testing purposes using the command:
cargo run --bin kos-stub
After doing this, you can test the endpoint using the pykos
client:
import pykos
client = pykos.KOS("127.0.0.1")
Cross build for kbot
:
cross build --release --target aarch64-unknown-linux-gnu
RUST_LOG=debug cargo run
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 are how you specify the specific platform to run K-OS on (e.g. -F kos-kbot when running on K-Bot)
Reference the existing platforms / features in platforms.
You essentially create another package (Cargo.toml, lib.rs, etc) with the necessary actuator and imu implementations according to the specifications in kos-core
To save trace logs to a file, pass the --log
flag:
cargo run -- --log
cargo fmt --all
to format the code.cargo clippy
to check for lint errors.cargo test
to run the tests.tracing
for logging.eyre
to handle errors.unwrap()
or expect()
.This project is licensed under the MIT License. See the LICENSE file for details.