mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-14 06:05:10 +00:00
11 lines
327 B
Rust
11 lines
327 B
Rust
|
const ZED_MANIFEST: &str = include_str!("../zed/Cargo.toml");
|
||
|
|
||
|
fn main() {
|
||
|
let zed_cargo_toml: cargo_toml::Manifest =
|
||
|
toml::from_str(ZED_MANIFEST).expect("failed to parse zed Cargo.toml");
|
||
|
println!(
|
||
|
"cargo:rustc-env=ZED_PKG_VERSION={}",
|
||
|
zed_cargo_toml.package.unwrap().version.unwrap()
|
||
|
);
|
||
|
}
|