Zum Inhalt springen

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 -plugin wrappers) are themselves excellent, real-world references — adapter-todoist is a compact tasks-only example; adapter-google shows a full calendars+tasks+contacts provider.