diff --git a/Cargo.lock b/Cargo.lock index 92bcf41..6f4a2eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,26 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +[[package]] +name = "async-stream" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3670df70cbc01729f901f94c887814b3c68db038aad1329a418bae178bc5295c" +dependencies = [ + "async-stream-impl", + "futures-core", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3548b8efc9f8e8a5a0a2808c5bd8451a9031b9e5b879a79590304ae928b0a70" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "autocfg" version = "0.1.7" @@ -38,9 +59,9 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" [[package]] name = "bytes" -version = "0.6.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0dcbc35f504eb6fc275a6d20e4ebcda18cf50d40ba6fabff8c711fa16cb3b16" +checksum = "ad1f8e949d755f9d79112b5bb46938e0ef9d3804a0b16dfab13aafcaa5f0fa72" [[package]] name = "cfg-if" @@ -201,12 +222,6 @@ version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - [[package]] name = "libc" version = "0.2.80" @@ -351,12 +366,6 @@ dependencies = [ "syn", ] -[[package]] -name = "pin-project-lite" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" - [[package]] name = "pin-project-lite" version = "0.2.0" @@ -619,44 +628,54 @@ dependencies = [ [[package]] name = "tokio" -version = "0.3.4" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfe2523e6fa84ddf5e688151d4e5fddc51678de9752c6512a24714c23818d61" +checksum = "9f4bfdcbd00fa893ac0549b38aa27080636a0104b0d0c38475a99439405e1df8" dependencies = [ "autocfg 1.0.1", - "futures-core", - "lazy_static", "libc", "mio", "num_cpus", - "pin-project-lite 0.2.0", - "slab", + "pin-project-lite", "tokio-macros", ] [[package]] name = "tokio-macros" -version = "0.3.1" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21d30fdbb5dc2d8f91049691aa1a9d4d4ae422a21c334ce8936e5886d30c5c45" +checksum = "42517d2975ca3114b22a16192634e8241dc5cc1f130be194645970cc1c371494" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "tokio-stream" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f3be913b74b13210c8fe04b17ab833f5a124f45b93d0f99f59fff621f64392a" +dependencies = [ + "async-stream", + "futures-core", + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-util" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73af76301319bcacf00d26d3c75534ef248dcad7ceaf36d93ec902453c3b1706" +checksum = "36135b7e7da911f5f8b9331209f7fab4cc13498f3fff52f72a710c78187e3148" dependencies = [ "bytes", "futures-core", "futures-sink", "log", - "pin-project-lite 0.1.11", + "pin-project-lite", "tokio", + "tokio-stream", ] [[package]] @@ -682,9 +701,9 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "websocket-codec" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bb9d4683cc6987d3d01ea8b60c450c98f9a6ad2b422d1969df8608bccb415bf" +checksum = "efd4bc7bc1d9a695c02fbcee0bea470ee0e6b87dc6d1018e9f09d06dad44b740" dependencies = [ "base64 0.13.0", "byteorder", diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 8b1215b..32b5b15 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" cargo-fuzz = true [dependencies] -bytes = "0.5.0" +bytes = "1" libfuzzer-sys = "0.3" [dependencies.mqtt-v5] diff --git a/mqtt-v5-broker/Cargo.toml b/mqtt-v5-broker/Cargo.toml index c69b635..a32943e 100644 --- a/mqtt-v5-broker/Cargo.toml +++ b/mqtt-v5-broker/Cargo.toml @@ -9,9 +9,9 @@ authors = ["Brian Schwind "] edition = "2018" [dependencies] -bytes = "0.6" -tokio = { version = "0.3", features = ["net", "rt-multi-thread", "sync", "time", "macros"] } -tokio-util = { version = "0.5", features = ["codec"] } +bytes = "1" +tokio = { version = "1", features = ["net", "rt-multi-thread", "sync", "time", "macros"] } +tokio-util = { version = "0.6", features = ["codec"] } mqtt-v5 = { path = "../mqtt-v5", version = "0.2" } nanoid = "0.3" futures = "0.3" diff --git a/mqtt-v5/Cargo.toml b/mqtt-v5/Cargo.toml index 581947a..f8adb64 100644 --- a/mqtt-v5/Cargo.toml +++ b/mqtt-v5/Cargo.toml @@ -14,9 +14,9 @@ codec = ["tokio-util"] websocket = ["codec", "websocket-codec", "sha1", "base64"] [dependencies] -bytes = "0.6" +bytes = "1" num_enum = "0.4" -tokio-util = { optional = true, version = "0.5", features = ["codec"] } -websocket-codec = { optional = true, version = "0.4" } +tokio-util = { optional = true, version = "0.6", features = ["codec"] } +websocket-codec = { optional = true, version = "0.5" } sha1 = { optional = true, version = "0.6" } base64 = { optional = true, version = "0.11" }