# 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"
rust-version = "1.94.1"
name = "svn"
version = "0.1.7"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "README.zh-CN.md",
    "LICENSE",
    "CHANGELOG.md",
    "src/**",
    "benches/**",
    "examples/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async client for Subversion's svn:// (ra_svn) protocol."
homepage = "https://github.com/lvillis/svn-rs"
documentation = "https://docs.rs/svn"
readme = "README.md"
keywords = [
    "svn",
    "subversion",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/lvillis/svn-rs"

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

[package.metadata.release]
tag-prefix = ""
tag-name = "{{prefix}}{{version}}"
pre-release-commit-message = "chore: release {{crate_name}} version {{version}}"
tag-message = "chore: release {{crate_name}} version {{version}}"
pre-release-hook = [
    "git",
    "cliff",
    "-o",
    "CHANGELOG.md",
    "--tag",
    "{{version}}",
]

[features]
cyrus-sasl = [
    "dep:base64",
    "dep:libloading",
]
default = []
serde = ["dep:serde"]
ssh = ["dep:russh"]

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

[[example]]
name = "capabilities"
path = "examples/capabilities.rs"

[[example]]
name = "commit"
path = "examples/commit.rs"

[[example]]
name = "dated_rev"
path = "examples/dated_rev.rs"

[[example]]
name = "diff_blame"
path = "examples/diff_blame.rs"

[[example]]
name = "diff_events"
path = "examples/diff_events.rs"

[[example]]
name = "export"
path = "examples/export.rs"

[[example]]
name = "file_revs"
path = "examples/file_revs.rs"

[[example]]
name = "get_file"
path = "examples/get_file.rs"

[[example]]
name = "list"
path = "examples/list.rs"

[[example]]
name = "locations"
path = "examples/locations.rs"

[[example]]
name = "locks"
path = "examples/locks.rs"

[[example]]
name = "log_retry"
path = "examples/log_retry.rs"

[[example]]
name = "mergeinfo"
path = "examples/mergeinfo.rs"

[[example]]
name = "open_session_with_stream"
path = "examples/open_session_with_stream.rs"

[[example]]
name = "pool"
path = "examples/pool.rs"

[[example]]
name = "props"
path = "examples/props.rs"

[[example]]
name = "readonly"
path = "examples/readonly.rs"

[[example]]
name = "reparent"
path = "examples/reparent.rs"

[[example]]
name = "replay_events"
path = "examples/replay_events.rs"

[[example]]
name = "replay_range_events"
path = "examples/replay_range_events.rs"

[[example]]
name = "revprop"
path = "examples/revprop.rs"

[[example]]
name = "sasl"
path = "examples/sasl.rs"

[[example]]
name = "session_pools"
path = "examples/session_pools.rs"

[[example]]
name = "ssh"
path = "examples/ssh.rs"

[[example]]
name = "stat"
path = "examples/stat.rs"

[[example]]
name = "status_events"
path = "examples/status_events.rs"

[[example]]
name = "switch_events"
path = "examples/switch_events.rs"

[[example]]
name = "update_events"
path = "examples/update_events.rs"

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

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[dependencies.base64]
version = "0.22.1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.flate2]
version = "1.1.9"
features = ["rust_backend"]
default-features = false

[dependencies.hex]
version = "0.4.3"
features = ["alloc"]
default-features = false

[dependencies.hmac]
version = "0.13.0"
default-features = false

[dependencies.libloading]
version = "0.9.0"
optional = true
default-features = false

[dependencies.lz4_flex]
version = "0.13.0"
features = ["std"]
default-features = false

[dependencies.md-5]
version = "0.11.0"
default-features = false

[dependencies.russh]
version = "0.58.1"
features = [
    "ring",
    "rsa",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "std",
]
optional = true
default-features = false

[dependencies.similar]
version = "2.7.0"
features = ["text"]
default-features = false

[dependencies.thiserror]
version = "2.0.18"
features = ["std"]
default-features = false

[dependencies.tokio]
version = "1.50.0"
features = [
    "fs",
    "io-util",
    "net",
    "rt",
    "sync",
    "time",
]
default-features = false

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.proptest]
version = "1.11.0"

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

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
