Automaticly additional binaries with one cargo rush without --bin

Hello,

i want to compile a few binaries in one cargo rush without the --bin parameter. project/src/bin are the coolest way for me why i can use easy all deps but when i use workspaces as an test cargo only build the root project.

How i can automaticly compile a few binaries with cargo and/or i can use workspaces for that reason?

thx

ps: default-members require the --bin or default-run manifest key and i want the whole workspace or add-bin in one rush

Which crate is that command from? I can't find any crate called cargo-rush on crates.io. Or was this a typo?

Ha! I had to ask some AI to translate that post into plain English:

I want to compile several binaries in one Cargo build without using the --bin parameter. The project/src/bin directory is the most convenient for me because it allows me to easily include all dependencies. However, when I use workspaces, Cargo only builds the root project.

How can I automatically compile multiple binaries with Cargo, and can I use workspaces for this purpose?

Said AI also suggested how I do that but I think we have been warned of posting AI output. I suggest giving a try.

@bjorn3 sorry misstranslated, i have meaning "in on go", but i have recognized that i have made a mistake and only tested with cargo run but i have to test it with cargo build.

Now my questions is: when i use default-member how can i put the root(binary)-project in compile process from cargo? I mean i can all sub-projects

[workspace]
members = ["bin2","bin3"]
default-members = ["bin2","bin3"]

bin1->cargo.toml
bin1/bin2->cargo.toml
bin1/bin3->cargo.toml

How i can cargo that he compile with default-members the root-project and the sub-projects completly in an workspace?

Was all my mistake why i have used cargo run and i must give cargo run an binary-targetsmile.

facepalm it gives no bin1 in root only a Cargo.toml for control the subs. All right:)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.