Comprehensive Rust(繁体中文)
and how to include third-party crates in Chromium. • Bare-metal:這是半天的課程,會說明如何使用 Rust 在 bare-metal (嵌入式系統) 上台開發。課程 內容包含微控制器和處理器。 • 並行:這個全天課程著重於 Rust 中的並行問題。我們將探討傳統並行 (使用執行緒和互斥鎖進行先 占式排程) 以及 async/await 並行 focus is in the text box. 大部分程式碼範例都可供編輯,如上所示。有些程式碼範例無法編輯,原因如下: • 嵌入式遊樂場無法執行單元測試。請複製貼上程式碼,然後在實際的 Playground 中開啟,即可示 範單元測試。 • 當您一離開頁面,嵌入式遊樂場就會失去目前狀態!因此,學生應使用本機 Rust 安裝項目或透過 Playground 來做習題。 18 2.3 使用 Cargo allocator or even the presence of an operating system. • alloc 包括需要全域堆積配置器的型別,例如 Vec、Box 和 Arc。 • 嵌入式 Rust 應用程式通常只使用 core,偶爾會使用 alloc。 16.2 說明文件測試 Rust 說明文件的主題涵蓋甚廣,包括: • All of the details about loops0 码力 | 358 页 | 1.41 MB | 10 月前3
共 1 条
- 1