offline-protocol 0.30.0

Main protocol engine for the Offline Protocol SDK
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.87"
name = "offline-protocol"
version = "0.30.0"
authors = ["Offline Protocol, Inc."]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Main protocol engine for the Offline Protocol SDK"
readme = "README.md"
license = "AGPL-3.0-only"
repository = "https://github.com/Offline-Protocol/offline-protocol-sdk"

[features]
data = ["dep:offline-protocol-data"]
default = [
    "data",
    "telemetry-pipe",
    "file-store",
]
file-store = [
    "dep:hkdf",
    "dep:hmac",
    "dep:rustix",
]
telemetry-pipe = [
    "dep:ureq",
    "dep:rustls",
    "dep:offline-protocol-telemetry-wire",
]
test-utils = []

[lib]
name = "offline_protocol"
path = "src/lib.rs"

[[example]]
name = "replicated_notes"
path = "examples/replicated_notes.rs"
required-features = [
    "data",
    "file-store",
]

[[test]]
name = "file_store_relative_root"
path = "tests/file_store_relative_root.rs"

[[test]]
name = "mesh_forwarding"
path = "tests/mesh_forwarding.rs"

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.offline-protocol-core]
version = "0.30.0"

[dependencies.offline-protocol-data]
version = "0.30.0"
optional = true

[dependencies.offline-protocol-mls]
version = "0.30.0"

[dependencies.offline-protocol-reliability]
version = "0.30.0"

[dependencies.offline-protocol-router]
version = "0.30.0"

[dependencies.offline-protocol-sealed]
version = "0.30.0"

[dependencies.offline-protocol-services]
version = "0.30.0"

[dependencies.offline-protocol-telemetry-wire]
version = "0.30.0"
optional = true

[dependencies.offline-protocol-transport]
version = "0.30.0"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.ureq]
version = "3.4"
features = ["rustls-no-provider"]
optional = true
default-features = false

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "serde",
]

[dependencies.zeroize]
version = "1"

[target."cfg(unix)".dependencies.rustix]
version = "1"
features = [
    "fs",
    "std",
]
optional = true
default-features = false

[lints.clippy]
unwrap_used = "deny"