File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -162,19 +162,19 @@ is ignored and should not be used in version requirements.
162
162
> [ #10599 ] ).
163
163
>
164
164
> Avoid constraining the upper bound of a version to be anything less than the
165
- > next semver incompatible version
166
- > (e.g. avoid ` ">=2.0, <2.4" ` ) as other packages in the dependency tree may
165
+ > next semver incompatible version (e.g. avoid ` ">=2.0, <2.4" ` or ` "2.0.*" ` ),
166
+ > as other packages in the dependency tree may
167
167
> require a newer version, leading to an unresolvable error (see [ #9029 ] ).
168
168
> Consider whether controlling the version in your [ ` Cargo.lock ` ] would be more
169
169
> appropriate.
170
170
>
171
171
> In some instances this won't matter or the benefits might outweigh the cost, including:
172
- > - When no one else depends on your package e.g. it only has a ` [[bin]] `
172
+ > - When no one else depends on your package; e.g. it only has a ` [[bin]] `
173
173
> - When depending on a pre-release package and wishing to avoid breaking
174
- > changes then a fully specified ` "=1.2.3-alpha.3" ` might be warranted (see
174
+ > changes, then a fully specified ` "=1.2.3-alpha.3" ` might be warranted (see
175
175
> [ #2222 ] )
176
176
> - When a library re-exports a proc-macro but the proc-macro generates code that
177
- > calls into the re-exporting library then a fully specified ` =1.2.3 ` might be
177
+ > calls into the re-exporting library, then a fully specified ` =1.2.3 ` might be
178
178
> warranted to ensure the proc-macro isn't newer than the re-exporting library
179
179
> and generating code that uses parts of the API that don't exist within the
180
180
> current version
You can’t perform that action at this time.
0 commit comments