-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite select_package to only use workspace members
- Loading branch information
Showing
9 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"cargo-rdme", | ||
"dependent", | ||
] |
7 changes: 7 additions & 0 deletions
7
tests/option_cmd_workspace_dependency_collision/README-expected.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- cargo-rdme start --> | ||
|
||
# Fake cargo-rdme | ||
|
||
This is a fake cargo-rdme crate, designed to conflict with the one published on crates.io. | ||
|
||
<!-- cargo-rdme end --> |
1 change: 1 addition & 0 deletions
1
tests/option_cmd_workspace_dependency_collision/README-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- cargo-rdme --> |
4 changes: 4 additions & 0 deletions
4
tests/option_cmd_workspace_dependency_collision/cargo-rdme/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
name = "cargo-rdme" | ||
version = "9000.0.0" | ||
edition = "2021" |
5 changes: 5 additions & 0 deletions
5
tests/option_cmd_workspace_dependency_collision/cargo-rdme/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//! # Fake cargo-rdme | ||
//! | ||
//! This is a fake cargo-rdme crate, designed to conflict with the one published on crates.io. | ||
fn foo() {} |
10 changes: 10 additions & 0 deletions
10
tests/option_cmd_workspace_dependency_collision/dependent/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "dependent" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
|
||
[dependencies] | ||
# Depends on a published version of a crate with a lower version than the one | ||
# of the same name in this workspace | ||
cargo-rdme = "1.4.3" |
1 change: 1 addition & 0 deletions
1
tests/option_cmd_workspace_dependency_collision/dependent/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters