samod 0.10.0

A rust library for managing automerge documents, compatible with the js automerge-repo library
# 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 = "2024"
name = "samod"
version = "0.10.0"
authors = ["Alex Good <alex@patternist.xyz>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A rust library for managing automerge documents, compatible with the js automerge-repo library"
readme = false
license = "MIT"
repository = "https://github.com/alexjg/samod"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
rustc-args = [
    "--cfg",
    "docsrs",
]

[features]
axum = [
    "dep:axum",
    "dep:tokio",
    "dep:tokio-util",
]
gio = [
    "dep:gio",
    "dep:glib",
]
threadpool = ["dep:rayon"]
tokio = [
    "dep:tokio",
    "dep:tokio-util",
]
tungstenite = [
    "dep:tungstenite",
    "dep:tokio-tungstenite",
    "tokio",
    "tungstenite/native-tls",
    "tokio-tungstenite/native-tls",
]

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

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

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

[[test]]
name = "js_interop"
path = "tests/js_interop/main.rs"
required-features = [
    "tokio",
    "tungstenite",
    "axum",
]

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

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

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

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

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

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

[dependencies.async-channel]
version = "2.5.0"

[dependencies.automerge]
version = "0.9.0"

[dependencies.axum]
version = "0.8.4"
features = ["ws"]
optional = true

[dependencies.bytes]
version = "1.10.1"

[dependencies.chrono]
version = "0.4.41"

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-timer]
version = "3.0.3"

[dependencies.gio]
version = "0.20.12"
optional = true

[dependencies.glib]
version = "0.20.12"
optional = true

[dependencies.rand]
version = "0.9.1"

[dependencies.rayon]
version = "1.10.0"
optional = true

[dependencies.samod-core]
version = "0.10.0"

[dependencies.tokio]
version = "1.46.0"
features = [
    "rt",
    "time",
    "fs",
]
optional = true

[dependencies.tokio-tungstenite]
version = "0.27.0"
optional = true

[dependencies.tokio-util]
version = "0.7.15"
features = [
    "codec",
    "net",
]
optional = true

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.19"
features = ["env-filter"]

[dependencies.tungstenite]
version = "0.27.0"
optional = true

[dependencies.url]
version = "2.5"

[dev-dependencies.eyre]
version = "0.6.12"

[dev-dependencies.reqwest]
version = "0.12.22"
features = [
    "json",
    "blocking",
]
default-features = false

[dev-dependencies.tempfile]
version = "3.20.0"

[dev-dependencies.tokio]
version = "1.46.0"
features = [
    "rt",
    "time",
    "macros",
    "process",
    "fs",
]

[dev-dependencies.tokio-stream]
version = "0.1.17"
features = ["io-util"]

[dev-dependencies.tokio-test]
version = "0.4.4"

[dev-dependencies.tokio-util]
version = "0.7.15"
features = [
    "codec",
    "net",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.19"
features = ["env-filter"]