Examples
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Two worked examples, from smallest to a realistic starting point:
- hello-world — the absolute minimum: a calendar adapter that exposes one capability method and returns an empty list. The thing to copy when you just want something the host loads and recognises.
- calendar-adapter-template — a full scaffold for a real calendar adapter, with every method present as a stub and inline comments pointing at what to fill in.
Both follow the structure from The Rust SDK: a library crate
with your trait impl, plus a cdylib plugin crate with the SDK macros and
a plugin.json.
The bundled adapters under
crates/adapter-*(and their-pluginwrappers) are themselves excellent, real-world references —adapter-todoistis a compact tasks-only example;adapter-googleshows a full calendars+tasks+contacts provider.