Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng JIANG committed May 1, 2020
1 parent ce8f59c commit 5abee40
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "casbin"
version = "0.6.1"
version = "0.6.2"
authors = ["Joey <[email protected]>", "Cheng JIANG <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this package to `Cargo.toml` of your project. (Check https://crates.io/crate

```toml
[dependencies]
casbin = "0.6.1"
casbin = "0.6.2"
async-std = { version = "1.5.0", features = ["attributes"] }
```

Expand All @@ -49,9 +49,9 @@ async fn main() -> Result<()> {
2. Add an enforcement hook into your code right before the access happens:

```rust
sub = "alice"; // the user that wants to access a resource.
obj = "data1"; // the resource that is going to be accessed.
act = "read"; // the operation that the user performs on the resource.
let sub = "alice"; // the user that wants to access a resource.
let obj = "data1"; // the resource that is going to be accessed.
let act = "read"; // the operation that the user performs on the resource.

if let Ok(authorized) = e.enforce(&[sub, obj, act]).await {
if authorized {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub use enforcer::Enforcer;
pub use error::Error;
pub use internal_api::InternalApi;
pub use management_api::MgmtApi;
pub use model::{Assertion, DefaultModel, Model};
pub use model::{function_map, Assertion, DefaultModel, Model};
pub use rbac::{DefaultRoleManager, RoleManager};
pub use rbac_api::RbacApi;
pub use watcher::Watcher;
Expand Down
2 changes: 1 addition & 1 deletion src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{

mod assertion;
mod default_model;
mod function_map;
pub mod function_map;

pub use assertion::{Assertion, AssertionMap};
pub use default_model::DefaultModel;
Expand Down

0 comments on commit 5abee40

Please sign in to comment.