Commit graph

14441 commits

Author SHA1 Message Date
Carl Lerche
79fe64158c Implement process hamcrest matcher 2014-04-02 16:34:19 -07:00
Carl Lerche
6899567bc3 Update tests against Rust master 2014-04-02 13:22:45 -07:00
Yehuda Katz
e705d507e6 Up to date with master 2014-04-01 22:31:11 -07:00
Yehuda Katz
1b1044b639 Encoding and decoding now in libcargo
Commands can now call a simple function (execute_main) with some type
params, and get flags and stdin converted into their expected structs
automatically. Commands that return a json-serializable struct will also
get that struct automatically serialized into the output.

Additionally, error handling is now handled in a central location. If a
command returns a CargoError, its message will be printed (soon in
color!) and its exit code will be used to exit the process.
2014-03-20 17:57:34 -07:00
Carl Lerche
aec45be721 Cleanup integration test 2014-03-20 15:17:19 -07:00
Yehuda Katz
ac69840ba5 Merge branch 'integration-tests'
Conflicts:
	Makefile
	src/bin/cargo-read-manifest.rs
	src/bin/cargo-rustc.rs
	src/cargo/mod.rs
	src/cargo/util/process_builder.rs
	tests/test_cargo_compile.rs
2014-03-20 14:10:29 -07:00
Yehuda Katz
5fb7a4f1cc Lots of cleanup and more generic commands
Started to extract some of the generic behavior across all commands into
`execute_main` so that the commands themselves just need to operate
against structs (for JSON in and Flags)
2014-03-20 14:02:51 -07:00
Yehuda Katz
521d93a576 Clean up dynamic option checks 2014-03-20 13:05:52 -07:00
Carl Lerche
d1ec90b3d8 Initial stab at integration tests
At the same time, we started adding a generic error handling concept to
Cargo.

The idea is that every Result gets converted to a CargoError, which
includes all the information that Cargo needs to print out a friendly
human error message and exit gracefully.
2014-03-20 12:12:47 -07:00
Carl Lerche
c31dc13ac5 Move test build into target 2014-03-20 10:57:39 -07:00
Carlhuda
3b350463af Integration tests working
Next up: cleanup
2014-03-19 18:25:14 -07:00
Carl Lerche
07af6fdd4a A passing test 2014-03-19 17:57:12 -07:00
Carl Lerche
2009fd76ab Make everything pub for Alex 2014-03-19 14:12:28 -07:00
Carl Lerche
7da15067e7 Bugs? 2014-03-19 14:01:45 -07:00
Carl Lerche
b2e4ce30c7 Help me Alexwan Kenobi 2014-03-19 11:49:46 -07:00
Carl Lerche
4274ac261f Trying to shell out 2014-03-19 11:44:43 -07:00
Carl Lerche
8c005bb48d Initial stab at integration tests
At the same time, we started adding a generic error handling concept to
Cargo.

The idea is that every Result gets converted to a CargoError, which
includes all the information that Cargo needs to print out a friendly
human error message and exit gracefully.
2014-03-18 18:10:48 -07:00
Carl Lerche
4e236c8558 Add cargo-compile command 2014-03-17 17:48:47 -07:00
Carl Lerche
0fe89051c7 Proxy output w/ color to tty 2014-03-17 13:08:00 -07:00
Carl Lerche
8acc481e4c Move design docs to DESIGN 2014-03-17 13:07:23 -07:00
Carl Lerche
db582fcf42 Switch to 4-space tabs 2014-03-17 12:10:08 -07:00
Carl Lerche
acb4cbbc25 Fix warnings 2014-03-17 12:03:37 -07:00
Carl Lerche
04e774e818 Vendor hamcrest-rust 2014-03-12 16:19:39 -07:00
Carl Lerche
264d4a00ca Use cargo conventions for cargo itself 2014-03-12 15:32:47 -07:00
Carl Lerche
c1b99c18ea Add missing files 2014-03-12 13:03:36 -07:00
Carl Lerche
c358a810cc Bump hammer 2014-03-10 17:44:40 -07:00
Carl Lerche
904d8612a9 cargo-read-manifest | cargo-rustc is working
At the moment, only the bare bones command is working with some defaults
hardcoded. Also, there is a bunch of necessary cleanup and no tests.

However, this marks the first end-to-end functionality in Cargo!
2014-03-10 17:38:31 -07:00
Carl Lerche
be4638769f Bump hammer 2014-03-10 16:31:08 -07:00
Carl Lerche
3e083cb724 Share manifest structs 2014-03-10 16:30:20 -07:00
Carl Lerche
ebf2929147 executable->bin and initial impl 2014-03-10 15:28:40 -07:00
Carl Lerche
8bc5b96a55 Move design documents 2014-03-10 14:47:10 -07:00
Carl Lerche
3316e85ab5 Bump hammer 2014-03-10 14:46:50 -07:00
Carl Lerche
755aa6d7aa Initial cargo-read-manifest 2014-03-07 17:14:02 -08:00
Carl Lerche
fa3fae3662 Bump dep 2014-03-07 16:26:58 -08:00
Carl Lerche
c07688d48c Stub out cargo-read-manifest 2014-03-07 16:15:15 -08:00
Carl Lerche
ee870c99e5 Update deps and Makefile 2014-03-07 16:14:57 -08:00
Carl Lerche
b3e029fba2 Import toml 2014-03-07 15:45:37 -08:00
Carlhuda
72f662e2ef Import Toml 2014-03-04 17:48:43 -08:00
Carlhuda
03943b7dbb Add sketch of cargo-verify-project 2014-03-04 17:48:31 -08:00
Carlhuda
4de86d2eec Initial README with some commands sketched out 2014-03-04 16:06:39 -08:00
Carlhuda
227d4e83ef Initial commit 2014-03-04 15:22:44 -08:00