私は錆に慣れていて、Cargoでテストプロジェクトを構築しようとしています。マニフェストの解析に失敗しました - ターゲットが指定されていません
[package]
name = "rust-play"
version = "0.0.1"
authors = [ "Bradley Wogsland <omitted>" ]
(実際TOMLファイルには、私の電子メールは省略されません):私のCargo.toml
は次のようになります。私はcargo build
私は、次のエラーを取得していた場合:
error: failed to parse manifest at
/Users/wogsland/Projects/rust-play/Cargo.toml
Caused by: no targets specified in the manifest either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
私main
機能はsrc/test.rs
ファイルです。それをTOMLファイルで指定する必要がありますか?もしそうなら、どうですか?私は追加しようとしました
target = "src/test.rs"
無駄です。
ありがとう、これは非常に役に立ちました! – wogsland