Skip to content

Commit ba1b080

Browse files
committed
Precede paths with $ROOT$
1 parent 736994f commit ba1b080

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

crates/project-model/test_data/deduplication_crate_graph_A.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"features": [],
2121
"target": null,
2222
"registry": null,
23-
"path": "/example_project/p2"
23+
"path": "$ROOT$example_project/p2"
2424
}
2525
],
2626
"targets": [
@@ -32,15 +32,15 @@
3232
"lib"
3333
],
3434
"name": "p1",
35-
"src_path": "/example_project/p1/src/lib.rs",
35+
"src_path": "$ROOT$example_project/p1/src/lib.rs",
3636
"edition": "2021",
3737
"doc": true,
3838
"doctest": true,
3939
"test": true
4040
}
4141
],
4242
"features": {},
43-
"manifest_path": "/example_project/p1/Cargo.toml",
43+
"manifest_path": "$ROOT$example_project/p1/Cargo.toml",
4444
"metadata": null,
4545
"publish": null,
4646
"authors": [],
@@ -73,15 +73,15 @@
7373
"lib"
7474
],
7575
"name": "p2",
76-
"src_path": "/example_project/p2/src/lib.rs",
76+
"src_path": "$ROOT$example_project/p2/src/lib.rs",
7777
"edition": "2021",
7878
"doc": true,
7979
"doctest": true,
8080
"test": true
8181
}
8282
],
8383
"features": {},
84-
"manifest_path": "/example_project/p2/Cargo.toml",
84+
"manifest_path": "$ROOT$example_project/p2/Cargo.toml",
8585
"metadata": null,
8686
"publish": null,
8787
"authors": [],
@@ -133,8 +133,8 @@
133133
],
134134
"root": "p1 0.1.0 (path+file:///example_project/p1)"
135135
},
136-
"target_directory": "/example_project/p1/target",
136+
"target_directory": "$ROOT$example_project/p1/target",
137137
"version": 1,
138-
"workspace_root": "/example_project/p1",
138+
"workspace_root": "$ROOT$example_project/p1",
139139
"metadata": null
140140
}

crates/project-model/test_data/deduplication_crate_graph_B.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"lib"
1919
],
2020
"name": "p2",
21-
"src_path": "/example_project/p2/src/lib.rs",
21+
"src_path": "$ROOT$example_project/p2/src/lib.rs",
2222
"edition": "2021",
2323
"doc": true,
2424
"doctest": true,
2525
"test": true
2626
}
2727
],
2828
"features": {},
29-
"manifest_path": "/example_project/p2/Cargo.toml",
29+
"manifest_path": "$ROOT$example_project/p2/Cargo.toml",
3030
"metadata": null,
3131
"publish": null,
3232
"authors": [],
@@ -59,8 +59,8 @@
5959
],
6060
"root": "p2 0.1.0 (path+file:///example_project/p2)"
6161
},
62-
"target_directory": "/example_project/p2/target",
62+
"target_directory": "$ROOT$example_project/p2/target",
6363
"version": 1,
64-
"workspace_root": "/example_project/p2",
64+
"workspace_root": "$ROOT$example_project/p2",
6565
"metadata": null
6666
}

0 commit comments

Comments
 (0)