Skip to content

Commit 5eb3331

Browse files
committed
Allow tests to have dependencies
1 parent 5a4d71f commit 5eb3331

File tree

63 files changed

+496
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+496
-96
lines changed

Cargo.lock

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

miri

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ fmt)
186186
find "$MIRIDIR" -not \( -name target -prune \) -name '*.rs' \
187187
| xargs rustfmt +$TOOLCHAIN --edition=2021 --config-path "$MIRIDIR/rustfmt.toml" "$@"
188188
;;
189+
cargo)
190+
$CARGO run $CARGO_BUILD_FLAGS --manifest-path "$MIRIDIR"/cargo-miri/Cargo.toml -- miri "$@"
191+
;;
189192
clippy)
190193
$CARGO clippy $CARGO_EXTRA_FLAGS --manifest-path "$MIRIDIR"/Cargo.toml --all-targets "$@"
191194
$CARGO clippy $CARGO_EXTRA_FLAGS --manifest-path "$MIRIDIR"/ui_test/Cargo.toml --all-targets "$@"

test_dependencies/Cargo.lock

Lines changed: 308 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test_dependencies/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
authors = ["Miri Team"]
3+
description = "dependencies that unit tests can have"
4+
license = "MIT OR Apache-2.0"
5+
name = "miri-test-deps"
6+
repository = "https://github.com/rust-lang/miri"
7+
version = "0.1.0"
8+
edition = "2021"
9+
10+
[dependencies]
11+
tokio = { version = "1.0", features = ["full"] }
12+
13+
[workspace]

test_dependencies/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}

0 commit comments

Comments
 (0)