brok-cli 0.7.0

Brokspace: local-first knowledge index and event-driven agents for your workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Embeds a Windows application manifest declaring long path awareness.
//!
//! Index files live deep under `.brokspace/databases/`; without the manifest
//! Windows enforces the 260 character limit on brok even when long paths
//! are enabled system-wide (`LongPathsEnabled`), and storage writes fail in
//! deep workspaces.

fn main() {
    if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
        use embed_manifest::manifest::Setting;
        embed_manifest::embed_manifest(
            embed_manifest::new_manifest("Brokspace.Brok").long_path_aware(Setting::Enabled),
        )
        .expect("unable to embed the Windows manifest");
    }
    println!("cargo:rerun-if-changed=build.rs");
}