mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 23:04:49 +03:00
a56f37598c
This also applies to X11 when using the glutin frontend
14 lines
450 B
Rust
14 lines
450 B
Rust
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!");
|
|
|
|
#[cfg(windows)]
|
|
embed_resource::compile("assets/windows/resource.rc");
|
|
}
|