diff --git a/Cargo.lock b/Cargo.lock index 22f15aee..5f60f1b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/sqlx-macros/Cargo.toml b/sqlx-macros/Cargo.toml index 106a68c6..67f719e3 100644 --- a/sqlx-macros/Cargo.toml +++ b/sqlx-macros/Cargo.toml @@ -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 }