mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
17 lines
470 B
Rust
17 lines
470 B
Rust
use std::env;
|
|
|
|
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!");
|
|
|
|
if let Ok(_) = env::var("CARGO_FEATURE_MINI_DASHBOARD") {
|
|
todo!()
|
|
}
|
|
}
|