From e583b1193c9e90a58ac6d4c4be4a34c5e93eb6ec Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 27 Jun 2013 12:00:00 -0700 Subject: [PATCH 1/2] docs: Mention rustpkg in release notes --- RELEASES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASES.txt b/RELEASES.txt index dbee53f8e3058..9ac4d650b43f1 100644 --- a/RELEASES.txt +++ b/RELEASES.txt @@ -101,6 +101,7 @@ Version 0.7 (July 2013) dynamic borrowcheck failures for debugging. * rustdoc has a nicer stylesheet. * Various improvements to rustdoc. + * Improvements to rustpkg (see the detailed release notes) * Other * More and improved library documentation. From 63758e083614157e275e3b44ad6eef7153393adf Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 27 Jun 2013 12:13:55 -0700 Subject: [PATCH 2/2] rustpkg: Update manual --- doc/rustpkg.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/rustpkg.md b/doc/rustpkg.md index b12bce5a0afdf..506fc2ad15a8c 100644 --- a/doc/rustpkg.md +++ b/doc/rustpkg.md @@ -95,12 +95,22 @@ When building a package that is in a `git` repository, When building a package that is not under version control, or that has no tags, `rustpkg` assumes the intended version is 0.1. +# Dependencies + +rustpkg infers dependencies from `extern mod` directives. +Thus, there should be no need to pass a `-L` flag to rustpkg to tell it where to find a library. +(In the future, it will also be possible to write an `extern mod` directive referring to a remote package.) + # Custom build scripts A file called `pkg.rs` at the root level in a workspace is called a *package script*. If a package script exists, rustpkg executes it to build the package rather than inferring crates as described previously. +Inside `pkg.rs`, it's possible to call back into rustpkg to finish up the build. +`rustpkg::api` contains functions to build, install, or clean libraries and executables +in the way rustpkg normally would without custom build logic. + # Command reference ## build