はじめに
この実験では、Rust でクレートを新しいライブラリにリンクするには、rustc
コマンドの --extern
フラグを使用し、そのすべての項目をライブラリと同じ名前のモジュールの下にインポートできます。
注: 実験でファイル名が指定されていない場合は、好きなファイル名を使用できます。たとえば、
main.rs
を使用して、rustc main.rs &&./main
でコンパイルして実行できます。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
rust(("Rust")) -.-> rust/DataStructuresandEnumsGroup(["Data Structures and Enums"])
rust(("Rust")) -.-> rust/ProjectManagementandOrganizationGroup(["Project Management and Organization"])
rust(("Rust")) -.-> rust/FunctionsandClosuresGroup(["Functions and Closures"])
rust/FunctionsandClosuresGroup -.-> rust/function_syntax("Function Syntax")
rust/FunctionsandClosuresGroup -.-> rust/expressions_statements("Expressions and Statements")
rust/DataStructuresandEnumsGroup -.-> rust/method_syntax("Method Syntax")
rust/ProjectManagementandOrganizationGroup -.-> rust/cargo_crates("Cargo and Crates")
subgraph Lab Skills
rust/function_syntax -.-> lab-99338{{"ライブラリの使用"}}
rust/expressions_statements -.-> lab-99338{{"ライブラリの使用"}}
rust/method_syntax -.-> lab-99338{{"ライブラリの使用"}}
rust/cargo_crates -.-> lab-99338{{"ライブラリの使用"}}
end