mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
* feat: create `sqlx.toml` format * feat: add support for ignored_chars config to sqlx_core::migrate * chore: test ignored_chars with `U+FEFF` (ZWNBSP/BOM) https://en.wikipedia.org/wiki/Byte_order_mark * refactor: make `Config` always compiled simplifies usage while still making parsing optional for less generated code * refactor: add origin information to `Column` * feat(macros): implement `type_override` and `column_override` from `sqlx.toml` * refactor(sqlx.toml): make all keys kebab-case, create `macros.preferred-crates` * feat: make macros aware of `macros.preferred-crates` * feat: make `sqlx-cli` aware of `database-url-var` * feat: teach macros about `migrate.table-name`, `migrations-dir` * feat: teach macros about `migrate.ignored-chars` * chore: delete unused source file `sqlx-cli/src/migration.rs` * feat: teach `sqlx-cli` about `migrate.defaults` * feat: teach `sqlx-cli` about `migrate.migrations-dir` * feat: teach `sqlx-cli` about `migrate.table-name` * feat: introduce `migrate.create-schemas` * WIP feat: create multi-tenant database example * fix(postgres): don't fetch `ColumnOrigin` for transparently-prepared statements * feat: progress on axum-multi-tenant example * feat(config): better errors for mislabeled fields * WIP feat: filling out axum-multi-tenant example * feat: multi-tenant example No longer Axum-based because filling out the request routes would have distracted from the purpose of the example. * chore(ci): test multi-tenant example * fixup after merge * fix(ci): enable `sqlx-toml` in CLI build for examples * fix: CI, README for `multi-tenant` * fix: clippy warnings * fix: multi-tenant README * fix: sequential versioning inference for migrations * fix: migration versioning with explicit overrides * fix: only warn on ambiguous crates if the invocation relies on it * fix: remove unused imports * fix: doctest * fix: `sqlx mig add` behavior and tests * fix: restore original type-checking order * fix: deprecation warning in `tests/postgres/macros.rs` * feat: create postgres/multi-database example * fix: examples/postgres/multi-database * fix: cargo fmt * chore: add tests for config `migrate.defaults` * fix: sqlx-cli/tests/add.rs * feat(cli): add `--config` override to all relevant commands * chore: run `sqlx mig add` test with `RUST_BACKTRACE=1` * fix: properly canonicalize config path for `sqlx mig add` test * fix: get `sqlx mig add` test passing * fix(cli): test `migrate.ignored-chars`, fix bugs * feat: create `macros.preferred-crates` example * fix(examples): use workspace `sqlx` * fix: examples * fix(sqlite): unexpected feature flags in `type_checking.rs` * fix: run `cargo fmt` * fix: more example fixes * fix(ci): preferred-crates setup * fix(examples): enable default-features for workspace `sqlx` * fix(examples): issues in `preferred-crates` * chore: adjust error message for missing param type in `query!()` * doc: mention new `sqlx.toml` configuration * chore: add `CHANGELOG` entry Normally I generate these when cutting the release, but I wanted to take time to editorialize this one. * doc: fix new example titles * refactor: make `sqlx-toml` feature non-default, improve errors * refactor: eliminate panics in `Config` read path * chore: remove unused `axum` dependency from new examples * fix(config): restore fallback to default config for macros * chore(config): remove use of `once_cell` (to match `main`)
102 lines
3.6 KiB
TOML
102 lines
3.6 KiB
TOML
[package]
|
|
name = "sqlx-core"
|
|
description = "Core of SQLx, the rust SQL toolkit. Not intended to be used directly."
|
|
version.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["offline"]
|
|
|
|
[features]
|
|
default = []
|
|
migrate = ["sha2", "crc"]
|
|
|
|
any = []
|
|
|
|
json = ["serde", "serde_json"]
|
|
|
|
# for conditional compilation
|
|
_rt-async-std = ["async-std", "async-io"]
|
|
_rt-tokio = ["tokio", "tokio-stream"]
|
|
_tls-native-tls = ["native-tls"]
|
|
_tls-rustls-aws-lc-rs = ["_tls-rustls", "rustls/aws-lc-rs", "webpki-roots"]
|
|
_tls-rustls-ring-webpki = ["_tls-rustls", "rustls/ring", "webpki-roots"]
|
|
_tls-rustls-ring-native-roots = ["_tls-rustls", "rustls/ring", "rustls-native-certs"]
|
|
_tls-rustls = ["rustls"]
|
|
_tls-none = []
|
|
|
|
# support offline/decoupled building (enables serialization of `Describe`)
|
|
offline = ["serde", "either/serde"]
|
|
|
|
# Enable parsing of `sqlx.toml`.
|
|
# For simplicity, the `config` module is always enabled,
|
|
# but disabling this disables the `serde` derives and the `toml` crate,
|
|
# which is a good bit less code to compile if the feature isn't being used.
|
|
sqlx-toml = ["serde", "toml/parse"]
|
|
|
|
_unstable-doc = ["sqlx-toml"]
|
|
|
|
[dependencies]
|
|
# Runtimes
|
|
async-std = { workspace = true, optional = true }
|
|
tokio = { workspace = true, optional = true }
|
|
|
|
# TLS
|
|
native-tls = { version = "0.2.10", optional = true }
|
|
|
|
rustls = { version = "0.23.15", default-features = false, features = ["std", "tls12"], optional = true }
|
|
webpki-roots = { version = "0.26", optional = true }
|
|
rustls-native-certs = { version = "0.8.0", optional = true }
|
|
|
|
# Type Integrations
|
|
bit-vec = { workspace = true, optional = true }
|
|
bigdecimal = { workspace = true, optional = true }
|
|
rust_decimal = { workspace = true, optional = true }
|
|
time = { workspace = true, optional = true }
|
|
ipnet = { workspace = true, optional = true }
|
|
ipnetwork = { workspace = true, optional = true }
|
|
mac_address = { workspace = true, optional = true }
|
|
uuid = { workspace = true, optional = true }
|
|
|
|
async-io = { version = "1.9.0", optional = true }
|
|
base64 = { version = "0.22.0", default-features = false, features = ["std"] }
|
|
bytes = "1.1.0"
|
|
chrono = { version = "0.4.34", default-features = false, features = ["clock"], optional = true }
|
|
crc = { version = "3", optional = true }
|
|
crossbeam-queue = "0.3.2"
|
|
either = "1.6.1"
|
|
futures-core = { version = "0.3.19", default-features = false }
|
|
futures-io = "0.3.24"
|
|
futures-intrusive = "0.5.0"
|
|
futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "sink", "io"] }
|
|
log = { version = "0.4.18", default-features = false }
|
|
memchr = { version = "2.4.1", default-features = false }
|
|
percent-encoding = "2.1.0"
|
|
regex = { version = "1.5.5", optional = true }
|
|
serde = { version = "1.0.132", features = ["derive", "rc"], optional = true }
|
|
serde_json = { version = "1.0.73", features = ["raw_value"], optional = true }
|
|
toml = { version = "0.8.16", optional = true }
|
|
sha2 = { version = "0.10.0", default-features = false, optional = true }
|
|
#sqlformat = "0.2.0"
|
|
thiserror = "2.0.0"
|
|
tokio-stream = { version = "0.1.8", features = ["fs"], optional = true }
|
|
tracing = { version = "0.1.37", features = ["log"] }
|
|
smallvec = "1.7.0"
|
|
url = { version = "2.2.2" }
|
|
bstr = { version = "1.0", default-features = false, features = ["std"], optional = true }
|
|
hashlink = "0.10.0"
|
|
indexmap = "2.0"
|
|
event-listener = "5.2.0"
|
|
hashbrown = "0.15.0"
|
|
|
|
[dev-dependencies]
|
|
sqlx = { workspace = true, features = ["postgres", "sqlite", "mysql", "migrate", "macros", "time", "uuid"] }
|
|
tokio = { version = "1", features = ["rt"] }
|
|
|
|
[lints]
|
|
workspace = true
|