diff --git a/Cargo.lock b/Cargo.lock index b7aafd76a..1ce31b8b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -194,12 +194,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "bytes" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" - [[package]] name = "bytes" version = "1.1.0" @@ -268,11 +262,11 @@ version = "4.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50b727aacc797f9fc28e355d21f34709ac4fc9adecfe470ad07b8f4464f53062" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-core", "memchr", - "pin-project-lite 0.2.8", - "tokio 1.16.1", + "pin-project-lite", + "tokio", "tokio-util", ] @@ -606,12 +600,13 @@ checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" [[package]] name = "futures-locks" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c4e684ddb2d8a4db5ca8a02b35156da129674ba4412b6f528698d58c594954" +checksum = "3eb42d4fb72227be5778429f9ef5240a38a358925a49f05b5cf702ce7c7e558a" dependencies = [ - "futures", - "tokio 0.2.25", + "futures-channel", + "futures-task", + "tokio", ] [[package]] @@ -650,7 +645,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.8", + "pin-project-lite", "pin-utils", "slab", ] @@ -702,7 +697,7 @@ version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e" dependencies = [ - "bytes 1.1.0", + "bytes", "fnv", "futures-core", "futures-sink", @@ -710,7 +705,7 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.16.1", + "tokio", "tokio-util", "tracing", ] @@ -745,7 +740,7 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03" dependencies = [ - "bytes 1.1.0", + "bytes", "fnv", "itoa 1.0.1", ] @@ -756,9 +751,9 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6" dependencies = [ - "bytes 1.1.0", + "bytes", "http", - "pin-project-lite 0.2.8", + "pin-project-lite", ] [[package]] @@ -785,7 +780,7 @@ version = "0.14.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-channel", "futures-core", "futures-util", @@ -795,9 +790,9 @@ dependencies = [ "httparse", "httpdate", "itoa 1.0.1", - "pin-project-lite 0.2.8", + "pin-project-lite", "socket2", - "tokio 1.16.1", + "tokio", "tower-service", "tracing", "want", @@ -809,10 +804,10 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ - "bytes 1.1.0", + "bytes", "hyper", "native-tls", - "tokio 1.16.1", + "tokio", "tokio-native-tls", ] @@ -823,7 +818,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5617e92fc2f2501c3e2bc6ce547cad841adba2bae5b921c7e52510beca6d084c" dependencies = [ "base64 0.13.0", - "bytes 1.1.0", + "bytes", "http", "httpdate", "language-tags", @@ -1257,7 +1252,7 @@ dependencies = [ "libc", "log", "rand 0.7.3", - "tokio 1.16.1", + "tokio", "winapi 0.3.9", ] @@ -1298,12 +1293,6 @@ dependencies = [ "syn", ] -[[package]] -name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - [[package]] name = "pin-project-lite" version = "0.2.8" @@ -1516,15 +1505,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a80b5f38d7f5a020856a0e16e40a9cfabf88ae8f0e4c2dcd8a3114c1e470852" dependencies = [ "async-trait", - "bytes 1.1.0", + "bytes", "combine", "dtoa", "futures-util", "itoa 0.4.8", "native-tls", "percent-encoding", - "pin-project-lite 0.2.8", - "tokio 1.16.1", + "pin-project-lite", + "tokio", "tokio-native-tls", "tokio-util", "url", @@ -1588,7 +1577,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f242f1488a539a79bac6dbe7c8609ae43b7914b7736210f239a37cccb32525" dependencies = [ "base64 0.13.0", - "bytes 1.1.0", + "bytes", "encoding_rs", "futures-core", "futures-util", @@ -1604,11 +1593,11 @@ dependencies = [ "mime", "native-tls", "percent-encoding", - "pin-project-lite 0.2.8", + "pin-project-lite", "serde", "serde_json", "serde_urlencoded", - "tokio 1.16.1", + "tokio", "tokio-native-tls", "url", "wasm-bindgen", @@ -1698,7 +1687,7 @@ dependencies = [ "bincode", "blake3", "byteorder", - "bytes 1.1.0", + "bytes", "cc", "chrono", "clap", @@ -1750,7 +1739,7 @@ dependencies = [ "tar", "tempfile", "thirtyfour_sync", - "tokio 1.16.1", + "tokio", "tokio-serde", "tokio-util", "toml", @@ -2088,7 +2077,7 @@ dependencies = [ "serde_repr", "stringmatch", "thiserror", - "tokio 1.16.1", + "tokio", "urlparse", ] @@ -2184,30 +2173,19 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" -[[package]] -name = "tokio" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092" -dependencies = [ - "bytes 0.5.6", - "pin-project-lite 0.1.12", - "slab", -] - [[package]] name = "tokio" version = "1.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a" dependencies = [ - "bytes 1.1.0", + "bytes", "libc", "memchr", "mio", "num_cpus", "once_cell", - "pin-project-lite 0.2.8", + "pin-project-lite", "signal-hook-registry", "tokio-macros", "winapi 0.3.9", @@ -2231,7 +2209,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" dependencies = [ "native-tls", - "tokio 1.16.1", + "tokio", ] [[package]] @@ -2240,7 +2218,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-core", "futures-sink", "pin-project", @@ -2252,12 +2230,12 @@ version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-core", "futures-sink", "log", - "pin-project-lite 0.2.8", - "tokio 1.16.1", + "pin-project-lite", + "tokio", ] [[package]] @@ -2277,7 +2255,7 @@ checksum = "5651b5f6860a99bd1adb59dbfe1db8beb433e73709d9032b413a77e2fb7c066a" dependencies = [ "futures-core", "pin-project", - "pin-project-lite 0.2.8", + "pin-project-lite", "tower-layer", "tower-service", "tracing", @@ -2303,7 +2281,7 @@ checksum = "2d8d93354fe2a8e50d5953f5ae2e47a3fc2ef03292e7ea46e3cc38f549525fb9" dependencies = [ "cfg-if 1.0.0", "log", - "pin-project-lite 0.2.8", + "pin-project-lite", "tracing-attributes", "tracing-core", ] diff --git a/Cargo.toml b/Cargo.toml index 3c11dae3f..806d6cc45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ env_logger = "0.9" filetime = "0.2" flate2 = { version = "1.0", optional = true, default-features = false, features = ["rust_backend"] } futures = "0.3" -futures-locks = "0.6" +futures-locks = "0.7" hmac = { version = "0.12.0", optional = true } http = "0.2" hyper = { version = "0.14", optional = true, features = ["server"] } diff --git a/src/compiler/compiler.rs b/src/compiler/compiler.rs index fcfc5baaf..661a8bfb0 100644 --- a/src/compiler/compiler.rs +++ b/src/compiler/compiler.rs @@ -112,7 +112,7 @@ enum CacheLookupResult { } /// An interface to a compiler for argument parsing. -pub trait Compiler: Send + 'static +pub trait Compiler: Send + Sync + 'static where T: CommandCreatorSync, { @@ -136,7 +136,7 @@ impl Clone for Box> { } } -pub trait CompilerProxy: Send + 'static +pub trait CompilerProxy: Send + Sync + 'static where T: CommandCreatorSync + Sized, {