Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch: - serial.rs: add SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; add latest_serial_of() - window.rs: activate() uses keyboard-enter serial (Mutter focus gate) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
16 lines
602 B
Rust
16 lines
602 B
Rust
fn main() {
|
|
let version = std::env::var("CARGO_PKG_VERSION").unwrap();
|
|
let out_dir = std::env::var("OUT_DIR").unwrap();
|
|
|
|
let mut parts = version.split(|c: char| !c.is_ascii_digit());
|
|
let major = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
|
|
let minor = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
|
|
let patch = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
|
|
|
|
std::fs::write(
|
|
std::path::Path::new(&out_dir).join("version_bytes"),
|
|
[major[0], major[1], minor[0], minor[1], patch[0], patch[1]],
|
|
)
|
|
.unwrap();
|
|
}
|