[workspace] members = [ ".", "sqlx-core", "sqlx-rt", "sqlx-macros", "sqlx-test", "sqlx-cli", "sqlx-bench", "examples/mysql/todos", "examples/postgres/axum-social-with-tests", "examples/postgres/files", "examples/postgres/json", "examples/postgres/listen", "examples/postgres/todos", "examples/postgres/mockable-todos", "examples/postgres/transaction", "examples/sqlite/todos", ] [package] name = "sqlx-oldapi" version = "0.6.38" license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/lovasoa/sqlx" documentation = "https://docs.rs/sqlx" description = "🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite." edition = "2021" keywords = ["database", "async", "postgres", "mysql", "sqlite"] categories = ["database", "asynchronous"] authors = [ "Ryan Leckey ", "Austin Bonander ", "Chloe Ross ", "Daniel Akhterov ", ] [package.metadata.docs.rs] features = ["all", "runtime-tokio-native-tls"] rustdoc-args = ["--cfg", "docsrs"] [features] default = ["macros", "migrate"] macros = ["sqlx-macros"] migrate = ["sqlx-macros/migrate", "sqlx-core/migrate"] # [deprecated] TLS is not possible to disable due to it being conditional on multiple features # Hopefully Cargo can handle this in the future tls = [] # offline building support in `sqlx-macros` offline = ["sqlx-macros/offline", "sqlx-core/offline"] # intended mainly for CI and docs all = ["tls", "all-databases", "all-types"] all-databases = ["mysql", "sqlite", "postgres", "mssql", "any"] all-types = [ "bigdecimal", "decimal", "json", "time", "chrono", "ipnetwork", "mac_address", "uuid", "bit-vec", "bstr", "git2", ] # previous runtimes, available as features for error messages better than just # "feature doesn't exist" runtime-actix = [] runtime-async-std = [] runtime-tokio = [] # actual runtimes runtime-actix-native-tls = ["runtime-tokio-native-tls"] runtime-async-std-native-tls = [ "sqlx-core/runtime-async-std-native-tls", "sqlx-macros/runtime-async-std-native-tls", "_rt-async-std", ] runtime-tokio-native-tls = [ "sqlx-core/runtime-tokio-native-tls", "sqlx-macros/runtime-tokio-native-tls", "_rt-tokio", ] runtime-actix-rustls = ["runtime-tokio-rustls"] runtime-async-std-rustls = [ "sqlx-core/runtime-async-std-rustls", "sqlx-macros/runtime-async-std-rustls", "_rt-async-std", ] runtime-tokio-rustls = [ "sqlx-core/runtime-tokio-rustls", "sqlx-macros/runtime-tokio-rustls", "_rt-tokio", ] # for conditional compilation _rt-async-std = [] _rt-tokio = [] # database any = ["sqlx-core/any"] postgres = ["sqlx-core/postgres", "sqlx-macros/postgres"] mysql = ["sqlx-core/mysql", "sqlx-macros/mysql"] sqlite = ["sqlx-core/sqlite", "sqlx-macros/sqlite"] mssql = ["sqlx-core/mssql", "sqlx-macros/mssql"] # types bigdecimal = ["sqlx-core/bigdecimal", "sqlx-macros/bigdecimal"] decimal = ["sqlx-core/decimal", "sqlx-macros/decimal"] chrono = ["sqlx-core/chrono", "sqlx-macros/chrono"] ipnetwork = ["sqlx-core/ipnetwork", "sqlx-macros/ipnetwork"] mac_address = ["sqlx-core/mac_address", "sqlx-macros/mac_address"] uuid = ["sqlx-core/uuid", "sqlx-macros/uuid"] json = ["sqlx-core/json", "sqlx-macros/json"] time = ["sqlx-core/time", "sqlx-macros/time"] bit-vec = ["sqlx-core/bit-vec", "sqlx-macros/bit-vec"] bstr = ["sqlx-core/bstr"] git2 = ["sqlx-core/git2"] [dependencies] sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.38", path = "sqlx-core", default-features = false } sqlx-macros = { package = "sqlx-macros-oldapi", version = "0.6.38", path = "sqlx-macros", default-features = false, optional = true } [dev-dependencies] anyhow = "1.0.52" time_ = { version = "0.3.2", package = "time" } futures = "0.3.19" env_logger = "0.11.1" async-std = { version = "1.10.0", features = ["attributes"] } tokio = { version = "1.15.0", features = ["full"] } dotenvy = "0.15.0" trybuild = "1.0.53" sqlx-rt = { path = "./sqlx-rt", package = "sqlx-rt-oldapi" } sqlx-test = { path = "./sqlx-test" } paste = "1.0.6" serde = { version = "1.0.132", features = ["derive"] } serde_json = "1.0.73" url = "2.2.2" rand = "0.8.4" rand_xoshiro = "0.6.0" hex = "0.4.3" tempdir = "0.3.7" # Needed to test SQLCipher libsqlite3-sys = { version = "0", features = ["bundled-sqlcipher-vendored-openssl"] } # # Any # [[test]] name = "any" path = "tests/any/any.rs" required-features = ["any"] [[test]] name = "any-pool" path = "tests/any/pool.rs" required-features = ["any"] # # Migrations # [[test]] name = "migrate-macro" path = "tests/migrate/macro.rs" required-features = ["macros", "migrate"] # # SQLite # [[test]] name = "sqlite" path = "tests/sqlite/sqlite.rs" required-features = ["sqlite"] [[test]] name = "sqlite-types" path = "tests/sqlite/types.rs" required-features = ["sqlite"] [[test]] name = "sqlite-describe" path = "tests/sqlite/describe.rs" required-features = ["sqlite"] [[test]] name = "sqlite-macros" path = "tests/sqlite/macros.rs" required-features = ["sqlite", "macros"] [[test]] name = "sqlite-derives" path = "tests/sqlite/derives.rs" required-features = ["sqlite", "macros"] [[test]] name = "sqlcipher" path = "tests/sqlite/sqlcipher.rs" required-features = ["sqlite"] [[test]] name = "sqlite-test-attr" path = "tests/sqlite/test-attr.rs" required-features = ["sqlite", "macros", "migrate"] [[test]] name = "sqlite-migrate" path = "tests/sqlite/migrate.rs" required-features = ["sqlite", "macros", "migrate"] # # MySQL # [[test]] name = "mysql" path = "tests/mysql/mysql.rs" required-features = ["mysql"] [[test]] name = "mysql-types" path = "tests/mysql/types.rs" required-features = ["mysql"] [[test]] name = "mysql-describe" path = "tests/mysql/describe.rs" required-features = ["mysql"] [[test]] name = "mysql-macros" path = "tests/mysql/macros.rs" required-features = ["mysql", "macros"] [[test]] name = "mysql-test-attr" path = "tests/mysql/test-attr.rs" required-features = ["mysql", "macros", "migrate"] [[test]] name = "mysql-migrate" path = "tests/mysql/migrate.rs" required-features = ["mysql", "macros", "migrate"] # # PostgreSQL # [[test]] name = "postgres" path = "tests/postgres/postgres.rs" required-features = ["postgres"] [[test]] name = "postgres-types" path = "tests/postgres/types.rs" required-features = ["postgres"] [[test]] name = "postgres-describe" path = "tests/postgres/describe.rs" required-features = ["postgres"] [[test]] name = "postgres-macros" path = "tests/postgres/macros.rs" required-features = ["postgres", "macros"] [[test]] name = "postgres-derives" path = "tests/postgres/derives.rs" required-features = ["postgres", "macros"] [[test]] name = "postgres-test-attr" path = "tests/postgres/test-attr.rs" required-features = ["postgres", "macros", "migrate"] [[test]] name = "postgres-migrate" path = "tests/postgres/migrate.rs" required-features = ["postgres", "macros", "migrate"] # # Microsoft SQL Server (MSSQL) # [[test]] name = "mssql" path = "tests/mssql/mssql.rs" required-features = ["mssql"] [[test]] name = "mssql-types" path = "tests/mssql/types.rs" required-features = ["mssql"] [[test]] name = "mssql-describe" path = "tests/mssql/describe.rs" required-features = ["mssql"] [[test]] name = "mssql-macros" path = "tests/mssql/macros.rs" required-features = ["mssql", "macros"]