Crates.io | z1info_rust |
lib.rs | z1info_rust |
version | 0.1.4 |
source | src |
created_at | 2021-05-23 12:16:34.180736 |
updated_at | 2021-05-24 14:29:03.059013 |
description | Add extra information to the binary package through `cargo run [...] z1info=extra_information`. |
homepage | |
repository | https://github.com/myzero1/z1info_rust |
max_upload_size | |
id | 401075 |
size | 11,597 |
Add extra information to the binary package through cargo run [...] z1info=extra_information
fn main() {
z1info_rust::run("z1template");
// z1info_test::run("z1_info:{z1_info},git_info:{git_info},build_time:{build_time}");
}
z1info=
must be placed at the end of the command line,cargo run
will write extra information to tmp file.
cargo run p1 p2 z1info=version:1.2.3,compiler:myzero1
builded binary package
=============== z1info extended data ====================
| Extended data added to binary file through z1info.
|--------------- z1info parameter ----------------------
| z1info=version:1.2.3,compiler:myzero1
|--------------- git info ------------------------------
| commit id: 94896476ea1696f9b8764cd845f225e4af586bc4
|--------------- build time ----------------------------
| 1621770625
=========================================================