meilisearch/meilisearch-http/build.rs

17 lines
470 B
Rust
Raw Normal View History

2021-04-20 19:28:12 +08:00
use std::env;
2020-12-12 20:32:06 +08:00
use vergen::{generate_cargo_keys, ConstantsFlags};
fn main() {
// Setup the flags, toggling off the 'SEMVER_FROM_CARGO_PKG' flag
let mut flags = ConstantsFlags::all();
flags.toggle(ConstantsFlags::SEMVER_FROM_CARGO_PKG);
// Generate the 'cargo:' key output
generate_cargo_keys(ConstantsFlags::all()).expect("Unable to generate the cargo keys!");
2021-04-20 19:28:12 +08:00
if let Ok(_) = env::var("CARGO_FEATURE_MINI_DASHBOARD") {
todo!()
}
2020-12-12 20:32:06 +08:00
}