Cargo Features

[dependencies]
sqlx-adapter = { version = "1.2.0", default-features = false, features = ["postgres", "mysql", "sqlite", "runtime-async-std-native-tls", "runtime-async-std-rustls", "runtime-tokio-native-tls", "runtime-tokio-rustls", "tokio", "async-std"] }
default = postgres, runtime-tokio-native-tls

These default features are set whenever sqlx-adapter is added without default-features = false somewhere in the dependency tree.

postgres default

databases

Enables postgres of sqlx

Affects actions::ConnectionPool, actions::new, actions::remove_policy, actions::remove_policies, actions::remove_filtered_policy

mysql

Enables mysql of sqlx

Affects actions::ConnectionPool, actions::new, actions::remove_policy, actions::remove_policies, actions::remove_filtered_policy

sqlite

Enables sqlite of sqlx

Affects actions::ConnectionPool, actions::new, actions::remove_policy, actions::remove_policies, actions::remove_filtered_policy

runtime-async-std-native-tls

async runtime
async-std

Enables runtime-async-std of casbin, runtime-async-std-native-tls of sqlx

runtime-async-std-rustls

Enables runtime-async-std of casbin, runtime-async-std-rustls of sqlx

runtime-tokio-native-tls default

tokio

Enables runtime-tokio of casbin, runtime-tokio-native-tls of sqlx

runtime-tokio-rustls

Enables runtime-tokio of casbin, runtime-tokio-rustls of sqlx

Features from optional dependencies

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

async-std implicit feature

Enables async-std

async-std:

Async version of the Rust standard library