[package]
edition = "2021"
rust-version = "1.81.0"
name = "teamtype"
version = "0.9.1"
authors = [
"Moritz Neeb <nt4u@kpvn.de>",
"blinry <mail@blinry.org>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "teamtype"
description = "Enables real-time co-editing of local text files."
documentation = "https://teamtype.github.io"
readme = "README.md"
keywords = [
"collaboration",
"local-first",
"synchronization",
"crdt",
"peer-to-peer",
]
categories = [
"command-line-utilities",
"text-editors",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/teamtype/teamtype"
[features]
default = ["executable-deps"]
executable-deps = [
"dep:clap",
"tokio/signal",
"tokio/rt-multi-thread",
]
[lib]
name = "teamtype"
path = "src/lib.rs"
[[bin]]
name = "teamtype"
path = "src/main.rs"
test = false
bench = false
doc = false
required-features = ["executable-deps"]
[dependencies.anyhow]
version = "1.0.81"
[dependencies.async-trait]
version = "0.1.88"
[dependencies.automerge]
version = "1.0.0-beta.3"
[dependencies.clap]
version = "4.5.3"
features = [
"derive",
"env",
]
optional = true
[dependencies.constant_time_eq]
version = "0.3.1"
[dependencies.derive_more]
version = "2.0.1"
features = [
"as_ref",
"deref",
"display",
]
[dependencies.dissimilar]
version = "1.0.9"
[dependencies.futures]
version = "0.3.30"
default-features = false
[dependencies.git2]
version = "0.20.2"
default-features = false
[dependencies.ignore]
version = "0.4.22"
[dependencies.iroh]
version = "0.35.0"
[dependencies.magic-wormhole]
version = "0.7.6"
[dependencies.microxdg]
version = "0.2.0"
[dependencies.notify]
version = "8.0.0"
features = ["macos_fsevent"]
default-features = false
[dependencies.operational-transform]
version = "0.6.1"
[dependencies.path-clean]
version = "1.0.1"
[dependencies.postcard]
version = "1.1.1"
features = ["alloc"]
[dependencies.rand]
version = "0.8.5"
[dependencies.ropey]
version = "1.6.1"
[dependencies.rust-ini]
version = "0.21.1"
[dependencies.serde]
version = "1.0.198"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tempfile]
version = "3.24.0"
[dependencies.time]
version = "0.3.36"
features = ["formatting"]
[dependencies.tokio]
version = "1"
features = [
"rt",
"io-std",
"io-util",
"macros",
"net",
"time",
]
[dependencies.tokio-util]
version = "0.7.11"
features = ["codec"]
[dependencies.tracing]
version = "0.1.40"
[dependencies.tracing-subscriber]
version = "0.3.18"
features = [
"ansi",
"fmt",
"time",
"env-filter",
]
default-features = false
[dependencies.url]
version = "2.5.7"
[dev-dependencies.pretty_assertions]
version = "1.4.0"
[dev-dependencies.tracing-test]
version = "0.2.4"
[build-dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[build-dependencies.clap_complete]
version = "4"
[build-dependencies.clap_mangen]
version = "0.2"
[lints.clippy]
allow_attributes = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
map_with_unused_argument_over_ranges = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
should_panic_without_expect = "allow"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
unused_qualifications = "warn"
[profile.release]
opt-level = 3
strip = true
[profile.release-lto]
lto = true
codegen-units = 1
inherits = "release"
[profile.release-size]
opt-level = "s"
lto = true
codegen-units = 1
inherits = "release"