# 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 = "surge-core"
version = "0.4.0-preview.230"
build = "build.rs"
include = [
    "src/**/*",
    "assets/**/*",
    "tests/**/*",
    "build.rs",
    "Cargo.toml",
    "LICENSE*",
    "vendor/**/*.c",
    "vendor/**/*.h",
    "vendor/**/*.cmake",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for the Surge update framework"
readme = false
license = "MIT"
repository = "https://github.com/fintermobilityas/surge"

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

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

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

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]
default-features = false

[dependencies.futures-util]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.percent-encoding]
version = "2.3"

[dependencies.quick-xml]
version = "0.39"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "stream",
    "json",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.zstd]
version = "0.13"
features = ["zstdmt"]

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[build-dependencies.cc]
version = "1.2"

[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = [
    "signal",
    "process",
    "fs",
]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_Storage_FileSystem",
]

[lints.clippy]
borrow_as_ptr = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
float_cmp = "allow"
format_push_string = "allow"
items_after_statements = "allow"
let_and_return = "allow"
manual_let_else = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
redundant_else = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_self = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
