From 570c253ffba2dcfb2749548f40896f2b1d787442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sat, 8 May 2021 11:51:18 +0900 Subject: [PATCH] Disable default features on futures-util to drop proc macros. --- Cargo.lock | 27 --------------------------- helix-lsp/Cargo.toml | 2 +- helix-term/Cargo.toml | 2 +- 3 files changed, 2 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index abf6e630e..b65d9baaf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,18 +202,6 @@ dependencies = [ "futures-util", ] -[[package]] -name = "futures-macro" -version = "0.3.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "668c6733a182cd7deb4f1de7ba3bf2120823835b3bcfbeacf7d2c4a773c1bb8b" -dependencies = [ - "proc-macro-hack", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "futures-task" version = "0.3.14" @@ -227,12 +215,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c144ad54d60f23927f0a6b6d816e4271278b64f005ad65e4e35291d2de9c025" dependencies = [ "futures-core", - "futures-macro", "futures-task", "pin-project-lite", "pin-utils", - "proc-macro-hack", - "proc-macro-nested", "slab", ] @@ -648,18 +633,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" -[[package]] -name = "proc-macro-hack" -version = "0.5.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" - -[[package]] -name = "proc-macro-nested" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" - [[package]] name = "proc-macro2" version = "1.0.26" diff --git a/helix-lsp/Cargo.toml b/helix-lsp/Cargo.toml index 0fae9cb2c..ee16ebfb7 100644 --- a/helix-lsp/Cargo.toml +++ b/helix-lsp/Cargo.toml @@ -24,6 +24,6 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } # jsonrpc-core = { version = "17.1", default-features = false } # don't pull in all of futures jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc", default-features = false } # don't pull in all of futures -futures-util = { version = "0.3", features = ["std", "async-await"] } +futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false } thiserror = "1.0" log = "~0.4" diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 73468f4da..a86549a7d 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -25,7 +25,7 @@ tui = { version = "0.15", default-features = false, features = ["crossterm"] } crossterm = { version = "0.19", features = ["event-stream"] } clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std", "cargo"] } -futures-util = { version = "0.3", features = ["std", "async-await"] } +futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false } # Logging fern = "0.6"