Skip to content

Commit

Permalink
feat: update sqlx version to 0.7
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
  • Loading branch information
ip1981 committed Jul 4, 2023
1 parent 7eb3f44 commit 7bf0de0
Show file tree
Hide file tree
Showing 16 changed files with 323 additions and 322 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ readme= "README.md"

[dependencies]
casbin = { version = "2.0.8", default-features = false }
sqlx = { version = "0.6", default-features = false, features = [ "macros" ] }
sqlx = { version = "0.7", default-features = false, features = [ "macros" ] }
async-trait = "0.1.51"
dotenv = { version = "0.15.0", default-features = false }
tokio = { version = "1.10.0", default-features = false, optional = true }
async-std = { version = "1.9.0", default-features = false, optional = true }
actix-rt = { version = "2.2.0", default-features = false, optional = true }

[features]
default = ["postgres", "runtime-tokio-native-tls", "offline"]
default = ["postgres", "runtime-tokio-native-tls"]

#databases
postgres = ["sqlx/postgres"]
Expand All @@ -32,17 +31,10 @@ runtime-async-std-rustls = ["casbin/runtime-async-std", "sqlx/runtime-async-std-
# tokio
runtime-tokio-native-tls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-native-tls"]
runtime-tokio-rustls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-rustls"]
# actix (actually based on tokio)
runtime-actix-native-tls = ["casbin/runtime-tokio", "sqlx/runtime-actix-native-tls"]
runtime-actix-rustls = ["casbin/runtime-tokio", "sqlx/runtime-actix-rustls"]

#offline mode for sqlx
offline = ["sqlx/offline"]

[dev-dependencies]
async-std = { version = "1.9.0", features = [ "attributes" ] }
tokio = { version = "1.10.0", features = [ "full" ] }
actix-rt = { version = "2.2.0" }

[profile.release]
codegen-units = 1
Expand Down
Loading

0 comments on commit 7bf0de0

Please sign in to comment.