const-semver 0.1.4

Library for constructing semver-compatible Versions at compile-time
Documentation

const-semver

Const construction of semver-compatible version structs in Rust.

It's simply a const clone of Steve Klabnik's semver crate, with some utilities for converting between them.

Primary use case is for defining const Version strings at compile-time, for example:

use const_semver::{Version, version};

trait Resource {
    const VERSION: Version;
}

struct MyResource {}

impl Resource for MyResource {
    const VERSION: Version = version!(1,2,3-beta.4+amd64)
}