[package]
edition = "2024"
rust-version = "1.91"
name = "jmap-chat-server"
version = "0.6.1"
authors = ["Mark Atwood <mark@reviewcommit.com>"]
build = false
exclude = [
"AGENTS.md",
"CLAUDE.md",
"PLAN.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JMAP Chat extension method handlers — backend-agnostic, plugs into jmap-server Dispatcher"
readme = "README.md"
keywords = [
"jmap",
"draft-atwood-chat",
"server",
"chat",
]
categories = [
"network-programming",
"web-programming::http-server",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MarkAtwood/crate-jmap"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
memory = [
"jmap-search/eval",
"dep:getrandom",
"dep:ulid",
"dep:jmap-metadata-server",
"dep:jmap-object-history-server",
"jmap-server/scoped-state",
]
test-helpers = ["memory"]
testkit = ["dep:tokio"]
websocket = [
"dep:jmap-websocket",
"dep:tokio",
"tokio/sync",
"tokio/time",
"tokio/macros",
]
[lib]
name = "jmap_chat_server"
path = "src/lib.rs"
[[test]]
name = "account_not_found"
path = "tests/account_not_found.rs"
[[test]]
name = "backend_conformance"
path = "tests/backend_conformance.rs"
[[test]]
name = "backend_defaults"
path = "tests/backend_defaults.rs"
[[test]]
name = "blob_creation_refs"
path = "tests/blob_creation_refs.rs"
[[test]]
name = "channel_category_apply"
path = "tests/channel_category_apply.rs"
[[test]]
name = "chat_ban_compliance"
path = "tests/chat_ban_compliance.rs"
[[test]]
name = "chat_ban_permissions"
path = "tests/chat_ban_permissions.rs"
[[test]]
name = "chat_ban_set_errors"
path = "tests/chat_ban_set_errors.rs"
[[test]]
name = "chat_ban_visibility"
path = "tests/chat_ban_visibility.rs"
[[test]]
name = "chat_extension_restrictions"
path = "tests/chat_extension_restrictions.rs"
[[test]]
name = "chat_group_close"
path = "tests/chat_group_close.rs"
[[test]]
name = "chat_group_create_members"
path = "tests/chat_group_create_members.rs"
[[test]]
name = "chat_group_member_keys"
path = "tests/chat_group_member_keys.rs"
[[test]]
name = "chat_kick_members"
path = "tests/chat_kick_members.rs"
[[test]]
name = "chat_pinned_message_refs"
path = "tests/chat_pinned_message_refs.rs"
[[test]]
name = "chat_pinned_messages"
path = "tests/chat_pinned_messages.rs"
[[test]]
name = "chat_push_fit"
path = "tests/chat_push_fit.rs"
[[test]]
name = "chat_push_memory"
path = "tests/chat_push_memory.rs"
[[test]]
name = "chat_push_payload"
path = "tests/chat_push_payload.rs"
[[test]]
name = "chat_push_should_push"
path = "tests/chat_push_should_push.rs"
[[test]]
name = "chat_push_unread_count"
path = "tests/chat_push_unread_count.rs"
[[test]]
name = "chat_push_validation"
path = "tests/chat_push_validation.rs"
[[test]]
name = "chat_server_set_fields"
path = "tests/chat_server_set_fields.rs"
[[test]]
name = "chat_set_kind_rules"
path = "tests/chat_set_kind_rules.rs"
[[test]]
name = "chat_unread_count"
path = "tests/chat_unread_count.rs"
[[test]]
name = "conditional"
path = "tests/conditional.rs"
[[test]]
name = "contact_create_did"
path = "tests/contact_create_did.rs"
[[test]]
name = "contact_create_owner_identity"
path = "tests/contact_create_owner_identity.rs"
[[test]]
name = "contact_did_changed_at"
path = "tests/contact_did_changed_at.rs"
[[test]]
name = "contact_did_consistency"
path = "tests/contact_did_consistency.rs"
[[test]]
name = "contact_federated_identity"
path = "tests/contact_federated_identity.rs"
[[test]]
name = "contact_method_errors"
path = "tests/contact_method_errors.rs"
[[test]]
name = "create_mistyped_optionals"
path = "tests/create_mistyped_optionals.rs"
[[test]]
name = "creation_refs"
path = "tests/creation_refs.rs"
[[test]]
name = "custom_emoji_quota"
path = "tests/custom_emoji_quota.rs"
[[test]]
name = "custom_emoji_set_errors"
path = "tests/custom_emoji_set_errors.rs"
[[test]]
name = "delegate_conformance"
path = "tests/delegate_conformance.rs"
[[test]]
name = "did_auth"
path = "tests/did_auth.rs"
[[test]]
name = "draft_error_types"
path = "tests/draft_error_types.rs"
[[test]]
name = "empty_patch_noop"
path = "tests/empty_patch_noop.rs"
[[test]]
name = "ephemeral_subscription"
path = "tests/ephemeral_subscription.rs"
[[test]]
name = "has_mention_admins"
path = "tests/has_mention_admins.rs"
[[test]]
name = "identity_writes"
path = "tests/identity_writes.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "lifecycle_callbacks"
path = "tests/lifecycle_callbacks.rs"
[[test]]
name = "max_objects_in_set"
path = "tests/max_objects_in_set.rs"
[[test]]
name = "memory_embedding"
path = "tests/memory_embedding.rs"
[[test]]
name = "memory_limits"
path = "tests/memory_limits.rs"
[[test]]
name = "message_broadcast_mention_errors"
path = "tests/message_broadcast_mention_errors.rs"
[[test]]
name = "message_broadcast_permission"
path = "tests/message_broadcast_permission.rs"
[[test]]
name = "message_broadcast_permission_memory"
path = "tests/message_broadcast_permission_memory.rs"
[[test]]
name = "message_burn_on_read_atomic"
path = "tests/message_burn_on_read_atomic.rs"
[[test]]
name = "message_channel_permissions"
path = "tests/message_channel_permissions.rs"
[[test]]
name = "message_create_atomic"
path = "tests/message_create_atomic.rs"
[[test]]
name = "message_create_optionals"
path = "tests/message_create_optionals.rs"
[[test]]
name = "message_create_unknown_chat"
path = "tests/message_create_unknown_chat.rs"
[[test]]
name = "message_encrypted_body_types"
path = "tests/message_encrypted_body_types.rs"
[[test]]
name = "message_filenode_attachment"
path = "tests/message_filenode_attachment.rs"
[[test]]
name = "message_limits"
path = "tests/message_limits.rs"
[[test]]
name = "message_mention_arrays"
path = "tests/message_mention_arrays.rs"
[[test]]
name = "message_mentions_from_array"
path = "tests/message_mentions_from_array.rs"
[[test]]
name = "message_sender_msg_id"
path = "tests/message_sender_msg_id.rs"
[[test]]
name = "message_server_store"
path = "tests/message_server_store.rs"
[[test]]
name = "message_set_error_paths"
path = "tests/message_set_error_paths.rs"
[[test]]
name = "message_supported_body_types"
path = "tests/message_supported_body_types.rs"
[[test]]
name = "message_threads"
path = "tests/message_threads.rs"
[[test]]
name = "message_update_allowlist"
path = "tests/message_update_allowlist.rs"
[[test]]
name = "message_update_limits"
path = "tests/message_update_limits.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "object_history"
path = "tests/object_history.rs"
[[test]]
name = "outbound_events"
path = "tests/outbound_events.rs"
[[test]]
name = "owner_id_is_account_id"
path = "tests/owner_id_is_account_id.rs"
[[test]]
name = "owner_membership_account_id"
path = "tests/owner_membership_account_id.rs"
[[test]]
name = "owner_reference_account_id"
path = "tests/owner_reference_account_id.rs"
[[test]]
name = "patch_revalidation"
path = "tests/patch_revalidation.rs"
[[test]]
name = "presence_delivery"
path = "tests/presence_delivery.rs"
[[test]]
name = "push_subscription_memory"
path = "tests/push_subscription_memory.rs"
[[test]]
name = "query_backend_method_error"
path = "tests/query_backend_method_error.rs"
[[test]]
name = "query_defaults"
path = "tests/query_defaults.rs"
[[test]]
name = "query_unsupported"
path = "tests/query_unsupported.rs"
[[test]]
name = "read_position_errors"
path = "tests/read_position_errors.rs"
[[test]]
name = "read_position_server_managed"
path = "tests/read_position_server_managed.rs"
[[test]]
name = "registration"
path = "tests/registration.rs"
[[test]]
name = "role_member_apply"
path = "tests/role_member_apply.rs"
[[test]]
name = "search"
path = "tests/search.rs"
[[test]]
name = "set_account_not_found"
path = "tests/set_account_not_found.rs"
[[test]]
name = "set_handler_edge_cases"
path = "tests/set_handler_edge_cases.rs"
[[test]]
name = "single_user_owner_gates"
path = "tests/single_user_owner_gates.rs"
[[test]]
name = "space_ban_expiry"
path = "tests/space_ban_expiry.rs"
[[test]]
name = "space_ban_permissions"
path = "tests/space_ban_permissions.rs"
[[test]]
name = "space_ban_set_errors"
path = "tests/space_ban_set_errors.rs"
[[test]]
name = "space_ban_visibility"
path = "tests/space_ban_visibility.rs"
[[test]]
name = "space_close"
path = "tests/space_close.rs"
[[test]]
name = "space_contact_server_set_fields"
path = "tests/space_contact_server_set_fields.rs"
[[test]]
name = "space_create_bootstrap_admin"
path = "tests/space_create_bootstrap_admin.rs"
[[test]]
name = "space_destroy_cascade"
path = "tests/space_destroy_cascade.rs"
[[test]]
name = "space_extension_properties"
path = "tests/space_extension_properties.rs"
[[test]]
name = "space_get_owner_membership"
path = "tests/space_get_owner_membership.rs"
[[test]]
name = "space_get_projection"
path = "tests/space_get_projection.rs"
[[test]]
name = "space_invite_permissions"
path = "tests/space_invite_permissions.rs"
[[test]]
name = "space_invite_set_errors"
path = "tests/space_invite_set_errors.rs"
[[test]]
name = "space_invite_visibility"
path = "tests/space_invite_visibility.rs"
[[test]]
name = "space_metadata_apply"
path = "tests/space_metadata_apply.rs"
[[test]]
name = "space_remove_members"
path = "tests/space_remove_members.rs"
[[test]]
name = "space_set_kitchen_sink"
path = "tests/space_set_kitchen_sink.rs"
[[test]]
name = "space_update_members"
path = "tests/space_update_members.rs"
[[test]]
name = "space_wire_errors"
path = "tests/space_wire_errors.rs"
[[test]]
name = "typing_delivery"
path = "tests/typing_delivery.rs"
[[test]]
name = "unknown_account"
path = "tests/unknown_account.rs"
[[test]]
name = "websocket_e2e"
path = "tests/websocket_e2e.rs"
[[test]]
name = "wire_id"
path = "tests/wire_id.rs"
[dependencies.base64]
version = "0.22"
[dependencies.getrandom]
version = "0.3"
optional = true
[dependencies.jmap-chat-types]
version = "0.6"
[dependencies.jmap-did-types]
version = "0.6"
[dependencies.jmap-metadata-server]
version = "0.6"
optional = true
[dependencies.jmap-metadata-types]
version = "0.6"
[dependencies.jmap-object-history-server]
version = "0.6"
optional = true
[dependencies.jmap-object-history-types]
version = "0.6"
[dependencies.jmap-peer-auth]
version = "0.6"
[dependencies.jmap-search]
version = "0.6"
[dependencies.jmap-server]
version = "0.6"
[dependencies.jmap-types]
version = "0.6"
[dependencies.jmap-websocket]
version = "0.6"
features = ["server"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.subtle]
version = "2.6"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt",
"rt-multi-thread",
]
optional = true
[dependencies.ulid]
version = "1"
optional = true
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.http]
version = "1"
[dev-dependencies.jmap-websocket]
version = "0.6"
features = [
"server",
"tungstenite",
]
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"net",
"time",
"test-util",
]
[dev-dependencies.tokio-tungstenite]
version = "0.29"
features = [
"connect",
"handshake",
"rustls-tls-webpki-roots",
]
default-features = false