cargo/README.md
Alex Crichton 1aaaf85166 Add an installation script to the repo
This updates the `make install` target and adds a new `make dist` target which
will prepare a distributable tarball with an install script. All work is based
off the equivalent rust nightly tarball and nightly installation scripts.

Closes #159
Closes #184
2014-07-14 08:18:49 -07:00

1.5 KiB
Raw Blame History

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!

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

The current nightlies available are:

Compiling cargo

You'll want to clone cargo using --recursive on git, to clone in its submodule dependencies.

$ git clone --recursive https://github.com/rust-lang/cargo

or

$ git submodule init
$ git submodule update

Then it's as simple as make followed by make install and you're ready to go.

Contributing to the Docs

To contribute to the docs, please submit pull requests to wycats/cargo-website. All you need to do is change the markdown files in the source directory.

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.