permkit 0.2.0

Generic permission registry, permission derive macro, and route guard macro
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 = "permkit"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic permission registry, permission derive macro, and route guard macro"
readme = "README.md"
keywords = [
    "permissions",
    "authorization",
    "auth",
    "proc-macro",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/code-trust/permkit"

[features]
default = ["macros"]
macros = [
    "dep:auth-macros",
    "dep:permission-macros",
]
utoipa = [
    "dep:utoipa",
    "permission-macros?/utoipa",
]

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

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

[dependencies.auth-macros]
version = "0.1.0"
optional = true
package = "permkit-auth-macros"

[dependencies.inventory]
version = "0.3"

[dependencies.itertools]
version = "0.14"

[dependencies.permission-macros]
version = "0.1.0"
optional = true
package = "permkit-permission-macros"

[dependencies.serde]
version = "1"

[dependencies.utoipa]
version = "5"
optional = true

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

[lints.clippy]
branches_sharing_code = "warn"
cloned_instead_of_copied = "warn"
derive_partial_eq_without_eq = "warn"
duration_suboptimal_units = "warn"
elidable_lifetime_names = "warn"
equatable_if_let = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
from_iter_instead_of_collect = "warn"
future_not_send = "warn"
get_unwrap = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
manual_assert = "warn"
manual_let_else = "warn"
manual_string_new = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
needless_collect = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_string_hashes = "warn"
non_std_lazy_statics = "warn"
or_fun_call = "warn"
redundant_clone = "warn"
redundant_else = "warn"
redundant_pub_crate = "warn"
semicolon_if_nothing_returned = "warn"
significant_drop_tightening = "warn"
single_match_else = "warn"
str_to_string = "warn"
trait_duplication_in_bounds = "warn"
type_repetition_in_bounds = "warn"
uninlined_format_args = "warn"
unnecessary_self_imports = "warn"
unnecessary_semicolon = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_trailing_comma = "warn"
unneeded_field_pattern = "warn"
unused_async = "warn"
unused_self = "warn"
unused_trait_names = "warn"
use_self = "warn"
used_underscore_binding = "warn"
wildcard_imports = "warn"