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,
95
95
When building a package that is not under version control,
96
96
or that has no tags, ` rustpkg ` assumes the intended version is 0.1.
97
97
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
+
98
104
# Custom build scripts
99
105
100
106
A file called ` pkg.rs ` at the root level in a workspace is called a * package script* .
101
107
If a package script exists, rustpkg executes it to build the package
102
108
rather than inferring crates as described previously.
103
109
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
+
104
114
# Command reference
105
115
106
116
## build
You can’t perform that action at this time.
0 commit comments