Skip to content

Commit

Permalink
Merge branch 'master' into revert-123-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Feb 18, 2024
2 parents 4e24aa6 + a5aafd4 commit 63c54a4
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cargo-auditable/tests/fixtures/custom_rustc_path/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[workspace]

members = [
"top_level_crate",
"runtime_dep",
"build_dep_of_runtime_dep",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "build_dep_of_runtime_dep"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "runtime_dep"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
build_dep_of_runtime_dep = {path = "../build_dep_of_runtime_dep"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "top_level_crate"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
runtime_dep = {path = "../runtime_dep"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
2 changes: 1 addition & 1 deletion cargo-auditable/tests/it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ fn test_runtime_then_build_dep() {
fn test_custom_rustc_path() {
// Path to workspace fixture Cargo.toml. See that file for overview of workspace members and their dependencies.
let workspace_cargo_toml = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("tests/fixtures/runtime_then_build_dep/Cargo.toml");
.join("tests/fixtures/custom_rustc_path/Cargo.toml");
// locate rustc
let rustc_path = which::which("rustc").unwrap();
// Run in workspace root with a custom path to rustc
Expand Down

0 comments on commit 63c54a4

Please sign in to comment.