-
Notifications
You must be signed in to change notification settings - Fork 21
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
Release crates on crates.io #1842
Comments
This comment was originally posted by @sandhose at matrix-org/matrix-authentication-service#1842 (comment). I'm curious, can you elaborate on how it makes distro packaging easier? |
This comment was originally posted by @V02460 at matrix-org/matrix-authentication-service#1842 (comment). Speaking for Fedora, its Rust Packaging Guidelines require each packaged library crate to be published on crates.io. This is done to avoid namespace and dependency problems. Another point is the available automation and tooling for Rust packaging, namely rust2rpm in this case, which is designed to work with crates.io. The annoyances you describe sound like they can be helped by automation of the distribution steps. I have no previous experience with publication of Rust crates, but with some guidance I might assist you? |
This comment was originally posted by @sandhose at matrix-org/matrix-authentication-service#1842 (comment). The guidelines you linked do say:
Which is our case. MAS is effectively an application, not a library. We are effectively in the same case as this unaswered stackoverflow question, where we have other assets to ship other than the binary, which is not something crates.io/the cargo build system is made for. At some point, I was embedding all the assets within the binary, but that got very impractical, especially when the number of different assets kind grew |
This issue was originally created by @V02460 at matrix-org/matrix-authentication-service#1842.
Make pushing releases to crates.io part of the release process. This secures the mas-* canonical names for the project. It also helps me and other packagers with preparations for distro packaging.
The text was updated successfully, but these errors were encountered: