agents 0.3.0

Facade crate for building typed Rust agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "apple")]
use std::env;

#[cfg(feature = "apple")]
use swift_rs::SwiftLinker;

fn main() {
    println!("cargo:rerun-if-changed=swift");
    #[cfg(feature = "apple")]
    if env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
        SwiftLinker::new("10.15")
            .with_package("AgentsLLMApple", "swift")
            .link();
    }
}