shadow-rs: compiled project much information
A tool record compiled project much information,version info,dependence info.Like shadow,if compiled,never change.forever follow your project.
When you published a rust binary. Sometimes you need to know the dependencies of the current project.
- Git version information
- which version of rust compiled.
- Is it a debug or release version of rust.
- Cargo dependent
cargo.lock
detail crates info. - ...
We can use this information to quickly trace the history version of the project. n This project can do this things that can help you quick get above information. let's configuration in your project/.
example
You can also see shadow_example how to configuration.
step 1
in your cargo.toml
packgae
with package add with below config
[]
= "build.rs"
[]
= "0.3"
[]
= "0.3"
step 2
in your project add file build.rs
,then add with below config
step 3
in your project find bin
rust file.It's usually main.rs
, you can find [bin]
file with Cargo.toml
,then add with below config
step 4
then you can use const that's shadow build it.
you can also use const with clap
.
If you have any question,you can create issue.