Crates.io | cargo-osdk |
lib.rs | cargo-osdk |
version | |
source | src |
created_at | 2024-01-16 06:20:14.629584 |
updated_at | 2024-12-09 01:18:54.070627 |
description | Accelerate OS development with Asterinas OSDK |
homepage | |
repository | https://github.com/asterinas/asterinas |
max_upload_size | |
id | 1101332 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
OSDK (short for Operating System Development Kit) is designed to simplify the development of Rust operating systems. It aims to streamline the process by leveraging the framekernel architecture, originally proposed by Asterinas.
cargo-osdk
is a command-line tool that facilitates project management for those developed on the framekernel architecture. Much like Cargo for Rust projects, cargo-osdk
enables building, running, and testing projects conveniently.
Currently, cargo-osdk
only supports x86_64 ubuntu system.
To run a kernel with QEMU, cargo-osdk
requires the following tools to be installed:
About how to install Rust, you can refer to the official site.
After installing Rust, you can install Cargo tools by
cargo install cargo-binutils
Other tools can be installed by
apt install build-essential grub2-common qemu-system-x86 ovmf xorriso
Then, cargo-osdk
can be installed by
cargo install cargo-osdk
If cargo-osdk
is already installed, the tool can be upgraded by
cargo install --force cargo-osdk
Here we provide a simple demo to demonstrate how to create and run a simple kernel with cargo-osdk
.
With cargo-osdk
, a kernel project can be created by one command
cargo osdk new --kernel my-first-os
Then, you can run the kernel with
cd my-first-os && cargo osdk run
You will see Hello world from guest kernel!
from your console.
The basic usage of cargo-osdk
is
cargo osdk <COMMAND>
Currently we support following commands:
The following command can be used to discover the available options for each command.
cargo osdk help <COMMAND>
cargo-osdk
utilizes a configuration file named OSDK.toml
to define its precise behavior. To learn more about the manifest specification, please refer to the book.
Asterinas OSDK is developed as a sub-project of Asterinas. It shares the same repository and versioning rules with the kernel. Please contribute to OSDK according to the contribution guide of Asterinas.
To enable advanced features of the editor on OSDK, please open the Asterinas repository as a workspace using the File > Open Workspace from File...
menu entry, and select the file .code-workspace
in the Asterinas repository root as the configuration.