diff --git a/Cargo.toml b/Cargo.toml index 1fc0e7a0..4f2a4c57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,21 +8,22 @@ license = "Apache-2.0" name = "casbin" readme = "README.md" repository = "https://github.com/casbin/casbin-rs" -version = "2.0.7" +version = "2.0.8" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] async-std = { version = "1.9.0", optional = true } -async-trait = "0.1.48" -globset = { version = "0.4.6", optional = true } -ritelinked = { version = "0.3.0", default-features = false, features = ["ahash", "inline-more"] } + +async-trait = "0.1.51" +globset = { version = "0.4.8", optional = true } +ritelinked = { version = "0.3.1", default-features = false, features = ["ahash", "inline-more"] } ip_network = { version = "0.4.0", optional = true } lazy_static = "1.4.0" -lru = { version = "0.6.5", optional = true } +lru = { version = "0.6.6", optional = true } parking_lot = "0.11" -regex = "1.4.5" -rhai = { version = "1.0.0", features = [ +regex = "1.5.4" +rhai = { version = "1.0.2", features = [ "sync", "only_i32", "no_function", @@ -32,12 +33,12 @@ rhai = { version = "1.0.0", features = [ "serde", "unchecked", ] } -serde = "1.0.125" +serde = "1.0.127" slog = { version = "2.7.0", optional = true } slog-async = { version = "2.6.0", optional = true } slog-term = { version = "2.8.0", optional = true } -thiserror = "1.0.24" -tokio = { version = "1.5.0", optional = true, default-features = false } +thiserror = "1.0.26" +tokio = { version = "1.10.0", optional = true, default-features = false } tokio-stream = { version = "0.1", optional = true, default-features = false } [features] @@ -56,12 +57,12 @@ watcher = [] [target.'cfg(target_arch = "wasm32")'.dev-dependencies] async-std = { version = "1.9.0", features = ["attributes"] } -serde = { version = "1.0.125", features = ["derive"] } +serde = { version = "1.0.127", features = ["derive"] } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] async-std = { version = "1.9.0", features = ["attributes"] } -serde = { version = "1.0.125", features = ["derive"] } -tokio = { version = "1.5.0", features = ["full"] } +serde = { version = "1.0.127", features = ["derive"] } +tokio = { version = "1.10.0", features = ["full"] } [profile.release] codegen-units = 1 diff --git a/README.md b/README.md index 465ef786..161e4559 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ Add this package to `Cargo.toml` of your project. (Check https://crates.io/crate ```toml [dependencies] -casbin = { version = "2.0.7", default-features = false, features = ["runtime-async-std", "logging", "incremental"] } -tokio = { version = "1.4.0", features = ["fs", "io-util"] } +casbin = { version = "2.0.8", default-features = false, features = ["runtime-async-std", "logging", "incremental"] } +tokio = { version = "1.10.0", features = ["fs", "io-util"] } ``` **Warning**: `tokio v1.0` or later is supported from `casbin v2.0.6`, we recommend that you upgrade the relevant components to ensure that they work properly. The last version that supports `tokio v0.2` is `casbin v2.0.5` , you can choose according to your needs.