Yehuda Katz
745b76dd05
Merge pull request #22 from alexcrichton/make
...
Allow executing an arbitrary command before building
2014-06-19 11:53:49 -07:00
Alex Crichton
27274b1206
Update hammer.rs
2014-06-19 11:52:51 -07:00
Alex Crichton
d68719566a
Add a .travis.yml
2014-06-19 11:52:51 -07:00
Alex Crichton
a9d8d2c62a
Run tests in parallel
...
Give each test is own root inside of the shared root to ensure that the tests
are still isolated from one another.
2014-06-19 11:52:51 -07:00
Alex Crichton
fbfa8bdeca
Make CARGO_BIN_PATH optional for tests
...
This allows easier use of running tests by hand.
2014-06-19 11:52:51 -07:00
Alex Crichton
3433a01eba
Allow custom precompile commands
...
This commit enables support for custom precompilation commands to be triggered
before a package builds via rustc. The current interface is to have
`build = "foo"` in the `[project]` section of Cargo.toml and cargo will just
execute the exact command given.
2014-06-19 11:52:51 -07:00
Alex Crichton
47d9bf8b4c
Provide more context on process errors
...
When printing an error for a failed process execution, the stdout/stderr are
included for inspection.
2014-06-19 11:52:51 -07:00
Yehuda Katz
96ab5d73ff
Optimized mark_human for ConcreteCargoError
2014-06-19 11:52:49 -07:00
Yehuda Katz
90149584c0
Add CargoError::with_cause
...
This allows concrete implementations with a `cause` field to have a
better implementation than converting the entire original error into a
concrete representation.
2014-06-19 11:49:50 -07:00
Yehuda Katz
cd6c6d66ec
Add mark_human
2014-06-19 11:02:24 -07:00
Yehuda Katz
af0f2733c7
Rename to
2014-06-19 10:43:46 -07:00
Yehuda Katz
e4f4f47192
Require human-tagging errors
2014-06-19 10:12:51 -07:00
Yehuda Katz
08b5b93363
Add FromError
2014-06-19 09:33:09 -07:00
Yehuda Katz
2c2652526d
Add cargo_try!
2014-06-19 08:13:58 -07:00
Yehuda Katz
8c72add4f5
Squelch warnings and minor cleanup
2014-06-19 01:21:24 -07:00
Yehuda Katz
3e09f70259
Initial pass at boxed errors
...
The next step is to clean up the error handling in general so that
failure cases produce good errors.
2014-06-19 00:57:12 -07:00
Carl Lerche
21b7418a38
PathSource - load packages in update fn
2014-06-18 14:42:07 -07:00
Carl Lerche
c665938dcc
Source::update takes mutable self
2014-06-18 12:33:22 -07:00
Yehuda Katz + Carl Lerche
bcf9028749
Support nested paths in git and path sources
2014-06-17 17:40:22 -07:00
Yehuda Katz + Carl Lerche
9224a5ae61
Paths nested in paths
2014-06-17 17:05:29 -07:00
Yehuda Katz + Carl Lerche
98322afd90
Improvements to transitive dependency infra
...
Initial work to enable cross-source transitive dependencies.
2014-06-17 15:36:50 -07:00
Yehuda Katz + Carl Lerche
9b278af150
WIP3
2014-06-16 18:16:34 -07:00
Yehuda Katz + Carl Lerche
6a809efba6
Make cargo foo
work
2014-06-16 14:51:46 -07:00
Carl Lerche
0222b4af73
Track Rust master
2014-06-16 12:57:34 -07:00
Carl Lerche + Yehuda Katz
5569835eb6
Better file names
2014-06-13 15:06:15 -07:00
Carl Lerche + Yehuda Katz
512ec4b794
Fix tests
2014-06-13 14:19:06 -07:00
Carl Lerche + Yehuda Katz
f9601cd2f6
Allow multiple and non-default crate_types
...
Note that at present there is no good error handling for fat-fingering
the crate type. This is a TODO.
2014-06-12 17:49:10 -07:00
Carl Lerche + Yehuda Katz
35e21c7600
Smoke test for git support
2014-06-12 15:51:16 -07:00
Yehuda Katz + Carl Lerche
9c101e39a4
Update to master and fix warnings
2014-06-12 13:45:10 -07:00
Yehuda Katz + Carl Lerche
d6f9072728
Glue together git in manifest with Source
2014-06-11 17:38:50 -07:00
Yehuda Katz + Carl Lerche
51c9cf0f87
Sources are now an array
2014-06-11 15:59:18 -07:00
Yehuda Katz + Carl Lerche
c57fef459a
Add namespace to PackageId
2014-06-11 14:51:13 -07:00
Yehuda Katz + Carl Lerche
530998b700
Initial pass at namespacing packages
2014-06-10 17:30:18 -07:00
Yehuda Katz + Carl Lerche
61c95b750f
Rename NameVer -> PackageId
2014-06-10 16:58:42 -07:00
Yehuda Katz + Carl Lerche
f621ddb774
Initial pass at a source collection proxy
2014-06-10 16:29:25 -07:00
Yehuda Katz + Carl Lerche
bbbf2dead8
Isolate toml code and split up concerns
2014-06-10 15:46:07 -07:00
Yehuda Katz + Carl Lerche
9a6be788d9
Move Manifest parsing into its own module
2014-06-10 14:59:25 -07:00
Yehuda Katz + Carl Lerche
184cbda170
Validate dependency version on parse, not usage
2014-06-10 14:29:36 -07:00
Yehuda Katz + Carl Lerche
1124727c96
Update to Rust master and eliminate warnings
2014-06-10 12:32:23 -07:00
Yehuda Katz + Carl Lerche
92602f6db0
Add support for detailed manifest dependencies
...
This commit supports the following format:
```toml
[dependencies.hamcrest]
version = "1.0"
git = "http://github.com/carllerche/hamcrest-rust "
```
2014-06-09 17:51:53 -07:00
Yehuda Katz + Carl Lerche
9a1c63ea17
Track master for tests
2014-06-09 13:08:09 -07:00
Yehuda Katz + Carl Lerche
af91d698f1
Track upstream rust-toml
2014-06-09 12:37:32 -07:00
Yehuda Katz + Carl Lerche
c041e8ec94
Update to master
2014-06-09 12:28:54 -07:00
Carl Lerche
e862dd1e2a
Track Rust master
2014-05-30 16:37:37 -07:00
Yehuda Katz
cda93d8096
Break up GitSource
2014-05-29 20:35:09 -07:00
Yehuda Katz
30cc28333d
Improve errors slightly
2014-05-29 18:11:27 -07:00
Yehuda Katz
5732f5a4bf
Use GitSource in the stub executable
2014-05-29 18:02:28 -07:00
Yehuda Katz
ba5639f364
Update GitSource
2014-05-29 17:49:53 -07:00
Yehuda Katz
32e262d2f7
Initial GitSource pass
2014-05-29 15:07:07 -07:00
Yehuda Katz
41b6f52681
Tests passing again
2014-05-29 14:31:09 -07:00