macros: remove now unused once-cell dep and make lazy_static optional

This commit is contained in:
Ryan Leckey 2020-01-16 01:04:34 -08:00
parent 2562c3518c
commit 1fd3976d65
2 changed files with 2 additions and 4 deletions

1
Cargo.lock generated
View file

@ -1421,7 +1421,6 @@ dependencies = [
"dotenv 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"once_cell 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"proc-macro2 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"sqlx-core 0.2.0",

View file

@ -19,7 +19,7 @@ proc-macro = true
default = []
runtime-async-std = [ "sqlx/runtime-async-std", "async-std" ]
runtime-tokio = [ "sqlx/runtime-tokio", "tokio", "once_cell" ]
runtime-tokio = [ "sqlx/runtime-tokio", "tokio", "lazy_static" ]
# database
mysql = [ "sqlx/mysql" ]
@ -32,7 +32,6 @@ uuid = [ "sqlx/uuid" ]
[dependencies]
async-std = { version = "1.4.0", default-features = false, optional = true }
tokio = { version = "0.2", optional = true }
once_cell = { version = "1.3", optional = true }
dotenv = { version = "0.15.0", default-features = false }
futures = { version = "0.3.1", default-features = false, features = ["executor"] }
proc-macro2 = { version = "1.0.6", default-features = false }
@ -40,4 +39,4 @@ sqlx = { version = "0.2.0", default-features = false, path = "../sqlx-core", pac
syn = { version = "1.0.11", default-features = false, features = [ "full" ] }
quote = { version = "1.0.2", default-features = false }
url = { version = "2.1.0", default-features = false }
lazy_static = "1.4.0"
lazy_static = { version = "1.4.0", optional = true }