Skip to content

Commit 372226a

Browse files
catamorphismthestinger
authored andcommitted
---
yaml --- r: 63796 b: refs/heads/snap-stage3 c: d805859 h: refs/heads/master v: v3
1 parent af7c1d1 commit 372226a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b854d6ea1caf9051fcd3da822e0f65c437d1ed84
4+
refs/heads/snap-stage3: d805859ff5bf90f7513550453a7fd797eb2e778d
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/rustpkg.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,22 @@ When building a package that is in a `git` repository,
9595
When building a package that is not under version control,
9696
or 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

100106
A file called `pkg.rs` at the root level in a workspace is called a *package script*.
101107
If a package script exists, rustpkg executes it to build the package
102108
rather 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

0 commit comments

Comments
 (0)