Ross ROSS = Recommend OSS · open-source software intelligence for agents

apache/casbin-rs

An authorization library that supports access control models like ACL, RBAC, ABAC in Rust observed · 2026-08-28

github.com/apache/casbin-rs · homepage · Rust · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

88/100

  • Activity 97
  • Release rhythm 69
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 8.5
  • age_days: 2576
  • days_rel: 210
  • days_push: 20
  • n_releases_24m: 19

Full methodology

Adoption not part of the score

1134 stars · 94 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Casbin-RS is the Rust implementation of Apache Casbin, an authorization library that enforces access control based on configurable models such as ACL, RBAC, and ABAC. Policies are defined in PERM metamodel configuration files and can be persisted via adapters to files or databases like MySQL, PostgreSQL, and MongoDB.

Use cases

  • enforce role-based access control in a Rust web service
  • implement ACL permissions for API endpoints
  • add attribute-based access control (ABAC) to an application
  • store authorization policies in a database
  • manage role hierarchies and user-role mappings
  • switch authorization models without rewriting code

When to choose

  • you need flexible, model-driven authorization in a Rust project
  • you want consistent authorization logic across multiple languages via the Casbin ecosystem
  • you need RBAC with role hierarchies, domains, or ABAC conditions
  • you want policies persisted in files or various SQL/NoSQL databases

When to avoid

  • you need a full identity provider with authentication, SSO, or user management
  • your authorization needs are trivial and a simple hardcoded check suffices
  • you require fine-grained ReBAC-style relationship graphs like a dedicated Zanzibar system

Facets

library · maturity active

authorization auth middleware security backend web-development developer-tools rust cross-platform rbac abac acl access-control casbin policy-enforcement permissions

10 sources

Member repositories

RepositoryRoleHealth v2
apache/casbin-rsmain88

For agents

markdown · JSON · MCP: product_card(name="apache/casbin-rs")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem