mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Multiple ways to specify OSDK new's type
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
dcab4e1039
commit
3dce753c86
@ -13,7 +13,7 @@ Creating a new kernel project is simple.
|
||||
You only need to execute the following command:
|
||||
|
||||
```bash
|
||||
cargo osdk new --type kernel myos
|
||||
cargo osdk new --kernel myos
|
||||
```
|
||||
|
||||
## Creating a new library project
|
||||
|
@ -8,7 +8,7 @@ Suppose you have created a new kernel project named `myos`
|
||||
and you are in the project directory:
|
||||
|
||||
```bash
|
||||
cargo osdk new --type kernel myos && cd myos
|
||||
cargo osdk new --kernel myos && cd myos
|
||||
```
|
||||
|
||||
## Build the project
|
||||
|
@ -24,7 +24,7 @@ Then, add the following content to `Cargo.toml`:
|
||||
The two projects can be created using the following commands:
|
||||
|
||||
```bash
|
||||
cargo osdk new --type kernel myos
|
||||
cargo osdk new --kernel myos
|
||||
cargo osdk new mymodule
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user