laye 0.1.0

A framework-agnostic role and permission based access control library
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"
name = "laye"
version = "0.1.0"
authors = ["Oyinbo David Bayode <dev.davexoyinbo@gmail.com>"]
build = false
exclude = [
    ".github",
    "Makefile",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A framework-agnostic role and permission based access control library"
documentation = "https://docs.rs/laye"
readme = "README.md"
keywords = [
    "rbac",
    "access-control",
    "authorization",
    "permissions",
    "roles",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/dev-davexoyinbo/laye"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
actix-web = ["dep:actix-web"]
default = []
tower = [
    "dep:tower",
    "dep:http",
    "dep:futures-util",
]

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

[[example]]
name = "actix_web_example"
path = "examples/actix_web_example.rs"
required-features = ["actix-web"]

[[example]]
name = "axum_example"
path = "examples/axum_example.rs"
required-features = ["tower"]

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

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

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

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

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

[dependencies.actix-web]
version = "4"
optional = true

[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

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

[dependencies.tower]
version = "0.5"
optional = true

[dev-dependencies.actix-web]
version = "4"

[dev-dependencies.axum]
version = "0.8"

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

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"