-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
161 additions
and
11 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
11 changes: 11 additions & 0 deletions
11
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/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,2 @@ | ||
[workspace] | ||
members = ["primary", "fuzzy_name"] |
4 changes: 4 additions & 0 deletions
4
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/fuzzy_name/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 = "fuzzy_name" | ||
version = "0.0.0" | ||
edition = "2015" |
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/primary/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,7 @@ | ||
[package] | ||
name = "bar" | ||
version = "0.0.0" | ||
edition = "2015" | ||
|
||
[dependencies] | ||
fuzzy_name = { path = "../fuzzy_name" } |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/.rustc_info.json
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 @@ | ||
{"rustc_fingerprint":406425066802700236,"outputs":{"16968705982730379203":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/I563472/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"adx\"\ntarget_feature=\"aes\"\ntarget_feature=\"avx\"\ntarget_feature=\"avx2\"\ntarget_feature=\"avx512bitalg\"\ntarget_feature=\"avx512bw\"\ntarget_feature=\"avx512cd\"\ntarget_feature=\"avx512dq\"\ntarget_feature=\"avx512f\"\ntarget_feature=\"avx512ifma\"\ntarget_feature=\"avx512vbmi\"\ntarget_feature=\"avx512vbmi2\"\ntarget_feature=\"avx512vl\"\ntarget_feature=\"avx512vnni\"\ntarget_feature=\"avx512vp2intersect\"\ntarget_feature=\"avx512vpopcntdq\"\ntarget_feature=\"bmi1\"\ntarget_feature=\"bmi2\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"ermsb\"\ntarget_feature=\"f16c\"\ntarget_feature=\"fma\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"gfni\"\ntarget_feature=\"lahfsahf\"\ntarget_feature=\"lzcnt\"\ntarget_feature=\"movbe\"\ntarget_feature=\"pclmulqdq\"\ntarget_feature=\"popcnt\"\ntarget_feature=\"prfchw\"\ntarget_feature=\"rdrand\"\ntarget_feature=\"rdseed\"\ntarget_feature=\"sha\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_feature=\"sse4.1\"\ntarget_feature=\"sse4.2\"\ntarget_feature=\"ssse3\"\ntarget_feature=\"vaes\"\ntarget_feature=\"vpclmulqdq\"\ntarget_feature=\"xsave\"\ntarget_feature=\"xsavec\"\ntarget_feature=\"xsaveopt\"\ntarget_feature=\"xsaves\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"11510009828276671329":{"success":true,"status":"","code":0,"stdout":"rustc 1.82.0-nightly (100fde524 2024-08-28)\nbinary: rustc\ncommit-hash: 100fde5246bf56f22fb5cc85374dd841296fce0e\ncommit-date: 2024-08-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.82.0-nightly\nLLVM version: 19.1.0\n","stderr":""}},"successes":{}} |
3 changes: 3 additions & 0 deletions
3
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/CACHEDIR.TAG
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,3 @@ | ||
Signature: 8a477f597d28d172789f06886806bc55 | ||
# This file is a cache directory tag created by cargo. | ||
# For information about cache directory tags see https://bford.info/cachedir/ |
Empty file.
Binary file added
BIN
+23 Bytes
...dd_workspace_non_fuzzy/in/target/debug/.fingerprint/bar-e091c933de3c7a25/dep-test-lib-bar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...d_workspace_non_fuzzy/in/target/debug/.fingerprint/bar-e091c933de3c7a25/invoked.timestamp
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 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
...dd/add_workspace_non_fuzzy/in/target/debug/.fingerprint/bar-e091c933de3c7a25/test-lib-bar
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 @@ | ||
797f27d3ab66d7a9 |
1 change: 1 addition & 0 deletions
1
...d_workspace_non_fuzzy/in/target/debug/.fingerprint/bar-e091c933de3c7a25/test-lib-bar.json
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 @@ | ||
{"rustc":648913621610942305,"features":"[]","declared_features":"[]","target":12909100764264976914,"profile":15008931449961837482,"path":3602296894043704370,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bar-e091c933de3c7a25/dep-test-lib-bar"}}],"rustflags":["-C","link-arg=--ld-path=/home/I563472/mold/bin/mold","-C","target-cpu=native"],"metadata":7797948686568424061,"config":9480595155961943319,"compile_kind":0} |
Binary file added
BIN
+23 Bytes
...on_fuzzy/in/target/debug/.fingerprint/fuzzy_name-356131cb66cbe913/dep-test-lib-fuzzy_name
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...pace_non_fuzzy/in/target/debug/.fingerprint/fuzzy_name-356131cb66cbe913/invoked.timestamp
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 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
...ce_non_fuzzy/in/target/debug/.fingerprint/fuzzy_name-356131cb66cbe913/test-lib-fuzzy_name
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 @@ | ||
cfeaa437555c3caa |
1 change: 1 addition & 0 deletions
1
...n_fuzzy/in/target/debug/.fingerprint/fuzzy_name-356131cb66cbe913/test-lib-fuzzy_name.json
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 @@ | ||
{"rustc":648913621610942305,"features":"[]","declared_features":"[]","target":13111326501108914580,"profile":15008931449961837482,"path":2893638655806778878,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/fuzzy_name-356131cb66cbe913/dep-test-lib-fuzzy_name"}}],"rustflags":["-C","link-arg=--ld-path=/home/I563472/mold/bin/mold","-C","target-cpu=native"],"metadata":7797948686568424061,"config":9480595155961943319,"compile_kind":0} |
Binary file added
BIN
+6.01 MB
tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/bar-e091c933de3c7a25
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...s/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/bar-e091c933de3c7a25.d
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 @@ | ||
/home/I563472/dev/cargo/tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/bar-e091c933de3c7a25: primary/src/lib.rs | ||
|
||
/home/I563472/dev/cargo/tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/bar-e091c933de3c7a25.d: primary/src/lib.rs | ||
|
||
primary/src/lib.rs: |
Binary file added
BIN
+6.01 MB
...tsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/fuzzy_name-356131cb66cbe913
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...uite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/fuzzy_name-356131cb66cbe913.d
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 @@ | ||
/home/I563472/dev/cargo/tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/fuzzy_name-356131cb66cbe913: fuzzy_name/src/lib.rs | ||
|
||
/home/I563472/dev/cargo/tests/testsuite/cargo_add/add_workspace_non_fuzzy/in/target/debug/deps/fuzzy_name-356131cb66cbe913.d: fuzzy_name/src/lib.rs | ||
|
||
fuzzy_name/src/lib.rs: |
Binary file added
BIN
+7.21 KB
...-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/201lrjmlakgi01mkfxf0xsx0p.o
Binary file not shown.
Binary file added
BIN
+3.34 KB
...-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/6ncbdq0uosqpg4uorgziepbb1.o
Binary file not shown.
Binary file added
BIN
+4 KB
...-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/8oo8a8fpp2kdud84eaxvyc85o.o
Binary file not shown.
Binary file added
BIN
+3.17 KB
...-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/d07xn9p32wd5qar7vto4nmrev.o
Binary file not shown.
Binary file added
BIN
+59.9 KB
...ncremental/bar-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/dep-graph.bin
Binary file not shown.
Binary file added
BIN
+6.96 KB
...-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/exyp1uv9kcw9cdjdir0y78rz3.o
Binary file not shown.
Binary file added
BIN
+5.89 KB
...remental/bar-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/query-cache.bin
Binary file not shown.
Binary file added
BIN
+438 Bytes
...mental/bar-1ibgclpi7ewxf/s-gzfu67o1sf-1blry1l-d49yrpl4zyjlnu4owgpqsyfq8/work-products.bin
Binary file not shown.
Empty file.
Binary file added
BIN
+7.21 KB
...-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/479h0fgjy6pl1tejxfm8gan3d.o
Binary file not shown.
Binary file added
BIN
+4.01 KB
...-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/5ylbfm6gim7cqelgcyn02et76.o
Binary file not shown.
Binary file added
BIN
+3.2 KB
...-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/9dqrmkp8yicg6f6nfmt6cnxi8.o
Binary file not shown.
Binary file added
BIN
+6.96 KB
...-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/a38pc0jxtl59cohnpa1rsm8oq.o
Binary file not shown.
Binary file added
BIN
+59.9 KB
...tal/fuzzy_name-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/dep-graph.bin
Binary file not shown.
Binary file added
BIN
+3.35 KB
...-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/e7vnz0dtfh925trpg62dpvph6.o
Binary file not shown.
Binary file added
BIN
+5.9 KB
...l/fuzzy_name-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/query-cache.bin
Binary file not shown.
Binary file added
BIN
+438 Bytes
...fuzzy_name-0ufq3vhns8klu/s-gzfu67o1rv-0pi2879-dkvt2df9einewv1g2lw7q18df/work-products.bin
Binary file not shown.
Empty file.
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,24 @@ | ||
use cargo_test_support::compare::assert_ui; | ||
use cargo_test_support::current_dir; | ||
use cargo_test_support::file; | ||
use cargo_test_support::prelude::*; | ||
use cargo_test_support::str; | ||
use cargo_test_support::Project; | ||
|
||
#[cargo_test] | ||
fn case() { | ||
let project = Project::from_template(current_dir!().join("in")); | ||
let project_root = project.root(); | ||
let cwd = &project_root; | ||
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("add") | ||
.args(["fuzzy-name", "-p", "bar"]) | ||
.current_dir(cwd) | ||
.assert() | ||
.code(101) | ||
.stdout_eq(str![""]) | ||
.stderr_eq(file!["stderr.term.svg"]); | ||
|
||
assert_ui().subset_matches(current_dir!().join("out"), &project_root); | ||
} |
2 changes: 2 additions & 0 deletions
2
tests/testsuite/cargo_add/add_workspace_non_fuzzy/out/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,2 @@ | ||
[workspace] | ||
members = ["primary", "fuzzy_name"] |
7 changes: 7 additions & 0 deletions
7
tests/testsuite/cargo_add/add_workspace_non_fuzzy/out/primary/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,7 @@ | ||
[package] | ||
name = "bar" | ||
version = "0.0.0" | ||
edition = "2015" | ||
|
||
[dependencies] | ||
fuzzy_name = { path = "../fuzzy_name" } |
Empty file.
30 changes: 30 additions & 0 deletions
30
tests/testsuite/cargo_add/add_workspace_non_fuzzy/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ version = "0.0.0" | |
edition = "2015" | ||
|
||
[dependencies] | ||
fuzzy_dependency = "1.0.0" | ||
fuzzy_dependency.workspace = true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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