https://github.com/xcaptain/casbin-rs
https://github.com/xcaptain/casbin-rs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xcaptain/casbin-rs
- Owner: xcaptain
- Created: 2019-08-10T19:22:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T04:08:24.000Z (almost 6 years ago)
- Last Synced: 2025-01-20T06:46:21.550Z (5 months ago)
- Language: Rust
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# casbin-rs
[](https://travis-ci.org/xcaptain/casbin-rs)
[](https://codecov.io/gh/xcaptain/casbin-rs)用rust实现的一个casbin,目前正在大力开发中
## 如何测试
```shell
cargo test
```如果使用vscode并且安装了lldb扩展的话,可以直接按下`F5`运行测试用例,并且添加断点调试代码
## TODO
- [x] 基本的匹配功能
- [ ] 从conf文件中创建model
- [x] rbac匹配
- [x] rbac构建角色链
- [ ] 错误处理
- [x] Enforcer中effector, adapter做成trait
- [x] Enforcer中role manager做成trait
- [ ] 一个postgresql的adapter
- [ ] 调研rhai,使得能够求值变参函数