semver-macro

Crates.iosemver-macro
lib.rssemver-macro
version0.1.0
sourcesrc
created_at2024-07-10 07:12:57.984798
updated_at2024-07-10 07:12:57.984798
descriptionA proc-macro for semver::Version
homepage
repositoryhttps://github.com/jgraef/semver-macro
max_upload_size
id1297927
size6,858
Janosch Gräf (jgraef)

documentation

README

semver-macro

crates.io Documentation MIT License

This crate contains macros to parse semver::Versions at compile-time. Currently only versions without pre-release and build metadata identifier are supported.

Example

use semver::Version;
use semver_macro::version;

const MY_VERSION: Version = version!("0.1.0");
Commit count: 5

cargo fmt