mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
3440440564
* Fixed typo. (#2156) * Set whoami default-features to false Otherwise, whoami pulls in web-sys, wasm-bindgen and a BUNCH of additional dependencies. This is really unnecessary, and if someone has an actual use case where they are attempting to connect to postgres from a browser, well ... they've probably already been pwned by now. If it is deemed necessary, then add an additional activation feature for that specific slew of deps. --------- Co-authored-by: Chris Foster <cdbfoster@gmail.com>
74 lines
2.7 KiB
TOML
74 lines
2.7 KiB
TOML
[package]
|
|
name = "sqlx-postgres"
|
|
readme = "README.md"
|
|
documentation = "https://docs.rs/sqlx"
|
|
description = "PostgreSQL driver implementation for SQLx. Not for direct use; see the `sqlx` crate for details."
|
|
version.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
any = ["sqlx-core/any"]
|
|
json = ["sqlx-core/json"]
|
|
migrate = ["sqlx-core/migrate"]
|
|
offline = ["sqlx-core/offline"]
|
|
|
|
# Type integration features which require additional dependencies
|
|
rust_decimal = ["dep:rust_decimal", "dep:num-bigint"]
|
|
|
|
[dependencies]
|
|
# Futures crates
|
|
futures-channel = { version = "0.3.19", default-features = false, features = ["sink", "alloc", "std"] }
|
|
futures-core = { version = "0.3.19", default-features = false }
|
|
futures-io = "0.3.24"
|
|
futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "sink", "io"] }
|
|
|
|
# Cryptographic Primitives
|
|
crc = "3.0.0"
|
|
hkdf = "0.12.0"
|
|
hmac = { version = "0.12.0", default-features = false }
|
|
md-5 = { version = "0.10.0", default-features = false }
|
|
rand = { version = "0.8.4", default-features = false, features = ["std", "std_rng"] }
|
|
sha1 = { version = "0.10.1", default-features = false }
|
|
sha2 = { version = "0.10.0", default-features = false }
|
|
|
|
# Type Integrations (versions inherited from `[workspace.dependencies]`)
|
|
bigdecimal = { workspace = true, optional = true }
|
|
bit-vec = { workspace = true, optional = true }
|
|
chrono = { workspace = true, optional = true }
|
|
ipnetwork = { workspace = true, optional = true }
|
|
mac_address = { workspace = true, optional = true }
|
|
rust_decimal = { workspace = true, optional = true }
|
|
time = { workspace = true, optional = true }
|
|
uuid = { workspace = true, optional = true }
|
|
|
|
# Misc
|
|
atoi = "1.0"
|
|
base64 = { version = "0.13.0", default-features = false, features = ["std"] }
|
|
bitflags = { version = "1.3.2", default-features = false }
|
|
byteorder = { version = "1.4.3", default-features = false, features = ["std"] }
|
|
dirs = "4.0.0"
|
|
dotenvy = { workspace = true }
|
|
hex = "0.4.3"
|
|
itoa = "1.0.1"
|
|
log = "0.4.17"
|
|
memchr = { version = "2.4.1", default-features = false }
|
|
num-bigint = { version = "0.4.3", optional = true }
|
|
once_cell = "1.9.0"
|
|
smallvec = "1.7.0"
|
|
stringprep = "0.1.2"
|
|
thiserror = "1.0.35"
|
|
tracing = { version = "0.1.37", features = ["log"] }
|
|
whoami = { version = "1.2.1", default-features = false }
|
|
|
|
serde = { version = "1.0.144", features = ["derive"] }
|
|
serde_json = { version = "1.0.85", features = ["raw_value"] }
|
|
|
|
[dependencies.sqlx-core]
|
|
version = "=0.6.2"
|
|
path = "../sqlx-core"
|
|
# We use JSON in the driver implementation itself so there's no reason not to enable it here.
|
|
features = ["json"]
|