gatehouse 0.5.0

An in-process authorization engine for Rust with composable policies and request-scoped fact loading.
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 = "2021"
rust-version = "1.82"
name = "gatehouse"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An in-process authorization engine for Rust with composable policies and request-scoped fact loading."
readme = "README.md"
license = "MIT"
repository = "https://github.com/thepartly/gatehouse"

[package.metadata.docs.rs]
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
all-features = true

[features]
default = []
serde = ["dep:serde"]

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

[[example]]
name = "actix_web"
path = "examples/actix_web.rs"
doc-scrape-examples = true

[[example]]
name = "axum"
path = "examples/axum.rs"
doc-scrape-examples = true

[[example]]
name = "combinator_policy"
path = "examples/combinator_policy.rs"

[[example]]
name = "delegating_policy"
path = "examples/delegating_policy.rs"

[[example]]
name = "deny_override"
path = "examples/deny_override.rs"

[[example]]
name = "factsource_n_plus_one"
path = "examples/factsource_n_plus_one.rs"

[[example]]
name = "in_ram_rebac"
path = "examples/in_ram_rebac.rs"

[[example]]
name = "lookup_in_ram"
path = "examples/lookup_in_ram.rs"

[[example]]
name = "mfa_freshness_context"
path = "examples/mfa_freshness_context.rs"

[[example]]
name = "policy_builder"
path = "examples/policy_builder.rs"

[[example]]
name = "postgres_bulk_rebac"
path = "examples/postgres_bulk_rebac.rs"

[[example]]
name = "rbac_policy"
path = "examples/rbac_policy.rs"

[[example]]
name = "rebac_policy"
path = "examples/rebac_policy.rs"

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

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

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

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

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

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

[[bench]]
name = "permission_checker"
path = "benches/permission_checker.rs"
harness = false

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

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

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

[dependencies.tracing]
version = "0.1"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[target."cfg(not(loom))".dev-dependencies.actix-web]
version = "4"

[target."cfg(not(loom))".dev-dependencies.axum]
version = "0.8"

[target."cfg(not(loom))".dev-dependencies.criterion]
version = "0.8"

[target."cfg(not(loom))".dev-dependencies.dashmap]
version = "6"

[target."cfg(not(loom))".dev-dependencies.hyper]
version = "1"

[target."cfg(not(loom))".dev-dependencies.proptest]
version = "1"

[target."cfg(not(loom))".dev-dependencies.serde]
version = "1"
features = ["derive"]

[target."cfg(not(loom))".dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[target."cfg(not(loom))".dev-dependencies.tokio-postgres]
version = "0.7"
features = ["with-uuid-1"]

[target."cfg(not(loom))".dev-dependencies.tokio-test]
version = "0.4"

[target."cfg(not(loom))".dev-dependencies.tower]
version = "0.5"

[target."cfg(not(loom))".dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "registry",
    "std",
]
default-features = false

[target."cfg(not(loom))".dev-dependencies.uuid]
version = "1"
features = [
    "serde",
    "v4",
]

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