Skip to content

Commit 9f3cc5f

Browse files
committed
Better rational for build-dependencies and other kinds being disjoint.
The old reason was bad because nothing prevents normal dependencies from being built before the build script. In fact this is a wanted feature. and if it is implemented the old reason would become invalid and confusing.
1 parent 61885fb commit 9f3cc5f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/doc/specifying-dependencies.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ manifest:
384384
gcc = "0.3"
385385
```
386386

387-
The build script **does not** have access to the dependencies listed in the
388-
`dependencies` or `dev-dependencies` section (they’re not built yet!). All build
389-
dependencies will also not be available to the package itself unless listed
390-
under the `dependencies` section as well.
387+
The build script **does not** have access to the dependencies listed
388+
in the `dependencies` or `dev-dependencies` section. Build
389+
dependencies will likewise not be available to the package itself
390+
unless listed under the `dependencies` section as well. A package
391+
itself and its build script are built separately, so their
392+
dependencies need not coincide. Cargo is kept simpler and cleaner by
393+
using independent dependencies for independent purposes.

0 commit comments

Comments
 (0)