[package]
edition = "2024"
name = "kellnr-db"
version = "6.2.0"
authors = ["kellnr.io"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Kellnr is a self-hosted registry for Rust crates with support for rustdocs and crates.io caching."
homepage = "https://kellnr.io/"
documentation = "https://kellnr.io/documentation"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/kellnr/kellnr"
[lib]
name = "kellnr_db"
path = "src/lib.rs"
[[test]]
name = "db_test"
path = "tests/db_test.rs"
[[test]]
name = "image"
path = "tests/image.rs"
[dependencies.chrono]
version = "0.4.44"
[dependencies.kellnr-common]
version = "6.2.0"
[dependencies.kellnr-db-testcontainer]
version = "6.2.0"
[dependencies.kellnr-entity]
version = "6.2.0"
[dependencies.kellnr-migration]
version = "6.2.0"
[dependencies.kellnr-settings]
version = "6.2.0"
[dependencies.mockall]
version = "0.14.0"
[dependencies.sea-orm]
version = "2.0.0-rc.27"
features = [
"sqlx-postgres",
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.sha256]
version = "1.6.0"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1.43"
[dependencies.utoipa]
version = "5"
features = [
"axum_extras",
"chrono",
]
[dev-dependencies.rm_rf]
version = "0.6.2"
[dev-dependencies.testcontainers]
version = "0.27.2"
features = ["http_wait_plain"]
[dev-dependencies.tokio]
version = "1.51.1"
features = [
"macros",
"signal",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
if_not_else = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
too_many_lines = "allow"
used_underscore_binding = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
unused_qualifications = "warn"