From cf2045c6b7f25ddf84c1e99776cfcec60eae5778 Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Tue, 15 Aug 2023 10:58:24 +0200 Subject: [PATCH] fix: add explicit proc-macro dependency so the minimal-versions test works --- .github/workflows/ci.yml | 20 +++++------ Cargo.lock | 71 ++++++++++++++++++++++++++++++++++++++-- Cargo.toml | 2 ++ 3 files changed, 81 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e73654..c26bfb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,13 +100,13 @@ jobs: - name: cargo check run: cargo check --workspace --all-features --lib --bins - # minimal-crates: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: dtolnay/rust-toolchain@nightly - # - uses: swatinem/rust-cache@v2 - # - name: cargo check - # run: | - # rm -f Cargo.lock - # cargo +nightly check -Z minimal-versions --workspace --all-features --lib --bins + minimal-crates: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@nightly + - uses: swatinem/rust-cache@v2 + - name: cargo check + run: | + rm -f Cargo.lock + cargo +nightly check -Z minimal-versions --workspace --all-features --lib --bins diff --git a/Cargo.lock b/Cargo.lock index 43db606..4bb2a86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,6 +93,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" + [[package]] name = "bumpalo" version = "3.13.0" @@ -201,6 +207,33 @@ dependencies = [ "syn 2.0.28", ] +[[package]] +name = "errno" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f" +dependencies = [ + "errno-dragonfly", + "libc", + "windows-sys", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "fastrand" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" + [[package]] name = "flume" version = "0.10.14" @@ -454,6 +487,12 @@ version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" +[[package]] +name = "linux-raw-sys" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503" + [[package]] name = "lock_api" version = "0.4.10" @@ -675,10 +714,12 @@ dependencies = [ "futures", "hyper", "pin-project", + "proc-macro2", "quinn", "rcgen", "rustls", "serde", + "tempfile", "thousands", "tokio", "tokio-serde", @@ -792,7 +833,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -831,6 +872,19 @@ dependencies = [ "semver", ] +[[package]] +name = "rustix" +version = "0.38.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ed4fa021d81c8392ce04db050a3da9a60299050b7ae1cf482d862b54a7218f" +dependencies = [ + "bitflags 2.4.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + [[package]] name = "rustls" version = "0.21.6" @@ -905,7 +959,7 @@ version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", @@ -1055,6 +1109,19 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "tempfile" +version = "3.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc02fddf48964c42031a0b3fe0428320ecf3a73c401040fc0096f97794310651" +dependencies = [ + "cfg-if", + "fastrand", + "redox_syscall", + "rustix", + "windows-sys", +] + [[package]] name = "thiserror" version = "1.0.45" diff --git a/Cargo.toml b/Cargo.toml index b27eacf..a6b5309 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,6 +45,8 @@ rcgen = "0.10.0" rustls = "0.21" thousands = "0.2.0" tracing-subscriber = "0.3.16" +tempfile = "3.5.0" +proc-macro2 = "1.0.66" [features] hyper-transport = ["flume", "hyper", "bincode", "bytes"]