Skip to main content

jmap_tasks/
lib.rs

1//! JMAP Tasks
2//! ([draft-ietf-jmap-tasks-06](https://datatracker.ietf.org/doc/draft-ietf-jmap-tasks/)):
3//! umbrella crate re-exporting the component crates, so one dependency
4//! covers them.
5//!
6//! - [`types`]: the [`jmap-tasks-types`](https://crates.io/crates/jmap-tasks-types),
7//!   always enabled.
8//! - `client`: [`jmap-tasks-client`](https://crates.io/crates/jmap-tasks-client),
9//!   behind the `client` feature.
10//! - `server`: [`jmap-tasks-server`](https://crates.io/crates/jmap-tasks-server),
11//!   behind the `server` feature; the `memory` feature adds its in-memory
12//!   reference backend.
13//!
14//! The component crates version in lockstep with this one.
15//!
16//! ```
17//! use jmap_tasks::types::JMAP_TASKS_URI;
18//!
19//! assert_eq!(JMAP_TASKS_URI, "urn:ietf:params:jmap:tasks");
20//! ```
21
22#![cfg_attr(docsrs, feature(doc_cfg))]
23#![forbid(unsafe_code)]
24
25pub use jmap_tasks_types as types;
26
27#[cfg(feature = "client")]
28pub use jmap_tasks_client as client;
29
30#[cfg(feature = "server")]
31pub use jmap_tasks_server as server;