about summary refs log tree commit diff
path: root/src/librustpkg/rustpkg.rc
AgeCommit message (Collapse)AuthorLines
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-42/+40
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-2/+1
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-10/+10
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-12Don't create subprocesses for the `rust` commandAlex Crichton-1/+2
Instead link against the built libraries and directly invoke those.
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-12/+17
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-05-03rustpkg: Implement install commandTim Chevalier-51/+81
The install command should work now, though it only installs in-place (anything else has to wait until I implement RUST_PATH). Also including: core: Add remove_directory_recursive, change copy_file Make copy_file preserve permissions, and add a remove_directory_recursive function.
2013-04-27only use #[no_core] in libcoreDaniel Micay-4/+0
2013-04-24rustpkg: Preliminary work on install commandTim Chevalier-29/+21
Mostly just tests (that are ignored); install command is still stubbed out.
2013-04-24rustpkg: Make path searching work as described in the rustpkg docTim Chevalier-96/+62
rustpkg now searches for package directories in ./src rather than in . . I also added a rudimentary RUST_PATH that's currently hard-wired to the current directory. rustpkg now uses src/, lib/, and build/ directories as described in the manual. Most of the existing test scenarios build now; the README file (in a separate commit) explains which ones.
2013-04-19Assorted fixes from de-modeing rustc/syntax (rusti, rustdoc, fuzzer, rustpkg)Alex Crichton-4/+4
2013-04-18auto merge of #5914 : catamorphism/rust/copy-cops, r=catamorphismbors-2/+2
2013-04-18rustc: Anti-copy policeTim Chevalier-2/+2
In this case, some copies are still necessary to convert from a mutable to an immutable @-box. It's still an improvement, I hope.
2013-04-18TidyTim Chevalier-1/+1
2013-04-17rustpkg: Don't execute the standard build logic if there is a pkg.rsTim Chevalier-4/+5
2013-04-17rustpkg: Implement clean; replace boolean result flags with fail!()Tim Chevalier-156/+61
1. Implemented the `clean` command 2. The methods implementing rustpkg commands all returned `bool`. Since most of not all of the error situations seem unrecoverable, I changed the methods to return unit (and also stubbed out several more methods that were assuming a package script existed, to be re-implemented in the future)
2013-04-17rustpkg: Fail when crate inference fails; inject link attributesTim Chevalier-54/+38
1. Fail when there's no package script and no crates named main.rs, lib.rs, bench.rs, or test.rs. 2. Inject the crate link_meta "name" and "vers" attributes, so that the output file gets named correctly in the library case. 3. Normalize '-' to '_' in package names.
2013-04-15auto merge of #5861 : catamorphism/rust/rustpkg, r=catamorphismbors-46/+5
r? @graydon Pulled out tests into their own modules inside the files they test, as per the draft style guidelines. Started a new module, path_util, for utility functions to do with paths and directories. Changed default_dest_dir to use a condition and return Path instead of Option<Path>.
2013-04-12rustpkg: Factor out tests; use a condition instead of returning an optionTim Chevalier-46/+5
Pulled out tests into their own modules inside the files they test, as per the draft style guidelines. Started a new module, path_util, for utility functions to do with paths and directories. Changed default_dest_dir to use a condition and return Path instead of Option<Path>.
2013-04-12auto merge of #5847 : catamorphism/rust/rustpkg, r=catamorphismbors-545/+450
r? @graydon This is preliminary work on bringing rustpkg up to conformance with #5679 and related issues. This change makes rustpkg infer a package ID from its containing directory, instead of requiring name and vers attributes in the code. Many aspects of it are incomplete; I've only tested one package (see README.txt) and one command, "build". So far it only works for local packages. I also removed code for several of the package commands other than "build", replacing them with stubs that fail, since they used package IDs in ways that didn't jibe well with the new scheme. I will re-implement the commands one at a time.
2013-04-12TidyTim Chevalier-8/+5
2013-04-11rustpkg: Use pkg IDs, remove old code for now that required packages to ↵Tim Chevalier-593/+343
declare IDs explicitly This is preliminary work on bringing rustpkg up to conformance with #5679 and related issues. This change makes rustpkg infer a package ID from its containing directory, instead of requiring name and vers attributes in the code. Many aspects of it are incomplete; I've only tested one package (see README.txt) and one command, "build". So far it only works for local packages. I also removed code for several of the package commands other than "build", replacing them with stubs that fail, since they used package IDs in ways that didn't jibe well with the new scheme. I will re-implement the commands one at a time.
2013-04-10Bump version to 0.7-preBrian Anderson-5/+5
2013-04-09Bump version to 0.7-preBrian Anderson-5/+5
2013-04-05checkpointGraydon Hoare-16/+174
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-5/+5
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-28Removing unused importsAlex Crichton-3/+2
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-3/+3
directives, then items. Resolve them in this order as well.
2013-03-26Fixed all use sites and testsMarvin Löbel-11/+16
2013-03-25Kill some warnings: unused imports and old #[deny(..)]s.Huon Wilson-1/+0
2013-03-22libsyntax: Stop parsing `pure` and `static`Patrick Walton-1/+1
2013-03-20librustc: Remove debug code and add scary warnings for rusti/rustpkgPatrick Walton-0/+3
2013-03-08Finish de-implicit-selfing everything but the test suiteBen Striegel-0/+1
2013-03-06Fix bug in coherence that causes all cross-crate impls to be regarded asNiko Matsakis-0/+1
inherent impls, not just those of the `impl Type` variety.
2013-03-02librustdoc: Remove `fn@`, `fn~`, and `fn&` from compiletest, fuzzer, ↵Patrick Walton-1/+1
rustdoc, and rt. rs=defun
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-6/+6
imports
2013-03-01librustc: "APL2" -> "ASL2". rs=license-fixPatrick Walton-1/+1
2013-02-28Fix license attribute on cratessevrak-1/+2
2013-02-22librustpkg: De-mut librustdoc and librustpkg. rs=demutingPatrick Walton-2/+2
2013-02-21Remove the last bits of structural records from tests/rustc/rusti/rustpkg.Luqman Aden-2/+0
2013-02-20Fix fallout in rusti & rustpkg.Luqman Aden-2/+2
2013-02-19convert ast::meta_items to take @~strsErick Tryzelaar-4/+4
2013-02-15rustpkg: Massage for landing.Graydon Hoare-37/+47
2013-02-15rustpkg: Fix do listeners and support custom test logicZack Corr-19/+40
2013-02-15rustpkg: Add info command for probing a pkg.rs and expose work_dir/src_dir ↵Zack Corr-4/+64
in librustpkg
2013-02-15rustpkg: Use pkg.rs instead of package.rs for consistencyZack Corr-2/+2
2013-02-15Move semver to std and finish rustpkgZack Corr-4/+3
2013-02-15rustpkg: Clean up formatting issuesZack Corr-30/+156
2013-02-15rustpkg: Add do command and get cmd listeners working correctlyZack Corr-3/+44