2021-02-14から1日間の記事一覧
Cargoで作ったライブラリプロジェクトにExamplesを追加することができる。 xion.io // examples/hello.rs fn main() { println!("Hello from an example!"); } $ cargo run --example hello $ cargo run --example hello2 -- Alice
Cargoで作ったライブラリプロジェクトにExamplesを追加することができる。 xion.io // examples/hello.rs fn main() { println!("Hello from an example!"); } $ cargo run --example hello $ cargo run --example hello2 -- Alice