runnerd-core 0.0.11

Config, domain logic and API types shared by runnerd and its clients
Documentation
# 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.99"
name = "runnerd-core"
version = "0.0.11"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Config, domain logic and API types shared by runnerd and its clients"
readme = "README.md"
keywords = [
    "github-actions",
    "ci",
    "runner",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/ayagmar/runnerd"

[features]
client = [
    "dep:http-body-util",
    "dep:hyper",
    "hyper/client",
    "dep:hyper-util",
    "dep:serde_json",
    "dep:serde_urlencoded",
    "dep:tokio",
    "tokio/net",
    "tokio/time",
]
default = ["host"]
host = [
    "dep:bollard",
    "dep:futures-util",
    "dep:http-body-util",
    "dep:hyper",
    "dep:hyper-util",
    "dep:reqwest",
    "dep:rusqlite",
    "dep:rustix",
    "dep:rustls",
    "dep:serde_json",
    "dep:tar",
    "dep:tokio",
    "dep:tracing",
    "hyper/server",
    "tokio/fs",
    "tokio/io-util",
    "tokio/net",
]

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

[[test]]
name = "build_cache_gradle"
path = "tests/build_cache_gradle.rs"
required-features = ["host"]

[[test]]
name = "cache_reseed"
path = "tests/cache_reseed.rs"
required-features = ["host"]

[[test]]
name = "docker_smoke"
path = "tests/docker_smoke.rs"
required-features = ["host"]

[dependencies.bollard]
version = "0.21.1"
features = ["pipe"]
optional = true
default-features = false

[dependencies.futures-util]
version = "0.3.34"
optional = true

[dependencies.http-body-util]
version = "0.1.5"
optional = true

[dependencies.hyper]
version = "1.12.0"
features = ["http1"]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1.21"
features = ["tokio"]
optional = true
default-features = false

[dependencies.reqwest]
version = "0.13.5"
features = ["rustls-no-provider"]
optional = true
default-features = false

[dependencies.rusqlite]
version = "0.40.2"
features = [
    "bundled",
    "fallible_uint",
]
optional = true

[dependencies.rustix]
version = "1.1.5"
features = [
    "std",
    "fs",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23.46"
features = [
    "ring",
    "std",
    "tls12",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0.154"
optional = true

[dependencies.serde_urlencoded]
version = "0.7.1"
optional = true

[dependencies.tar]
version = "0.4.46"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tokio]
version = "1.54.1"
features = [
    "macros",
    "rt",
    "sync",
    "time",
]
optional = true

[dependencies.toml]
version = "1.1.8"

[dependencies.toml_edit]
version = "0.25.17"

[dependencies.tracing]
version = "0.1.44"
optional = true

[dev-dependencies.axum]
version = "0.8.9"
features = [
    "http1",
    "json",
    "query",
    "tokio",
]
default-features = false

[dev-dependencies.futures-util]
version = "0.3.34"

[dev-dependencies.log]
version = "0.4.34"

[dev-dependencies.tokio]
version = "1.54.1"
features = [
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "test-util",
    "time",
]

[lints.clippy]
allow_attributes_without_reason = "warn"
await_holding_lock = "warn"
dbg_macro = "warn"
expect_used = "warn"
large_futures = "warn"
missing_errors_doc = "allow"
must_use_candidate = "allow"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
unimplemented = "warn"
unused_async_trait_impl = "allow"
unwrap_used = "warn"

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

[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"

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