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 與 Crates.io 的更多內容

到目前為止,我們只使用了 Cargo 最基本的功能來建置、執行與測試程式碼,但它能做的遠不止如此。在本章中,我們會討論它其他更進階的功能,示範如何做到以下事項:

  • 透過發佈設定檔自訂建置。
  • crates.io 發佈函式庫。
  • 使用工作空間組織大型專案。
  • crates.io 安裝二進位檔。
  • 使用自訂命令擴充 Cargo。

Cargo 能做的事情比本章涵蓋的功能還要多,如需完整說明,請參閱文件