cloudkit 0.2.0

Safe Rust bindings for Apple's CloudKit framework — iCloud databases and sync on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use cloudkit::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut root = CKRecord::new("SharedRoot")?;
    root.set_object("title", "Shared Root");

    let share = CKShare::new_root_record(&root)?;

    println!("share_record_type={} participants={}", share.share_record().record_type(), share.participants().len());
    println!("✅ share area OK");
    Ok(())
}