Find a file
Matt Brubeck 2e0ba67704 Try to fix intermittent test failures
Travis is showing intermittent failures in
`test_cargo_compile_path_deps::path_dep_build_cmd` and
`test_cargo_compile_git_deps::git_dep_build_cmd` (added in #561 and #563).

I haven't managed to reproduce these failures locally, but I suspect the tests
are timing-sensitive.  This tries to guarantee that the timestamps during the
two operations can't be the same.
2014-09-13 08:27:15 -07:00
DESIGN WIP 2014-04-11 17:39:18 -07:00
src auto merge of #563 : mbrubeck/cargo/list-files-git, r=alexcrichton 2014-09-13 02:43:50 +00:00
tests Try to fix intermittent test failures 2014-09-13 08:27:15 -07:00
.gitignore Add all docs in-tree 2014-08-21 10:12:35 -07:00
.travis.install.deps.sh Switch the URL from which nightlies are downloaded 2014-09-11 13:14:34 -07:00
.travis.yml Move to rustdoc instead of ruby's middleman 2014-09-10 16:20:01 -07:00
.vimrc Add vimrc settings 2014-04-29 11:43:18 -07:00
Cargo.lock Update all dependencies 2014-09-11 17:05:33 -07:00
Cargo.toml Switch the location of the docopt repo 2014-09-09 22:01:39 -07:00
configure Move to rustdoc instead of ruby's middleman 2014-09-10 16:20:01 -07:00
LICENSE-APACHE Add the standard Rust Apache/MIT license 2014-06-24 12:26:13 -07:00
LICENSE-MIT Add the standard Rust Apache/MIT license 2014-06-24 12:26:13 -07:00
Makefile.in Fix make dist and distcheck breakage 2014-09-11 16:01:08 -07:00
MANIFEST.md Use [[bin]] instead of [[executable]] in manifest examples 2014-07-18 12:58:48 +01:00
README.md Update "Contributing to the Docs" 2014-09-11 16:12:26 -05:00

Cargo downloads your Rust projects dependencies and compiles your project.

Learn more at http://crates.io/.

Installing cargo from nightlies

Cargo has nightlies available for use. The cargo source is not always guaranteed to compile on rust master as it may lag behind by a day or two. Nightlies, however, will run regardless of this fact!

triple=x86_64-unknown-linux-gnu
curl -O http://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz
tar xf cargo-nightly-$triple.tar.gz
./cargo-nightly-$triple/install.sh

Nightlies are available for the following triples:

Note that if you're using the windows snapshot you will need Mingw-w64 installed as well as MSYS. The installation script needs to be run inside the MSYS shell.

Compiling cargo

Cargo requires the following tools and packages to build:

  • rustc
  • python
  • curl or wget
  • cmake
  • pkg-config
  • OpenSSL headers (libssl-dev package on ubuntu)

Cargo can then be compiled like many other standard unix-like projects:

git clone https://github.com/rust-lang/cargo
cd cargo
./configure
make
make install

More options can be discovered through ./configure, such as compiling cargo for more than one target. For example, if you'd like to compile both 32 and 64 bit versions of cargo on unix you would use:

$ ./configure --target=i686-unknown-linux-gnu,x86_64-unknown-linux-gnu

Contributing to the Docs

To contribute to the docs, all you need to do is change the markdown files in the src/doc directory.

Reporting Issues

Found a bug? We'd love to know about it!

Please report all issues on the github issue tracker.

License

Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.