This PR introduces clarifications for Naming and Versioning guidelines for Rust packages. I tried to address some questions that have come up a few times on the #fedora-rust IRC channel.
Naming:
Document that application-only crates may / need to diverge from the standard rust-$crate naming scheme:
application-only crates published on crates.io MAY drop rust- prefix
application-only crates not published on crates.io MUST drop rust- prefix to prevent naming collisions with the crates.io namespace
Versioning:
Document that some features of SemVer as used in the cargo ecosystem must be dropped when packaging crates as RPMs for Fedora (i.e. +x.y.z build information encoded in some published crates's version field MUST be dropped, as it pollutes generated Provides and might cause dependency resolution issues).
I tried to apply SemBr to my changes, but as those semantic breaks are quite subjective, there might be room for improvement.
I'd also appreciate it if an English native speaker could review my grammar. :)
I'm also not sure if it's OK to link to an existing package as an example of how to do something - but documenting the thing in question without linking to a working example would be awkward.
This PR introduces clarifications for Naming and Versioning guidelines for Rust packages. I tried to address some questions that have come up a few times on the #fedora-rust IRC channel.
Naming:
Document that application-only crates may / need to diverge from the standard
rust-$cratenaming scheme:rust-prefixrust-prefix to prevent naming collisions with the crates.io namespaceVersioning:
Document that some features of SemVer as used in the cargo ecosystem must be dropped when packaging crates as RPMs for Fedora (i.e.
+x.y.zbuild information encoded in some published crates's version field MUST be dropped, as it pollutes generatedProvidesand might cause dependency resolution issues).I tried to apply SemBr to my changes, but as those semantic breaks are quite subjective, there might be room for improvement.
I'd also appreciate it if an English native speaker could review my grammar. :)
I'm also not sure if it's OK to link to an existing package as an example of how to do something - but documenting the thing in question without linking to a working example would be awkward.