about summary refs log tree commit diff
path: root/src/librustpkg
AgeCommit message (Collapse)AuthorLines
2013-06-08rustpkg: Extract version number from git, as per #5684Tim Chevalier-61/+178
For now, the test I added just checks that PkgId::new parses the version number out of a git repo's tags list, where relevant.
2013-06-06Clean up a handful of build warnings.Michael Sullivan-5/+3
2013-06-04libsyntax: Remove `pub impl` from the languagePatrick Walton-4/+4
2013-06-03auto merge of #6826 : cmr/rust/terminfo, r=thestingerbors-31/+19
This will let *everyone* (non-windows, at least) who can see colors see the glorious colors rustc produces.
2013-06-01rustc/rusti/rustpkg: Infer packages from `extern mod` directivesTim Chevalier-335/+557
This commit won't be quite as useful until I implement RUST_PATH and until we change `extern mod` to take a general string instead of an identifier (#5682 and #6407). With that said, now if you're using rustpkg and a program contains: extern mod foo; rustpkg will attempt to search for `foo`, so that you don't have to provide a -L directory explicitly. In addition, rustpkg will actually try to build and install `foo`, unless it's already installed (specifically, I tested that `extern mod extra;` would not cause it to try to find source for `extra` and compile it again). This is as per #5681. Incidentally, I changed some driver code to infer the link name from the crate link_meta attributes. If that change isn't ok, say something. Also, I changed the addl_lib_search_paths field in the session options to be an @mut ~[Path] so that it can be modified after expansion but before later phases.
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-11/+10
2013-05-31extra::term: better error handling and win32 compatCorey Richardson-1/+1
2013-05-31rustpkg borrowed pointersCorey Richardson-3/+3
2013-05-31extra::term overhaulCorey Richardson-30/+18
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-7/+21
2013-05-29auto merge of #6733 : alexcrichton/rust/issue-2400, r=brsonbors-5/+0
Most of the relevant information can be found in the commit messages. r? @brson - I just wanted to make sure the make changes aren't completely bogus This would close #2400, #6517, and #6489 (although a run through incoming-full on linux would have to confirm the latter two)
2013-05-29auto merge of #6793 : graydon/rust/drop-ast-before-llvm, r=Aatchbors-2/+2
2013-05-28Un-ignore rusti/rustpkg tests on i686Alex Crichton-5/+0
2013-05-28librustc: drop AST before running LLVM, frees 400mb on a librustc buildGraydon Hoare-2/+2
2013-05-28Silence various warnings throughout test modulesAlex Crichton-19/+19
2013-05-27Refactor core::run in order to address many of the issuesgareth-6/+6
mentioned in #2625. This change makes the module more oriented around Process values instead of having to deal with process ids directly. Apart from issues mentioned in #2625, other changes include: - Changing the naming to be more consistent - Process/process is now used instead of a mixture of Program/program and Process/process. - More docs/tests. Some io/scheduler related issues remain (mentioned in #2625).
2013-05-23cleanup warnings from librustpkgErick Tryzelaar-1/+0
2013-05-23more testing fallout from core->std/std->extra moveTed Horst-0/+1
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-1/+10
to libextra
2013-05-22librustc: Disallow `use` from reaching into impls or traits.Patrick Walton-9/+12
This can perhaps be restored in the future. For now this is a precursor to making typedefs work as expected.
2013-05-21auto merge of #6657 : sanxiyn/rust/allocation, r=thestingerbors-29/+29
2013-05-22syntax/ext: modernise ext_ctxt to be CamelCase and use new.Huon Wilson-3/+3
2013-05-21Remove unnecessary allocations flagged by lint from rustpkgSeo Sanghyeon-29/+29
2013-05-19Fix many warnings.Steve Klabnik-1/+1
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-6/+6
2013-05-18auto merge of #6603 : thestinger/rust/whitespace, r=thestingerbors-1/+0
2013-05-19reduce the usage of explicit version markersDaniel Micay-3/+3
2013-05-18minor automated whitespace fixesDaniel Micay-1/+0
2013-05-15rustpkg: ignore tests on i686, since they failTim Chevalier-0/+5
2013-05-15rustpkg: Reorganize test filesTim Chevalier-0/+0
2013-05-14rustpkg: Tests for well-formed and ill-formed package IDs...Tim Chevalier-271/+121
...and cleanup, making how we handle version numbers more rational (specifically, not passing in a versioned name to rustc with the -o flag), and removing unused code.
2013-05-14rustpkg: Implement URL-like package IDsTim Chevalier-207/+222
This patch implements package IDs like github.com/catamorphism/test-pkg. To support such package IDs, I changed the PkgId struct to contain a LocalPath and a RemotePath field, where the RemotePath reflects the actual URL and the LocalPath reflects the file name of the cached copy. Right now, the only difference is that the local path doesn't contain dashes, but this will change when we implement #6407. Also, PkgIds now have a short_name field -- though the short name can be derived from the LocalPath, I thought it was cleaner not to call option::get() wantonly.
2013-05-14Fix rustpkg tests now that they're in a different locationAlex Crichton-3/+3
2013-05-14Fix test fallout from removing vecs_implicitly_copyableAlex Crichton-14/+14
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-105/+98
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-6/+4
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-15/+15
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-10rustpkg: Use the new `for` protocolAlex Crichton-2/+3
2013-05-08libcore: Remove mutable fields from hashPatrick Walton-3/+4
2013-05-04auto merge of #6230 : thestinger/rust/whitespace, r=catamorphismbors-2/+0
I just had `git apply` fix most of them and then did a quick skim over the diff to fix a few cases where it did the wrong thing (mostly replacing tabs with 4 spaces, when someone's editor had them at 8 spaces).
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-26/+72
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-84/+266
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-28fix typo in librstpkg tests, allowed by old parserJohn Clements-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-11/+1
2013-04-26core: Move mkdir_recursive from rustpkg into core::osTim Chevalier-39/+5
mkdir_recursive creates a directory as well as any of its parent directories that don't exist already. Seems like a useful thing to have in core.
2013-04-24rustpkg: Preliminary work on install commandTim Chevalier-30/+175
Mostly just tests (that are ignored); install command is still stubbed out.
2013-04-24rustpkg: Correct directory structure in test scenariosTim Chevalier-6/+11
2013-04-24rustpkg: Make path searching work as described in the rustpkg docTim Chevalier-151/+190
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.