# 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 = "oma-refresh"
version = "0.52.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "APT repository refresh handler library"
readme = false
license = "GPL-3.0-or-later"

[features]
aosc = ["dep:oma-topics"]
apt = ["dep:oma-apt"]
blocking = [
    "tokio/rt",
    "tokio/rt-multi-thread",
]
default = [
    "aosc",
    "sequoia-nettle-backend",
    "rustls",
    "apt",
]
native-tls = [
    "oma-fetch/native-tls",
    "oma-topics/native-tls",
]
rustls = [
    "oma-fetch/rustls",
    "oma-topics/rustls",
]
sequoia-nettle-backend = ["oma-repo-verify/sequoia-nettle-backend"]
sequoia-openssl-backend = ["oma-repo-verify/sequoia-openssl-backend"]

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

[[example]]
name = "update"
path = "examples/update.rs"
required-features = ["apt"]

[dependencies.ahash]
version = "0.8.11"

[dependencies.aho-corasick]
version = "1.1.3"

[dependencies.apt-auth-config]
version = "0.4.0"

[dependencies.bon]
version = "3"

[dependencies.chrono]
version = "0.4"
features = ["unstable-locales"]

[dependencies.deb822-fast]
version = "0.2"
features = ["derive"]

[dependencies.fancy-regex]
version = "0.16"

[dependencies.futures]
version = "0.3"

[dependencies.nix]
version = "0.30"
features = ["fs"]

[dependencies.oma-apt]
version = "0.12"
optional = true

[dependencies.oma-apt-sources-lists]
version = "0.9"

[dependencies.oma-fetch]
version = "^0.34.0"
default-features = false

[dependencies.oma-repo-verify]
version = "^0.9.0"
default-features = false

[dependencies.oma-topics]
version = "^0.25.0"
optional = true
default-features = false

[dependencies.oma-utils]
version = "0.12"
default-features = false

[dependencies.once_cell]
version = "1.19"

[dependencies.sys-locale]
version = "0.3"

[dependencies.sysinfo]
version = "0.37"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.28"
features = [
    "fs",
    "process",
    "macros",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.3"

[dev-dependencies.flume]
version = "0.11.1"

[dev-dependencies.oma-utils]
version = "^0.12.0"
features = ["dpkg"]

[dev-dependencies.tokio]
version = "1.28"
features = ["rt-multi-thread"]
default-features = false
