mkit-server 0.5.0

Runtime-agnostic core of the mkit server: operation model, errors, runtime and telemetry vocabulary
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.95.0"
name = "mkit-server"
version = "0.5.0"
authors = ["Official Unofficial, Inc."]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime-agnostic core of the mkit server: operation model, errors, runtime and telemetry vocabulary"
homepage = "https://github.com/officialunofficial/mkit"
documentation = "https://docs.rs/mkit-server"
readme = "README.md"
keywords = [
    "mkit",
    "vcs",
    "server",
    "connectrpc",
    "wasm",
]
categories = [
    "network-programming",
    "web-programming::http-server",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/officialunofficial/mkit"

[package.metadata.docs.rs]
features = [
    "connect",
    "memory",
    "sql",
    "ssh",
    "fs",
    "remote-hooks",
    "http-objects",
    "published-view",
]

[features]
connect = [
    "dep:connectrpc",
    "dep:buffa",
    "dep:http",
    "mkit-rpc/transport",
]
default = ["connect"]
fs = ["dep:mkit-transport-file"]
http-objects = []
memory = []
pack-ruzstd = ["mkit-core/pack-ruzstd"]
published-view = []
remote-hooks = [
    "dep:buffa",
    "buffa/json",
    "dep:getrandom",
    "mkit-rpc/hooks",
]
sql = []
ssh = ["dep:mkit-rpc"]
test-faults = []

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

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

[[test]]
name = "connect_dispatch"
path = "tests/connect_dispatch.rs"
required-features = [
    "connect",
    "memory",
]

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1"
default-features = false

[dependencies.buffa]
version = "0.9.1"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.connectrpc]
version = "0.9.1"
features = [
    "gzip",
    "json",
]
optional = true
default-features = false

[dependencies.ed25519-dalek]
version = "3"
features = [
    "alloc",
    "zeroize",
]
default-features = false

[dependencies.futures]
version = "0.3"
features = ["std"]
default-features = false

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

[dependencies.getrandom]
version = "0.4"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.mkit-attest]
version = "0.5"
features = ["grants"]
default-features = false

[dependencies.mkit-core]
version = "0.5"
default-features = false

[dependencies.mkit-rpc]
version = "0.5"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.subtle]
version = "2"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false

[dependencies.tracing]
version = "0.1"
features = [
    "std",
    "attributes",
]
default-features = false

[dependencies.zeroize]
version = "1"

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures-executor]
version = "0.3"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.k256]
version = "0.14"
features = [
    "ecdsa",
    "std",
]
default-features = false

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.sha2]
version = "0.11"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "time",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.mkit-transport-file]
version = "0.5"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.send_wrapper]
version = "0.6"
features = ["futures"]

[lints.clippy]
dbg_macro = "deny"
doc_lazy_continuation = "allow"
missing_errors_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
unwrap_used = "deny"

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

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

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

[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]