Commit graph

11665 commits

Author SHA1 Message Date
Yehuda Katz 0e619d88c8 API for SerializedManifest->Manifest and other org
Also fleshed out the Package struct.

Setting up to convert a vec of project paths into a vec of Packages to
pass to cargo-rustc.
2014-04-30 15:23:03 -07:00
Yehuda Katz 1c75be2de0 Bump rust-toml 2014-04-30 14:35:20 -07:00
Carl Lerche 5d7ece5bae Cleanup + topological sort 2014-04-30 13:06:10 -07:00
Carl Lerche 5db643564f Cleanup 2014-04-30 12:58:33 -07:00
Yehuda Katz 0e1e2ee454 Fleshed out Package a bit more 2014-04-30 12:52:50 -07:00
Yehuda Katz b15cb1de5d Clean up config and support array inheritance 2014-04-29 15:24:01 -07:00
Yehuda Katz bc6a66f9e9 Add vimrc settings 2014-04-29 11:43:18 -07:00
Yehuda Katz 44aac8c402 Add Show for PackagePath 2014-04-29 11:41:03 -07:00
Yehuda Katz 85e4dccef2 Everything's compiling again 2014-04-29 11:05:01 -07:00
Yehuda Katz daf949cf71 Bump submodules 2014-04-29 10:54:30 -07:00
Carlhuda 6b44764893 Start pulling out the configured paths 2014-04-18 18:07:51 -07:00
Carlhuda 62bff631e9 Restructure and progress towards simple compile
For now, we're going to use the operations as a library. We have some
work to do before they can transparently be used as commands, but we're
keeping an eye on making sure they remain conceptually usable over the
shell.
2014-04-18 17:23:07 -07:00
Carlhuda 084da4fc64 WIP 2014-04-11 17:39:18 -07:00
aeyk 83651db4e6 Update README.md
Removed comment about make install as no install directive, added --recursive tag
2014-04-11 20:23:20 -04:00
Carlhuda 1939963e45 Add a resolving test 2014-04-11 16:01:33 -07:00
Carlhuda 88dc9f14e2 Add transitive dependencies to the resolver 2014-04-11 15:55:47 -07:00
Carlhuda 40353e83c6 Whitespace 2014-04-11 15:14:37 -07:00
Carl Lerche f4d6d02135 Beginnings of a dependency resolver 2014-04-11 15:11:10 -07:00
Carlhuda 677356b094 Track Rust master 2014-04-11 15:05:53 -07:00
aeyk 41a4df261e Update README.md 2014-04-11 06:11:45 -04:00
Carl Lerche 4b9fbcb264 Start extracting core types 2014-04-09 13:49:29 -07:00
Carl Lerche db92e67c87 Track rust master 2014-04-09 13:28:10 -07:00
Yehuda Katz 739b130975 Now can get all configs 2014-04-06 20:31:50 -07:00
Yehuda Katz 3a15f5b786 Add support for reading config 2014-04-06 18:26:36 -07:00
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