From 5c61196f27b9342e5f25414c11df5710f956f406 Mon Sep 17 00:00:00 2001 From: Christopher Warner Date: Sat, 10 Oct 2026 18:47:24 -0400 Subject: feat!: rewrite icloud-note CLI in Rust with chromiumoxide Replace the Node/Playwright driver with a single Rust binary so create/status stay headless without a visible browser. Move the previous implementation to legacy/nodejs for reference. BREAKING CHANGE: the supported CLI is the Rust `icloud-note` binary; the Node entrypoint is no longer installed by setup.sh. Co-authored-by: Cursor --- Cargo.toml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Cargo.toml (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..902d691 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,36 @@ +[package] +name = "icloud-note" +version = "0.2.0" +edition = "2021" +rust-version = "1.85" +description = "Create Apple Notes from Linux via icloud.com/notes (headless Chromium)" +license = "MIT" +publish = false + +[lib] +name = "icloud_note" +path = "src/lib.rs" + +[[bin]] +name = "icloud-note" +path = "src/main.rs" + +[dependencies] +clap = { version = "4", features = ["derive", "env"] } +tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "fs", "io-util"] } +futures = "0.3" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +anyhow = "1" +dirs = "6" +chromiumoxide = "0.9" +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } + +[dev-dependencies] +tempfile = "3" + +[profile.release] +lto = true +codegen-units = 1 +strip = true -- cgit v1.2.3