这是indexloc提供的服务,不要输入任何密码
Skip to content

tesuji/git-testament

 
 

Repository files navigation

Git Testament

BSD 3 Clause Master branch build status Latest docs Crates.IO

git-testament is a library to embed a testament as to the state of a git working tree during the build of a Rust program. It uses the power of procedural macros to embed commit, tag, and working-tree-state information into your program when it is built. This can then be used to report version information.

use git_testament::{git_testament, render_testament};

git_testament!(TESTAMENT);

fn main() {
    println!("My version information: {}", render_testament!(TESTAMENT));
}

About

Rust library for creating a commit testament at compile time

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%