pg-embed-setup-unpriv 0.5.0

Initialises postgresql_embedded clusters as root while handing off filesystem work to nobody
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.85"
name = "pg-embed-setup-unpriv"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Initialises postgresql_embedded clusters as root while handing off filesystem work to nobody"
homepage = "https://df12.studio/docs.html"
documentation = "https://docs.rs/pg-embed-setup-unpriv/latest/pg_embedded_setup_unpriv"
readme = "README.md"
license = "ISC"
repository = "https://github.com/leynos/pg-embedded-setup-unpriv"

[features]
async-api = []
cluster-unit-tests = ["dep:tracing-subscriber"]
dev-worker = ["dep:tracing-subscriber"]
diesel-support = [
    "dep:diesel",
    "dep:pq-sys",
]
json5 = []
loom-tests = ["dep:loom"]
privileged-tests = []
toml = []
yaml = []

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

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

[[bin]]
name = "pg_worker"
path = "src/bin/pg_worker.rs"

[[bin]]
name = "pg_worker_hang"
path = "tests/support/pg_worker_hang.rs"
required-features = ["dev-worker"]

[[test]]
name = "bootstrap_for_tests"
path = "tests/bootstrap_for_tests.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "bootstrap_privileges"
path = "tests/bootstrap_privileges.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "bootstrap_worker_binary"
path = "tests/bootstrap_worker_binary.rs"
required-features = ["cluster-unit-tests"]

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

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

[[test]]
name = "data_dir_recovery"
path = "tests/data_dir_recovery.rs"
required-features = [
    "cluster-unit-tests",
    "privileged-tests",
]

[[test]]
name = "database_lifecycle"
path = "tests/database_lifecycle.rs"
required-features = ["cluster-unit-tests"]

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

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

[[test]]
name = "observability"
path = "tests/observability.rs"
required-features = ["cluster-unit-tests"]

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

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

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

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

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

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

[[test]]
name = "shutdown_timeout"
path = "tests/shutdown_timeout.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "test_cluster"
path = "tests/test_cluster.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "test_cluster_async"
path = "tests/test_cluster_async.rs"
required-features = ["async-api"]

[[test]]
name = "test_cluster_behaviour"
path = "tests/test_cluster_behaviour.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "test_cluster_connection"
path = "tests/test_cluster_connection.rs"
required-features = [
    "cluster-unit-tests",
    "diesel-support",
]

[[test]]
name = "test_cluster_drop"
path = "tests/test_cluster_drop.rs"
required-features = ["cluster-unit-tests"]

[[test]]
name = "test_cluster_fixture"
path = "tests/test_cluster_fixture/mod.rs"
required-features = ["cluster-unit-tests"]

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

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

[dependencies.cap-std]
version = "4.0.0"

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

[dependencies.color-eyre]
version = "0.6"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.diesel]
version = "2"
features = ["postgres"]
optional = true
default-features = false

[dependencies.dirs]
version = "6.0"

[dependencies.figment]
version = "0.10"
features = ["env"]

[dependencies.figment-json5]
version = "0.1.1"

[dependencies.filetime]
version = "0.2.27"

[dependencies.libc]
version = "0.2"

[dependencies.loom]
version = "0.7.2"
optional = true

[dependencies.nix]
version = "0.30.1"
features = [
    "user",
    "fs",
]
default-features = false

[dependencies.openssl-sys]
version = "0.9.111"
features = ["vendored"]

[dependencies.ortho_config]
version = "0.5.0"
features = [
    "json5",
    "yaml",
    "toml",
]

[dependencies.postgres]
version = "0.19"

[dependencies.postgresql_embedded]
version = "0.20.0"
features = ["tokio"]

[dependencies.pq-sys]
version = "0.7.4"
features = ["bundled"]
optional = true

[dependencies.rstest]
version = "0.26"

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"

[dependencies.sha2]
version = "0.10"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]
optional = true

[dependencies.uncased]
version = "0.9"

[dependencies.wait-timeout]
version = "0.2"

[dependencies.xdg]
version = "3"

[dev-dependencies.color-eyre]
version = "0.6"

[dev-dependencies.diesel]
version = "2"
features = ["postgres"]
default-features = false

[dev-dependencies.mockall]
version = "0.13"

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

[dev-dependencies.rstest-bdd]
version = "0.3.2"

[dev-dependencies.rstest-bdd-macros]
version = "0.3.2"

[dev-dependencies.serial_test]
version = "3.0.0"
features = ["file_locks"]

[dev-dependencies.temp-env]
version = "0.3"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]

[dev-dependencies.unic-langid]
version = "0.9"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
big_endian_bytes = "deny"
blanket_clippy_restriction_lints = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
error_impl_error = "deny"
expect_used = "deny"
float_arithmetic = "deny"
host_endian_bytes = "deny"
implicit_hasher = "deny"
indexing_slicing = "deny"
integer_division = "deny"
integer_division_remainder_used = "deny"
let_underscore_must_use = "deny"
little_endian_bytes = "deny"
lossy_float_literal = "deny"
missing_const_for_fn = "deny"
missing_panics_doc = "deny"
must_use_candidate = "deny"
needless_pass_by_value = "deny"
option_if_let_else = "deny"
or_fun_call = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
result_large_err = "deny"
self_named_module_files = "deny"
shadow_reuse = "deny"
shadow_same = "deny"
shadow_unrelated = "deny"
str_to_string = "deny"
string_lit_as_bytes = "deny"
string_slice = "deny"
try_err = "deny"
unneeded_field_pattern = "deny"
unreachable = "deny"
unused_async = "deny"
unwrap_used = "deny"
use_self = "deny"

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

[lints.rust]
missing_docs = "deny"
renamed_and_removed_lints = "deny"
unknown_lints = "deny"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
missing_crate_level_docs = "deny"
private_intra_doc_links = "deny"
unescaped_backticks = "deny"