This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-rust-diesel-adapter.git
The following commit(s) were added to refs/heads/master by this push:
new d1c9a4e fix: make libsqlite3-sys an optional dependency
d1c9a4e is described below
commit d1c9a4e37bf3df8d6880f56c33b1354867ecf4a9
Author: Yang Luo <[email protected]>
AuthorDate: Fri Aug 21 09:56:23 2026 +0800
fix: make libsqlite3-sys an optional dependency
---
Cargo.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 42d99cb..eeaa270 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ async-trait = "0.1.42"
casbin = { version = "2.1.0", default-features = false }
diesel = { version = "2.0.3", default-features = false, features =
["r2d2"] }
futures = "0.3"
-libsqlite3-sys = { version = "0.26.0", features = ["bundled"] }
+libsqlite3-sys = { version = "0.26.0", features = ["bundled"], optional = true
}
tokio = { version = "1.1.1", default-features = false, optional = true }
once_cell = "1.5.2"
@@ -23,7 +23,7 @@ default = ["postgres", "runtime-tokio"]
mysql = ["diesel/mysql"]
postgres = ["diesel/postgres"]
-sqlite = ["diesel/sqlite", "libsqlite3-sys/bundled"]
+sqlite = ["diesel/sqlite", "dep:libsqlite3-sys"]
runtime-async-std = ["casbin/runtime-async-std", "async-std/unstable"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/rt"]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]