[package]
edition = "2024"
rust-version = "1.85"
name = "xmtp"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, ergonomic Rust client SDK for the XMTP messaging protocol"
documentation = "https://docs.rs/xmtp"
readme = "README.md"
keywords = [
"xmtp",
"messaging",
"e2e-encryption",
"mls",
"web3",
]
categories = [
"api-bindings",
"cryptography",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/qntx/xmtp"
[features]
alloy = [
"dep:alloy-signer",
"dep:alloy-signer-local",
]
content = [
"dep:prost",
"dep:hex",
]
default = ["content"]
ens = [
"dep:alloy-ens",
"dep:alloy-provider",
"dep:url",
"dep:tokio",
]
ledger = [
"dep:alloy-signer-ledger",
"dep:alloy-signer",
"dep:tokio",
]
[lib]
name = "xmtp"
path = "src/lib.rs"
[dependencies.alloy-ens]
version = "1.7"
features = ["provider"]
optional = true
default-features = false
[dependencies.alloy-provider]
version = "1.7"
optional = true
[dependencies.alloy-signer]
version = "1.7"
optional = true
[dependencies.alloy-signer-ledger]
version = "1.7"
optional = true
[dependencies.alloy-signer-local]
version = "1.7"
optional = true
default-features = false
[dependencies.hex]
version = "0.4"
optional = true
[dependencies.prost]
version = "0.14"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
default-features = false
[dependencies.url]
version = "2"
optional = true
[dependencies.xmtp-sys]
version = "0.1"
[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
cargo_common_metadata = "allow"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_precision_loss = "allow"
cast_sign_loss = "warn"
clone_on_ref_ptr = "warn"
cognitive_complexity = "warn"
dbg_macro = "warn"
doc_markdown = "warn"
excessive_nesting = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
expect_used = "allow"
fallible_impl_from = "warn"
fn_params_excessive_bools = "warn"
future_not_send = "warn"
implicit_hasher = "warn"
indexing_slicing = "allow"
large_types_passed_by_value = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "warn"
option_if_let_else = "warn"
panic = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
redundant_clone = "warn"
return_self_not_must_use = "warn"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
unimplemented = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
used_underscore_binding = "warn"
wildcard_enum_match_arm = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.restriction]
level = "allow"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "warn"
non_camel_case_types = "warn"
non_snake_case = "warn"
non_upper_case_globals = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "warn"
unused_imports = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"
invalid_codeblock_attributes = "warn"
invalid_html_tags = "warn"
invalid_rust_codeblocks = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"