zeta: Add CLI tool for querying edit predictions and related context (#35491)

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
Michael Sloan 2025-08-01 15:08:09 -06:00 committed by GitHub
parent 561ccf86aa
commit 6052115825
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 719 additions and 102 deletions

14
crates/zeta_cli/build.rs Normal file
View file

@ -0,0 +1,14 @@
fn main() {
let cargo_toml =
std::fs::read_to_string("../zed/Cargo.toml").expect("Failed to read 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);
}