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
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"]