mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 20:16:42 +00:00
Supporting running OSDK commands in workspace root
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c7b7e2473f
commit
aaf101a53e
@ -49,6 +49,9 @@ myworkspace/
|
||||
└── lib.rs
|
||||
```
|
||||
|
||||
At present, OSDK mandates that there must be only one kernel project
|
||||
within a workspace.
|
||||
|
||||
In addition to the two projects,
|
||||
OSDK will also generate `OSDK.toml` and `rust-toolchain.toml`
|
||||
at the root of the workspace.
|
||||
@ -78,8 +81,8 @@ This function will call the function from `mymodule`:
|
||||
```rust
|
||||
#[aster_main]
|
||||
fn kernel_main() {
|
||||
let avail_mem_as_mb = mymodule::available_memory() / 1_000_000;
|
||||
println!("The available memory is {} MB", avail_mem_as_mb);
|
||||
let avail_mem_as_mb = mymodule::available_memory() / 1_000_000;
|
||||
println!("The available memory is {} MB", avail_mem_as_mb);
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user