cargo osdk new
概覽
The cargo osdk new command is used to create a kernel project or a new library project. The usage is as follows:
cargo osdk new [OPTIONS] <name>
引數
<name>:軟體箱的名稱。
選項
--kernel: Use the kernel template. If this option is not set, the library template will be used by default.
--library: Use the library template. This is the default option.
範例
- 建立名為
myos的新內核:
cargo osdk new --kernel myos
- 建立名為
mylib的新程式庫:
cargo osdk new mylib