Function minver_rs::build_utils::default_build_action [−][src]
pub fn default_build_action()
Expand description
Updates the version in Cargo.toml
.
This function prints cargo:rerun-if
output to ensure that this build action will be run when
called in build.rs
.
use minver_rs::build_utils;
fn main() {
if env!("CARGO_PKG_NAME") != env!("CARGO_CRATE_NAME") {
build_utils::default_build_action();
}
}