-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo package
doesn't work with child packages
#849
Comments
Adding to this: The current design seems to be that each crate should be published separately. This design seems flawed, since crates are also the compilation unit. There are plenty of reason to split a single "project" into multiple compilation units: reducing build times, using a compiler plugin, … But the "project" as a whole is still the thing I want to publish and give a version number to, using the internal crates individually doesn’t necessarily make sense. Please consider adding a new concept of "project" or "package" (or whatever it should be called): the thing that is published on crates.io, and consists of a "root" crate and zero or more additional crates that are |
It's true that this is by design and currently intentional, but @SimonSapin those are indeed some interesting points. For the near term we're gonna have to live with publishing each crate separately, but we can certainly investigate implementing something like this. cc @wycats, I'm curious what you think here as well? |
Ooops... |
I wonder how ssh2-rs works then. It has a child package called Regards, |
@IvanUkhov you'll have to publish each dependency independently (via |
I'm closing this as it's working as intended, but I've opened #1169 to make this more ergonomic. |
Cargo package
only archives files for the current package, the strategy which do not work for packages with child packages like rust-encoding (index tables) or gl-rs (generators). This is primarily a problem ofPathSource::list_files_*
excluding child packages, but also a problem of the basic design---"should one archive represent only one package?".The text was updated successfully, but these errors were encountered: