zeppelin-embed-text 0.8.0

Local text embedding and retrieval for Zeppelin Embed on macOS and Apple silicon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    println!("cargo:rerun-if-changed=objc/ze_coreml.m");
    println!("cargo:rerun-if-changed=objc/ze_model.m");
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() != Ok("macos") {
        return;
    }
    cc::Build::new()
        .file("objc/ze_coreml.m")
        .file("objc/ze_model.m")
        .flag("-Wno-deprecated-declarations")
        .flag("-fobjc-arc")
        .flag("-fmodules")
        .compile("ze_coreml");
    println!("cargo:rustc-link-lib=framework=CoreML");
    println!("cargo:rustc-link-lib=framework=Foundation");
}