id_effect_authz 0.13.0

Authorization for id_effect services: roles and permissions, named and resource policies, route guards
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.94"
name = "id_effect_authz"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authorization for id_effect services: roles and permissions, named and resource policies, route guards"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Industrial/id_effect"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[package.metadata.id_effect]
tier = "platform"

[features]
axum = [
    "dep:axum",
    "dep:id_effect_axum",
    "dep:tower-layer",
    "dep:tower-service",
]
default = []
testing = []

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

[[example]]
name = "010_policies"
path = "examples/010_policies.rs"

[[example]]
name = "020_route_guards"
path = "examples/020_route_guards.rs"
required-features = [
    "axum",
    "testing",
]

[[test]]
name = "guards"
path = "tests/guards.rs"
required-features = [
    "axum",
    "testing",
]

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

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

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

[dependencies.axum]
version = "0.8.9"
optional = true

[dependencies.id_effect]
version = "0.13.0"

[dependencies.id_effect_axum]
version = "0.13.0"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.tower-layer]
version = "0.3.3"
optional = true

[dependencies.tower-service]
version = "0.3.3"
optional = true

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

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

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

[lints.rust]
unsafe_code = "forbid"

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