# 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 = "cooldown-go"
version = "0.0.2"
authors = ["romnn <roman@airtype.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Go tool adapter for cooldown: GOPROXY publish-time reads, x/mod semver/pseudo-version semantics, and go-driven resolution/apply."
homepage = "https://github.com/romnn/cooldown"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/romnn/cooldown"
resolver = "2"

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

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

[dependencies.camino]
version = "1"
features = ["serde1"]

[dependencies.cooldown-core]
version = "=0.0.2"

[dependencies.cooldown-registry]
version = "=0.0.2"

[dependencies.futures]
version = "0.3"

[dependencies.jiff]
version = "0.2"
features = ["serde"]

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "process",
    "fs",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "process",
    "fs",
    "sync",
    "time",
    "rt",
    "macros",
]

[lints.clippy]
allow_attributes_without_reason = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
struct_excessive_bools = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

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

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

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

[lints.rust.warnings]
level = "warn"
priority = -1
