File tree 6 files changed +18
-8
lines changed
6 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ The JSON output has the following format:
151
151
" crate_types" : [
152
152
" bin"
153
153
],
154
- /* The name of the target. */
154
+ /* The name of the target.
155
+ For lib targets, dashes will be replaced with underscores.
156
+ */
155
157
" name" : " my-package" ,
156
158
/* Absolute path to the root source file of the target. */
157
159
" src_path" : " /path/to/my-package/src/main.rs" ,
Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ OUTPUT FORMAT
147
147
"crate_types": [
148
148
"bin"
149
149
],
150
- /* The name of the target. */
150
+ /* The name of the target.
151
+ For lib targets, dashes will be replaced with underscores.
152
+ */
151
153
"name": "my-package",
152
154
/* Absolute path to the root source file of the target. */
153
155
"src_path": "/path/to/my-package/src/main.rs",
Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ The JSON output has the following format:
151
151
" crate_types" : [
152
152
" bin"
153
153
],
154
- /* The name of the target. */
154
+ /* The name of the target.
155
+ For lib targets, dashes will be replaced with underscores.
156
+ */
155
157
" name" : " my-package" ,
156
158
/* Absolute path to the root source file of the target. */
157
159
" src_path" : " /path/to/my-package/src/main.rs" ,
Original file line number Diff line number Diff line change @@ -97,8 +97,10 @@ structure:
97
97
" crate_types" : [
98
98
" lib"
99
99
],
100
- /* The name of the target. */
101
- " name" : " my-package" ,
100
+ /* The name of the target.
101
+ For lib targets, dashes will be replaced with underscores.
102
+ */
103
+ " name" : " my_package" ,
102
104
/* Absolute path to the root source file of the target. */
103
105
" src_path" : " /path/to/my-package/src/lib.rs" ,
104
106
/* The Rust edition of the target.
@@ -152,7 +154,7 @@ following structure:
152
154
" crate_types" : [
153
155
" lib"
154
156
],
155
- " name" : " my-package " ,
157
+ " name" : " my_package " ,
156
158
" src_path" : " /path/to/my-package/src/lib.rs" ,
157
159
" edition" : " 2018" ,
158
160
" doc" : true ,
Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ The following is a description of the JSON structure:
645
645
" target" : {
646
646
" kind" : [" lib" ],
647
647
" crate_types" : [" lib" ],
648
- " name" : " my-package " ,
648
+ " name" : " my_package " ,
649
649
" src_path" : " /path/to/my-package/src/lib.rs" ,
650
650
" edition" : " 2018" ,
651
651
" test" : true ,
Original file line number Diff line number Diff line change @@ -153,7 +153,9 @@ The JSON output has the following format:
153
153
"crate_types": [
154
154
"bin"
155
155
],
156
- /* The name of the target. */
156
+ /* The name of the target.
157
+ For lib targets, dashes will be replaced with underscores.
158
+ */
157
159
"name": "my\- package",
158
160
/* Absolute path to the root source file of the target. */
159
161
"src_path": "/path/to/my\- package/src/main.rs",
You can’t perform that action at this time.
0 commit comments