modelsocket 0.2.1

A Rust library for ModelSocket, a protocol for efficiently integrating with LLMs
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
    let has_python_feature = std::env::var_os("CARGO_FEATURE_PYTHON").is_some();

    if has_python_feature && target_os == "macos" {
        println!("cargo:rustc-link-arg=-undefined");
        println!("cargo:rustc-link-arg=dynamic_lookup");
    }
}