[package] name = "cherry" version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true repository.workspace = true keywords.workspace = true description.workspace = true [lib] required-features = [] [[test]] name = "derive_test" path = "tests/derive_test.rs" required-features = ["mysql", "sqlite", "runtime-async-std-rustls"] [[test]] name = "insert_test" path = "tests/insert_test.rs" required-features = ["mysql", "sqlite", "chrono", "json", "runtime-async-std-rustls"] [[test]] name = "select_test" path = "tests/select_test.rs" required-features = ["mysql", "sqlite", "json", "runtime-async-std-rustls"] [dependencies] anyhow.workspace = true futures-core.workspace = true sqlx.workspace = true cherry-derive = { version = "0.4.0", path = "../cherry-derive"} [dev-dependencies] chrono.workspace = true async-std = { workspace = true, features = ["attributes"] } sqlx = { workspace = true, features = ["all-databases", "runtime-async-std-rustls"]} [features] default = ["sqlx/default"] macros = ["sqlx/sqlx-macros"] migrate = ["sqlx/migrate"] all = ["tls", "all-databases", "all-types"] all-databases = ["mysql", "sqlite", "postgres"] mysql = ["sqlx/mysql", "cherry-derive/mysql"] postgres = ["sqlx/postgres", "cherry-derive/postgres"] sqlite = ["sqlx/sqlite", "cherry-derive/sqlite"] #mssql = ["sqlx/mssql"] #any = ["sqlx/any"] all-types = [ "bigdecimal", "decimal", "json", "time", "chrono", "ipnetwork", "mac_address", "uuid", "bit-vec", "bstr", "git2", ] bit-vec = ["sqlx/bit-vec"] decimal = ["sqlx/decimal"] bigdecimal = ["sqlx/bigdecimal"] bstr = ["sqlx/bstr"] chrono = ["sqlx/chrono"] git2 = ["sqlx/git2"] ipnetwork = ["sqlx/ipnetwork"] json = ["sqlx/json"] mac_address = ["sqlx/mac_address"] time = ["sqlx/time"] uuid = ["sqlx/uuid"] offline = ["sqlx/offline"] tls = ["sqlx/tls"] #runtime-actix = ["sqlx/runtime-actix"] runtime-actix-native-tls = ["sqlx/runtime-actix-native-tls"] runtime-actix-rustls = ["sqlx/runtime-actix-rustls"] #runtime-async-std = ["sqlx/runtime-async-std"] runtime-async-std-native-tls = ["sqlx/runtime-async-std-native-tls"] runtime-async-std-rustls = ["sqlx/runtime-async-std-rustls"] #runtime-tokio = ["sqlx/runtime-tokio"] runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls"] runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"]