about summary refs log tree commit diff
path: root/src/librustpkg
AgeCommit message (Collapse)AuthorLines
2013-04-24rustpkg: update README saying which tests passTim Chevalier-3/+23
2013-04-24libcore: unify `gen_<type>` methods on `rand::RngUtil` into the generic `gen`.Huon Wilson-1/+1
This moves all the basic random value generation into the Rand instances for each type and then removes the `gen_int`, `gen_char` (etc) methods on RngUtil, leaving only the generic `gen` and the more specialised methods. Also, removes some imports that are redundant due to a `use core::prelude::*` statement.
2013-04-24libcore: remove @Rng from rand, and use traits instead.Huon Wilson-1/+1
Also, rename RandRes -> IsaacRng, and make the constructors static methods.
2013-04-22docs: Sketch out rustpkg manualTim Chevalier-21/+0
2013-04-19Assorted fixes from de-modeing rustc/syntax (rusti, rustdoc, fuzzer, rustpkg)Alex Crichton-9/+9
2013-04-18auto merge of #5914 : catamorphism/rust/copy-cops, r=catamorphismbors-4/+4
2013-04-18rustc: Anti-copy policeTim Chevalier-4/+4
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-2/+53
2013-04-17rustpkg: Add more testsTim Chevalier-0/+93
These are examples of what *should* work, and probably don't work yet.
2013-04-17rustpkg: Add a list of rustpkg commands that should passTim Chevalier-0/+35
This is a test file containing examples of commands that should succeed. When we write the test runner, we will have to figure out how to automate them.
2013-04-17rustpkg: Don't execute the standard build logic if there is a pkg.rsTim Chevalier-4/+5
2013-04-17rustpkg: Change this example to show how to do a custom buildTim Chevalier-0/+6
2013-04-17rustpkg: Remove bogus .rc fileTim Chevalier-25/+1
2013-04-17rustpkg: Implement clean; replace boolean result flags with fail!()Tim Chevalier-159/+67
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: Add a few testsTim Chevalier-0/+161
There's no test runner for rustpkg yet; just sketching out a few basic test scenarios. pass/ contains packages that should compile successfully, whereas fail/ contains packages that should fail to build.
2013-04-17rustpkg: Fail when crate inference fails; inject link attributesTim Chevalier-85/+142
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-63/+138
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-3/+3
2013-04-12rustpkg: Factor out tests; use a condition instead of returning an optionTim Chevalier-63/+138
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-952/+636
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-964/+519
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-6/+6
2013-04-09Bump version to 0.7-preBrian Anderson-6/+6
2013-04-05checkpointGraydon Hoare-68/+200
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-7/+7
2013-04-03hashmap: rm linear namespaceDaniel Micay-2/+2
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-29librustc: Remove `fail_unless!`Patrick Walton-11/+11
2013-03-28Removing unused importsAlex Crichton-6/+5
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-15/+22
2013-03-25Kill some warnings: unused imports and old #[deny(..)]s.Huon Wilson-1/+0
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-1/+1
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-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-08Finish de-implicit-selfing everything but the test suiteBen Striegel-0/+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/+2
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/+2
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-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-14/+14
imports
2013-03-01Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-1/+2
2013-03-01librustc: "APL2" -> "ASL2". rs=license-fixPatrick Walton-1/+1
2013-02-28Fix license attribute on cratessevrak-1/+2