sqlx/sqlx-macros/Cargo.toml

95 lines
2.7 KiB
TOML
Raw Normal View History

2019-11-01 05:01:42 +00:00
[package]
name = "sqlx-macros"
2022-02-18 21:49:06 +00:00
version = "0.5.11"
2019-12-28 08:25:04 +00:00
repository = "https://github.com/launchbadge/sqlx"
description = "Macros for SQLx, the rust SQL toolkit. Not intended to be used directly."
2019-12-28 10:44:32 +00:00
license = "MIT OR Apache-2.0"
2019-11-01 05:01:42 +00:00
edition = "2018"
2019-12-28 01:31:01 +00:00
authors = [
2021-04-16 01:38:50 +00:00
"Ryan Leckey <leckey.ryan@gmail.com>",
"Austin Bonander <austin.bonander@gmail.com>",
"Chloe Ross <orangesnowfox@gmail.com>",
"Daniel Akhterov <akhterovd@gmail.com>",
] # daniel@launchbadge.com
2019-11-01 05:01:42 +00:00
[lib]
proc-macro = true
[features]
2021-04-16 01:38:50 +00:00
default = ["runtime-async-std-native-tls", "migrate"]
migrate = ["sha2", "sqlx-core/migrate"]
2019-12-28 01:31:01 +00:00
# runtimes
2021-04-16 01:38:50 +00:00
runtime-actix-native-tls = [
"sqlx-core/runtime-actix-native-tls",
"sqlx-rt/runtime-actix-native-tls",
"_rt-actix",
]
runtime-async-std-native-tls = [
"sqlx-core/runtime-async-std-native-tls",
"sqlx-rt/runtime-async-std-native-tls",
"_rt-async-std",
]
runtime-tokio-native-tls = [
"sqlx-core/runtime-tokio-native-tls",
"sqlx-rt/runtime-tokio-native-tls",
"_rt-tokio",
]
2021-04-16 01:38:50 +00:00
runtime-actix-rustls = [
"sqlx-core/runtime-actix-rustls",
"sqlx-rt/runtime-actix-rustls",
"_rt-actix",
]
runtime-async-std-rustls = [
"sqlx-core/runtime-async-std-rustls",
"sqlx-rt/runtime-async-std-rustls",
"_rt-async-std",
]
runtime-tokio-rustls = [
"sqlx-core/runtime-tokio-rustls",
"sqlx-rt/runtime-tokio-rustls",
"_rt-tokio",
]
2020-10-20 10:21:01 +00:00
# for conditional compilation
_rt-actix = []
_rt-async-std = []
_rt-tokio = []
# offline building support
offline = ["sqlx-core/offline", "hex", "serde", "serde_json", "sha2"]
2020-01-15 09:54:46 +00:00
2019-12-28 01:31:01 +00:00
# database
2021-04-16 01:38:50 +00:00
mysql = ["sqlx-core/mysql"]
postgres = ["sqlx-core/postgres"]
sqlite = ["sqlx-core/sqlite"]
mssql = ["sqlx-core/mssql"]
2019-12-28 01:31:01 +00:00
# type
2021-04-16 01:38:50 +00:00
bigdecimal = ["sqlx-core/bigdecimal"]
decimal = ["sqlx-core/decimal"]
chrono = ["sqlx-core/chrono"]
time = ["sqlx-core/time"]
ipnetwork = ["sqlx-core/ipnetwork"]
2021-07-19 23:55:53 +00:00
mac_address = ["sqlx-core/mac_address"]
2021-04-16 01:38:50 +00:00
uuid = ["sqlx-core/uuid"]
bit-vec = ["sqlx-core/bit-vec"]
json = ["sqlx-core/json", "serde_json"]
2019-12-28 01:31:01 +00:00
[dependencies]
dotenv = { version = "0.15.0", default-features = false }
hex = { version = "0.4.3", optional = true }
heck = "0.3.3"
either = "1.6.1"
once_cell = "1.9.0"
proc-macro2 = { version = "1.0.36", default-features = false }
2022-02-18 21:49:06 +00:00
sqlx-core = { version = "0.5.11", default-features = false, path = "../sqlx-core" }
sqlx-rt = { version = "0.5.11", default-features = false, path = "../sqlx-rt" }
serde = { version = "1.0.132", features = ["derive"], optional = true }
2022-02-18 21:49:06 +00:00
serde_json = { version = "1.0.73", optional = true }
sha2 = { version = "0.9.8", optional = true }
syn = { version = "1.0.84", default-features = false, features = ["full"] }
quote = { version = "1.0.14", default-features = false }
url = { version = "2.2.2", default-features = false }