# 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.91.0"
name = "obelisk"
version = "0.32.1"
authors = ["Project Developers"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deterministic workflow engine"
readme = "README.md"
license = "AGPL-3.0-only"
repository = "https://github.com/obeli-sk/obelisk"
resolver = "2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/obelisk-{ target }.tar.gz"
pkg-fmt = "tgz"

[features]
default = ["otlp"]
otlp = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:opentelemetry-semantic-conventions",
]
tokio-console = ["dep:console-subscriber"]

[[bin]]
name = "obelisk"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"
features = ["backtrace"]

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

[dependencies.axum]
version = "0.8.8"
features = ["http2"]

[dependencies.axum-accept]
version = "0.0.5"

[dependencies.bytes]
version = "1.11"

[dependencies.cfg-if]
version = "1.0.4"

[dependencies.chrono]
version = "0.4.42"
features = [
    "arbitrary",
    "serde",
]

[dependencies.clap]
version = "4.5.53"
features = ["derive"]

[dependencies.concepts]
version = "0.32.1"
package = "obeli-sk-concepts"

[dependencies.config]
version = "0.15.19"
features = [
    "toml",
    "preserve_order",
    "async",
    "convert-case",
]
default-features = false

[dependencies.console-subscriber]
version = "0.5.0"
optional = true

[dependencies.const_format]
version = "0.2.35"

[dependencies.db-postgres]
version = "0.32.1"
package = "obeli-sk-db-postgres"

[dependencies.db-sqlite]
version = "0.32.1"
package = "obeli-sk-db-sqlite"

[dependencies.derive_more]
version = "2.1.1"
features = [
    "debug",
    "deref",
    "display",
    "from_str",
    "into",
]

[dependencies.directories]
version = "6.0"

[dependencies.docker_credential]
version = "1.3.2"

[dependencies.executor]
version = "0.32.1"
package = "obeli-sk-executor"

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

[dependencies.grpc]
version = "0.32.1"
package = "obeli-sk-grpc"

[dependencies.hashbrown]
version = "0.16.1"
features = ["serde"]

[dependencies.http]
version = "1.4.0"

[dependencies.humantime_fmt]
version = "0.1.0"
features = ["with-chrono"]

[dependencies.itertools]
version = "0.14"

[dependencies.oci-client]
version = "0.15.0"
features = ["rustls-tls"]
default-features = false

[dependencies.oci-wasm]
version = "0.3.0"
features = ["rustls-tls"]
default-features = false

[dependencies.opentelemetry]
version = "0.31.0"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31.0"
features = [
    "tls",
    "tls-roots",
    "grpc-tonic",
]
optional = true

[dependencies.opentelemetry-semantic-conventions]
version = "0.31.0"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31.0"
features = ["rt-tokio"]
optional = true

[dependencies.prost]
version = "0.14.1"

[dependencies.prost-wkt-types]
version = "0.7"

[dependencies.rand]
version = "0.9"

[dependencies.schemars]
version = "1.2.0"

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

[dependencies.serde_json]
version = "1.0.147"

[dependencies.serde_with]
version = "3.16.1"

[dependencies.sha2]
version = "0.10.9"

[dependencies.strum]
version = "0.27.2"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-stream]
version = "0.1.17"

[dependencies.toml]
version = "0.9.10"
features = ["preserve_order"]

[dependencies.tonic]
version = "0.14.2"
features = [
    "zstd",
    "gzip",
    "tls-native-roots",
]
default-features = true

[dependencies.tonic-prost]
version = "0.14.2"

[dependencies.tonic-reflection]
version = "0.14.2"

[dependencies.tonic-web]
version = "0.14.2"

[dependencies.tower]
version = "0.5.2"

[dependencies.tower-http]
version = "0.6.8"
features = [
    "trace",
    "cors",
]

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dependencies.tracing-appender]
version = "0.2.4"

[dependencies.tracing-opentelemetry]
version = "0.32"

[dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "env-filter",
    "json",
]

[dependencies.utils]
version = "0.32.1"
package = "obeli-sk-utils"

[dependencies.val-json]
version = "0.32.1"
package = "obeli-sk-val-json"

[dependencies.wasm-workers]
version = "0.32.1"
package = "obeli-sk-wasm-workers"

[dependencies.wasmtime]
version = "40.0.0"
features = ["memory-protection-keys"]

[dev-dependencies.rstest]
version = "0.26"

[lints.clippy]
dbg_macro = "deny"
explicit_deref_methods = "allow"
from_iter_instead_of_collect = "allow"
if_not_else = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unnecessary_debug_formatting = "allow"

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

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

[lints.rust]
unexpected_cfgs = "deny"
unknown_lints = "deny"

[profile.dev]
debug = "line-tables-only"

[profile.release]
opt-level = "s"
lto = "fat"
codegen-units = 1
overflow-checks = true
strip = "debuginfo"

[profile.release_wasm]
opt-level = "s"
debug = "line-tables-only"
inherits = "release"
strip = "none"
