Crates.io | semver-macro |
lib.rs | semver-macro |
version | 0.1.0 |
source | src |
created_at | 2024-07-10 07:12:57.984798 |
updated_at | 2024-07-10 07:12:57.984798 |
description | A proc-macro for semver::Version |
homepage | |
repository | https://github.com/jgraef/semver-macro |
max_upload_size | |
id | 1297927 |
size | 6,858 |
semver-macro
This crate contains macros to parse semver::Version
s at compile-time.
Currently only versions without pre-release and build metadata identifier
are supported.
use semver::Version;
use semver_macro::version;
const MY_VERSION: Version = version!("0.1.0");