version 3.0.0

A very simple library who's job is to return the version of your crate if you're building with Cargo.
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented0 out of 2 items with examples
  • Size
  • Source code size: 15.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 305.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nulldatamap/version
    11 4 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nulldatamap

version

version is a very simple library who's job is to return the version of your crate if you're building with Cargo.

Usage:

#[macro_use]
extern crate version;

// ...

version!() // Returns something like "1.0.0"

let ver : Version = FromStr::from_str( version!() ).unwrap();

Notes:

This only works if you're building with Cargo since the macro fetches the version digits from enviroment variables set by Cargo ( CARGO_PKG_VERSION_{MAJOR, MINOR, PATCH} ).