mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-26 18:40:25 +01:00
d544470d1d
Follows-up https://github.com/zed-industries/zed/pull/64862 with similar fixes: * replaces a few dependencies that are almost not used, removes unused dependencies * removed unused features * removes `test-support` dependencies from the regular tree * cleans up build scripts Despite the large diff, the changes are rather mechanical, split by commits. Result: <img width="1172" height="77" alt="image" src="https://github.com/user-attachments/assets/7d8aeb58-7cec-4246-8157-d07fc585f81f" /> Release Notes: - N/A - [GPUI] N/A
16 lines
538 B
Rust
16 lines
538 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=../zed/Cargo.toml");
|
|
let cargo_toml =
|
|
std::fs::read_to_string("../zed/Cargo.toml").expect("Failed to read crates/zed/Cargo.toml");
|
|
let version = cargo_toml
|
|
.lines()
|
|
.find(|line| line.starts_with("version = "))
|
|
.expect("Version not found in crates/zed/Cargo.toml")
|
|
.split('=')
|
|
.nth(1)
|
|
.expect("Invalid version format")
|
|
.trim()
|
|
.trim_matches('"');
|
|
println!("cargo:rustc-env=ZED_PKG_VERSION={}", version);
|
|
}
|