Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:46:43.899Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

build.rs

16 lines · 602 B · rust
1fn main() {
2    let version = std::env::var("CARGO_PKG_VERSION").unwrap();
3    let out_dir = std::env::var("OUT_DIR").unwrap();
4
5    let mut parts = version.split(|c: char| !c.is_ascii_digit());
6    let major = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
7    let minor = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
8    let patch = parts.next().unwrap().parse::<u16>().unwrap().to_be_bytes();
9
10    std::fs::write(
11        std::path::Path::new(&out_dir).join("version_bytes"),
12        [major[0], major[1], minor[0], minor[1], patch[0], patch[1]],
13    )
14    .unwrap();
15}
16
Served at tenant.openagents/omega Member data and write actions are omitted.