Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ clap = { version = "4.5", features = ["cargo", "derive", "wrap_help"] }
crates-index = { version = "3.11", features = ["git-https-reqwest"] }
crates_io_api = "0.12.0"
curl = "0.4"
elaborate = "0.1"
elaborate = "0.2"
env_logger = "0.11"
home = "0.5"
log = "0.4"
Expand All @@ -42,7 +42,7 @@ testing = { path = "testing" }
tokio = "1.48"

[build-dependencies]
elaborate = "0.1"
elaborate = "0.2"

[features]
default = ["on-disk-cache", "lock-index"]
Expand Down
1 change: 1 addition & 0 deletions ci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ publish = false
[dev-dependencies]
assert_cmd = "2.1"
ctor = "0.6"
elaborate = "0.2"
regex = "1.12"
serde_json = "1.0"
similar-asserts = "1.7"
Expand Down
27 changes: 27 additions & 0 deletions ci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ fn initialize() {
set_current_dir("..");
}

#[test]
fn clippy() {
Command::new("cargo")
// smoelius: Remove `CARGO` environment variable to work around:
// https://github.com/rust-lang/rust/pull/131729
.env_remove("CARGO")
.args([
"+nightly",
"clippy",
"--all-features",
"--all-targets",
"--",
"--deny=warnings",
])
.assert()
.success();
}

#[test]
fn dylint() {
let assert = Command::new("cargo")
Expand All @@ -34,6 +52,15 @@ fn dylint() {
assert!(assert.try_success().is_ok(), "{}", stderr);
}

#[test]
fn elaborate_disallowed_methods() {
elaborate::disallowed_methods()
.args(["--all-features", "--all-targets"])
.env("RUSTUP_TOOLCHAIN", "nightly")
.assert()
.success();
}

#[test]
fn fmt() {
Command::new("rustup")
Expand Down
4 changes: 2 additions & 2 deletions mock_github/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = false

[dependencies]
anyhow = "1.0"
elaborate = "0.1"
elaborate = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
snapbox = "0.6"
Expand Down
18 changes: 0 additions & 18 deletions tests/clippy.rs

This file was deleted.