@@ -140,26 +140,24 @@ explaining the format of the entry.
140
140
" req" : " ^0.6" ,
141
141
// Array of features (as strings) enabled for this dependency.
142
142
" features" : [" i128_support" ],
143
- // Boolean of whether or not this is an optional dependency.
143
+ // Boolean of whether or not this is an optional dependency. Defaults to `false` if not specified.
144
144
" optional" : false ,
145
- // Boolean of whether or not default features are enabled.
145
+ // Boolean of whether or not default features are enabled. Defaults to `true` if not specified.
146
146
" default_features" : true ,
147
147
// The target platform for the dependency.
148
- // null if not a target dependency.
148
+ // If not specified or ` null`, it is not a target dependency.
149
149
// Otherwise, a string such as "cfg(windows)".
150
150
" target" : null ,
151
151
// The dependency kind.
152
152
// "dev", "build", or "normal".
153
- // Note: this is a required field, but a small number of entries
154
- // exist in the crates.io index with either a missing or null
155
- // `kind` field due to implementation bugs.
153
+ // If not specified or `null`, it defaults to "normal".
156
154
" kind" : " normal" ,
157
155
// The URL of the index of the registry where this dependency is
158
- // from as a string. If not specified or null, it is assumed the
156
+ // from as a string. If not specified or ` null` , it is assumed the
159
157
// dependency is in the current registry.
160
158
" registry" : null ,
161
159
// If the dependency is renamed, this is a string of the actual
162
- // package name. If not specified or null, this dependency is not
160
+ // package name. If not specified or ` null` , this dependency is not
163
161
// renamed.
164
162
" package" : null ,
165
163
}
0 commit comments