about summary refs log tree commit diff
path: root/src/librustpkg/util.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-50/+44
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+3
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-08libcore: Remove mutable fields from hashPatrick Walton-3/+4
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-2/+3
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-1/+6
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-24rustpkg: Preliminary work on install commandTim Chevalier-1/+1
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-3/+12
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-5/+5
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/+2
2013-04-17rustpkg: Fail when crate inference fails; inject link attributesTim Chevalier-30/+84
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-17/+22
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-15TidyTim Chevalier-1/+1
2013-04-12rustpkg: Factor out tests; use a condition instead of returning an optionTim Chevalier-17/+22
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-407/+182
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-11rustpkg: Use pkg IDs, remove old code for now that required packages to ↵Tim Chevalier-371/+172
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-1/+1
2013-04-09Bump version to 0.7-preBrian Anderson-1/+1
2013-04-05checkpointGraydon Hoare-52/+26
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-2/+2
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-11/+11
2013-03-28Removing unused importsAlex Crichton-3/+3
2013-03-26Fixed all use sites and testsMarvin Löbel-4/+6
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-1/+1
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-6/+7
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-1/+1
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-11/+11
2013-03-06auto merge of #5252 : nikomatsakis/rust/issue-5087-make-trait-not-impl-self, ↵bors-0/+1
r=pcwalton Two changes: - The first fixes an inconsistency in coherence whereby extension methods were added to the inherent methods table, but only in cross-crate scenarios. This causes some minor fallout in tests and so forth. In one case (comm) I added inherent and trait methods so as to avoid the need to import traits like `GenericPort` just to use a port. - The second makes objects not implement the associated trait, as discussed in #5087. r? @pcwalton
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-06Finish de-implicit-selifizng libcoreBen Striegel-1/+1
2013-03-05core: convert vec::{last,last_opt} to return referencesErick Tryzelaar-3/+5
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-8/+8
imports
2013-02-25libsyntax: progress on making syntax::visit vecs_implicitly_copyable-freeErick Tryzelaar-5/+5
2013-02-22librustpkg: De-mut librustdoc and librustpkg. rs=demutingPatrick Walton-15/+16
2013-02-20Fix fallout in rusti & rustpkg.Luqman Aden-3/+3
2013-02-19convert ast::meta_items to take @~strsErick Tryzelaar-4/+4
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-2/+2
2013-02-15rustpkg: Massage for landing.Graydon Hoare-357/+80
2013-02-15rustpkg: Add info command for probing a pkg.rs and expose work_dir/src_dir ↵Zack Corr-1/+2
in librustpkg
2013-02-15Move semver to std and finish rustpkgZack Corr-5/+5
2013-02-15rustpkg: Clean up formatting issuesZack Corr-53/+79
2013-02-15rustpkg: More fixesZack Corr-9/+11
2013-02-15rustpkg: Add do command and get cmd listeners working correctlyZack Corr-13/+48
2013-02-15rustpkg: Add preliminary imperative API supportZack Corr-0/+559
2013-02-15rustpkg: Finish all commands and declarative logicZack Corr-11/+362
2013-02-15rustpkg: Finish declarative compiling and fetching via git or curl (no ↵Zack Corr-3/+11
workcache or dependency resolution yet)
2013-02-15rustpkg: Finish parsing package scripts and finish boilerplateZack Corr-1/+41