Skip to content

Commit

Permalink
Hide dev-dependencies from old cargo
Browse files Browse the repository at this point in the history
    error: failed to select a version for the requirement `clap = "^4"`
      candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
      location searched: crates.io index
    required by package `criterion v0.5.0`
        ... which is depended on by `unicode-ident v1.0.8 (/home/runner/work/unicode-ident/unicode-ident)`
  • Loading branch information
dtolnay committed May 24, 2023
1 parent 033985a commit 8b36684
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [nightly, beta, stable]
rust: [nightly, beta, stable, 1.64.0]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
Expand All @@ -66,7 +66,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.31.0
- run: cargo check
- run: cargo check --manifest-path tests/crate/Cargo.toml

clippy:
name: Clippy
Expand Down
2 changes: 2 additions & 0 deletions tests/crate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/Cargo.lock
14 changes: 14 additions & 0 deletions tests/crate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "unicode-ident-test"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
publish = false

[lib]
path = "test.rs"

[dependencies]
unicode-ident = { path = "../.." }

[workspace]
3 changes: 3 additions & 0 deletions tests/crate/test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#![no_std]

pub use unicode_ident::*;

0 comments on commit 8b36684

Please sign in to comment.