Open jonas-schievink opened 5 years ago
rust-lang/rust#64022 is now stable.
On second thought, I don't think I want to make semver
part of this crate's public API, at least not until semver
is at 1.0. We could also add macros for getting access to only the build metadata and pre-release identifiers as &'static str
s.
semver::Version
has public fields, so it can be constructed in a constant expression, provided that we can also construct aVec
. The latter is not yet possible on stable Rust, and is tracked in https://github.com/rust-lang/rust/issues/64022.