Expand description
JMAP Sharing (RFC 9670): umbrella crate re-exporting the component crates, so one dependency covers them.
types: thejmap-sharing-types, always enabled.client:jmap-sharing-client, behind theclientfeature.server:jmap-sharing-server, behind theserverfeature; thememoryfeature adds its in-memory reference backend.
The component crates version in lockstep with this one.
use jmap_sharing::types::{JMAP_PRINCIPALS_URI, PrincipalsCapability};
assert_eq!(JMAP_PRINCIPALS_URI, "urn:ietf:params:jmap:principals");
let cap: PrincipalsCapability =
serde_json::from_str(r#"{"currentUserPrincipalId": "P1"}"#).unwrap();
assert!(cap.current_user_principal_id.is_some());Re-exportsยง
pub use jmap_sharing_types as types;pub use jmap_sharing_client as client;clientpub use jmap_sharing_server as server;server