Installation

Cargo.toml

[dependencies]
kirino = "0.1"

Feature Flags

FeatureDescriptionDependencies
(default)RBAC core + in-memory backends
rbac-coreRBAC traits + engine only
rbac-inmemoryIn-memory assignment/role storesrbac-core
rbac-hierarchyRBAC1 hierarchical role inheritancerbac-core
rbac-constraintsRBAC2 constraint models (SSD/DSD)rbac-core
rbac-sqlSQL-based persistent storessqlx
rbac-sea-ormSeaORM entity modelssea-orm
rbac-redisRedis-based permission cacheredis
rbac-fullAll features enabledall above

Example: Full-featured setup

[dependencies]
kirino = { version = "0.1", features = ["rbac-full"] }

Example: Minimal setup

[dependencies]
kirino = { version = "0.1", default-features = false, features = ["rbac-core"] }

Verify Installation

cargo build
cargo test

All tests should pass without errors.

Requirements