I’m a little confused by the process. I have a
src/main.rs (my project is not a library), but running
cargo publish complains:
error: api errors: wildcard (`*`) dependency constraints are not allowed on crates.io. See http://doc.crates.io/faq.html#can-libraries-use--as-a-version-for-their-dependencies for more information
I also don’t understand why
cargo publish rebuilds my code. Every time I run
cargo publish, my project, and all its dependencies, are recompiled! Why is that?
Whilst I’ve found the RFC for cargo install, http://doc.crates.io/faq.html#can-libraries-use--as-a-version-for-their-dependencies does not explain why cargo thinks my package is a library, and the crates.io publishing docs don’t seem to mention
Are there canonical docs somewhere? What am I missing? Cargo usually works wonderfully, so I think I may be doing something silly somewhere.