検索
Results of 1 - 10 of about 193 for Cargo (0.003 sec.)
- Dependencies - Rust By Example 日本語版 13461
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...分かるでしょう。幸運なことに、Rustのエコシステムには cargo が標準装備されています! cargo によってプロジェクト...く作るには下記のようにします。 # A binary # バイナリ cargo new foo # OR A library # またはライブラリ cargo ne...行すると、次のようなファイル階層ができます。 foo ├── Cargo.toml └── src └── main.rs main.rs がこの新規プロジェ... - https://man.plustar.jp/rust/example/cargo/deps.html - [similar]
- Build Scripts - Rust By Example 日本語版 12331
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...Navy Ayu Rust By Example 日本語版 ビルドスクリプト cargo による通常のビルドでは十分でないことが時々あります...ード生成や、コンパイルが必要なネイティブコードなど、 cargo がクレートをうまくコンパイルするにはなんらかの前提...条件が必要かもしれません。この問題を解決するため、Cargoが実行できるビルドスクリプトがあります。 ビルドスクリ... - https://man.plustar.jp/rust/example/cargo/build_scripts.html - [similar]
- Unit testing - Rust By Example 日本語版 10625
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...t_eq!(bad_add(1, 2), 3); } } Tests can be run with cargo test . $ cargo test running 2 tests test tests::te...result(1, 10); } } Running these tests gives us: $ cargo test running 3 tests test tests::test_any_panic .....un specific tests one may specify the test name to cargo test command. $ cargo test test_any_panic running... - https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
- Tests - Rust By Example 日本語版 10484
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...合テストは tests/ ディレクトリ内に置きます。 foo ├── Cargo.toml ├── src │ └── main.rs │ └── lib.rs └── tests...ent testing styles: Unit , Doc , and Integration . cargo は、全てのテストを簡単に実行する方法を提供します。...$ cargo test 出力はこのようになります。 $ cargo test Compi... - https://man.plustar.jp/rust/example/cargo/test.html - [similar]
- Conventions - Rust By Example 日本語版 9637
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...ではこのようなディレクトリ階層がありました。 foo ├── Cargo.toml └── src └── main.rs しかし同じプロジェクトで2...つのバイナリが欲しいとします。その場合は? cargo はこれもサポートしています。以前見た通りデフォルト...トリに置くことで他のバイナリを追加できます。 foo ├── Cargo.toml └── src ├── main.rs └── bin └── my_other_bin.... - https://man.plustar.jp/rust/example/cargo/conventions.html - [similar]
- Cargo - Rust By Example 日本語版 9072
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...fault) Rust Coal Navy Ayu Rust By Example 日本語版 Cargo cargo はRustの公式パッケージ管理ツールです。とても...単な基本機能を説明します。包括的なドキュメントは The Cargo Book を参照してください。 関連キーワード: Cargo ,... - https://man.plustar.jp/rust/example/cargo.html - [similar]
- ?の導入 - Rust By Example 日本語版 7942
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...e and run this example without errors, while using Cargo, change the value // of the `edition` field, in th...e `[package]` section of the `Cargo.toml` file, to "2015". // Cargoを使いながらこの例を...エラーなくコンパイル、及び実行する場合、 // `Cargo.toml`ファイル内、`[package]`セクションの`edition`の... - https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
- Dev-dependencies - Rust By Example 日本語版 7518
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...r benchmarks) only. Such dependencies are added to Cargo.toml in the [dev-dependencies] section. These depe...a crate that extends standard assert! macros. File Cargo.toml : # standard crate data is left out [dev-depe...est_add() { assert_eq!(add(2, 3), 5); } } See Also Cargo docs on specifying dependencies. 関連キーワード: d... - https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
- Integration testing - Rust By Example 日本語版 7377
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...any parts of your library work correctly together. Cargo looks for integration tests in tests directory nex...ert_eq!(adder::add(3, 2), 5); } Running tests with cargo test command: $ cargo test running 0 tests test re... - https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
- ドキュメンテーション - Rust By Example 日本語版 7094
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests...Rust By Example 日本語版 ドキュメンテーション Use cargo doc to build documentation in target/doc . Use car...run all tests (including documentation tests), and cargo test --doc to only run documentation tests. These... - https://man.plustar.jp/rust/example/meta/doc.html - [similar]