Previously, the config crate would get rebuilt each time the git state changed, which has a lot of fan out and makes the build take longer than it really needs to. This commit breaks out the version changing stuff to its own crate and then provides a runtime mechanism for assigning the version information back into the config crate. The env-bootstrap crate is responsible for setting that up.
10 lines
198 B
Rust
10 lines
198 B
Rust
pub fn wezterm_version() -> &'static str {
|
|
// See build.rs
|
|
env!("WEZTERM_CI_TAG")
|
|
}
|
|
|
|
pub fn wezterm_target_triple() -> &'static str {
|
|
// See build.rs
|
|
env!("WEZTERM_TARGET_TRIPLE")
|
|
}
|