Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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