File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,22 @@ When building a package that is in a `git` repository,
9595When building a package that is not under version control,
9696or that has no tags, ` rustpkg ` assumes the intended version is 0.1.
9797
98+ # Dependencies
99+
100+ rustpkg infers dependencies from ` extern mod ` directives.
101+ Thus, there should be no need to pass a ` -L ` flag to rustpkg to tell it where to find a library.
102+ (In the future, it will also be possible to write an ` extern mod ` directive referring to a remote package.)
103+
98104# Custom build scripts
99105
100106A file called ` pkg.rs ` at the root level in a workspace is called a * package script* .
101107If a package script exists, rustpkg executes it to build the package
102108rather than inferring crates as described previously.
103109
110+ Inside ` pkg.rs ` , it's possible to call back into rustpkg to finish up the build.
111+ ` rustpkg::api ` contains functions to build, install, or clean libraries and executables
112+ in the way rustpkg normally would without custom build logic.
113+
104114# Command reference
105115
106116## build
You can’t perform that action at this time.
0 commit comments