1313 Commits

Author SHA1 Message Date
Brian Anderson
8498392346 Use rust-installer for installation
This is just a refactoring to put Cargo and Rust on the same installer script.
2014-12-11 12:18:29 -08:00
bors
4e92eb2dd8 auto merge of #1021 : alexcrichton/cargo/issue-986, r=brson
If manual modifications have been made or if cargo/rustc died for some sort of
error, then we don't consider a target as being fresh. If any of the files
output by a target don't end up existing in the target directory (even if the
fingerprint says they do), then we consider the target not fresh.

cc #986
2014-12-09 17:43:59 +00:00
bors
dfc6195b46 auto merge of #1020 : alexcrichton/cargo/issue-885-round-2, r=brson
Don't return dev-dependencies as dependencies for non-test targets as they're
not actually dependencies!
2014-12-09 03:58:59 +00:00
Alex Crichton
523f507df8 Rebuild files if target directory is corrupt
If manual modifications have been made or if cargo/rustc died for some sort of
error, then we don't consider a target as being fresh. If any of the files
output by a target don't end up existing in the target directory (even if the
fingerprint says they do), then we consider the target not fresh.

cc #986
2014-12-08 14:50:16 -08:00
bors
0f6667ca06 auto merge of #1019 : alexcrichton/cargo/issue-991, r=brson
It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991
2014-12-08 21:19:01 +00:00
bors
5a88ad0171 auto merge of #1018 : jakub-/cargo/cargo-search-api-token, r=alexcrichton 2014-12-08 21:03:01 +00:00
Alex Crichton
2f6dc1bf8c Fix build scripts in dev-dependencies
Don't return dev-dependencies as dependencies for non-test targets as they're
not actually dependencies!
2014-12-08 12:41:47 -08:00
bors
2c1ad08c0b auto merge of #1009 : jmesmon/cargo/err-msg-fix, r=alexcrichton
Updates an error message
2014-12-08 20:16:19 +00:00
Jakub Bukaj
533d938a61 Do not require an API token for cargo search 2014-12-08 14:44:24 -05:00
Jakub Bukaj
de47dae939 Update to latest Rust 2014-12-08 14:44:24 -05:00
bors
2be8559b4c auto merge of #989 : jbcrail/cargo/fix-doc-spelling, r=steveklabnik
I just made minor corrections.
2014-12-08 19:36:21 +00:00
bors
73f68ddde9 auto merge of #1010 : alexcrichton/cargo/mingw, r=brson
This prevents having mismatches between bundled libs and libs on the system
(Cargo requires MinGW to compile regardless).
2014-12-08 19:19:38 +00:00
Alex Crichton
673d318021 Bump libgit2 dep to hopefully fix win32 2014-12-08 11:14:09 -08:00
Alex Crichton
aa97b32e2b Fix updating the registry too often
It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991
2014-12-07 22:28:43 -08:00
Alex Crichton
5d8d6bb5e6 Delete bundled gcc libs on windows
This prevents having mismatches between bundled libs and libs on the system
(Cargo requires MinGW to compile regardless).
2014-12-03 22:57:06 -08:00
bors
70f5205dba auto merge of #1008 : jmesmon/cargo/custom_build_kind, r=alexcrichton
This is just to support some nice environment aliases in gcc-rs at the moment.
2014-12-04 05:44:10 +00:00
Cody P Schafer
41de2918fa custom_build: add the HOST environment variable 2014-12-03 23:33:41 -05:00
bors
4353abb71d auto merge of #990 : alexcrichton/cargo/update-blows-up, r=brson
This is the same as the fix for #951 (fixed by #965). The relevant code was
erroneously looking at the source id when it should instead look at the entire
package id (name/version/source).
2014-12-04 02:44:10 +00:00
bors
d3917d5213 auto merge of #997 : alexcrichton/cargo/issue-993-attempt, r=brson
If a submodule's head commit doesn't exist, then we should attempt to update it
rather than aborting the updating process. This commit moves a local `try!` into
a `and_then` closure to prevent returning from the outer function to hopefully
catch more cases where the submodule needs to be updated.

cc #993, but I'm not sure if this fixes it
2014-12-03 22:14:13 +00:00
Cody P Schafer
7153c0c29d We're cargo, not rustc 2014-12-03 15:05:32 -05:00
bors
a0f0abca4f auto merge of #1003 : jmesmon/cargo/update-for-nightly, r=alexcrichton
I'm a bit shaky on the profile.rs changes (`thread_local!` and `RefCell` relplacing `local_data_key!`), do make sure I haven't royally screwed something up there.
2014-12-03 07:59:15 +00:00
Cody P Schafer
631210790d Update for nightly
I'm a bit shaky on the profile.rs changes (`thread_local!` and `RefCell`
relplacing `local_data_key!`), do make sure I haven't royally screwed
something up there.

Note that I haven't sucessfully run the various test_cargo_cross_compile
tests as I don't have an i686-unknown-linux-gnu rustc sitting around.
2014-12-03 02:25:18 -05:00
bors
5a80c02369 auto merge of #1000 : jbranchaud/cargo/add-semicolon-to-hello-world-in-docs, r=alexcrichton
Both the `index.md` and `guide.md` files show the hello world program source
(generated by `cargo new`) without a semicolon (`;`) at the end of the
`println!` line. The file generated by `cargo new` does and should have a
semicolon. This commit brings the docs in sync with the generated code.
2014-12-02 08:14:14 +00:00
jbranchaud
acd2560eee Add a missing semicolon to the hello world program in the docs.
Both the `index.md` and `guide.md` files show the hello world program source
(generated by `cargo new`) without a semicolon (`;`) at the end of the
`println!` line. The file generated by `cargo new` does and should have a
semicolon. This commit brings the docs in sync with the generated code.
2014-12-01 20:09:44 -06:00
bors
da789a6b4b auto merge of #995 : alexcrichton/cargo/issue-808, r=huonw
Closes #808
2014-11-30 08:14:16 +00:00
Alex Crichton
15e5aca9bc Bump version number to 0.1.0
Closes #808
2014-11-30 00:07:58 -08:00
Alex Crichton
ff85180615 Don't abort on possibly-corrupt submodules
If a submodule's head commit doesn't exist, then we should attempt to update it
rather than aborting the updating process. This commit moves a local `try!` into
a `and_then` closure to prevent returning from the outer function to hopefully
catch more cases where the submodule needs to be updated.

cc #993, but I'm not sure if this fixes it
2014-11-29 23:40:08 -08:00
bors
3b1a982a17 auto merge of #996 : alexcrichton/cargo/issue-953, r=huonw
Closes #953
2014-11-30 06:59:15 +00:00
Alex Crichton
a9c0e9f8ed Link logo to the main crates.io page
Closes #953
2014-11-29 22:14:24 -08:00
Alex Crichton
493d31086a Handle updates to version requirements in lockfiles
This is the same as the fix for #951 (fixed by #965). The relevant code was
erroneously looking at the source id when it should instead look at the entire
package id (name/version/source).
2014-11-27 15:52:32 -08:00
bors
d6dbce7d7d auto merge of #988 : Gekkio/cargo/zsh-run-normal-args, r=alexcrichton
Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".
v0.0.1-pre
2014-11-27 20:59:12 +00:00
Joseph Crail
817e3083de Fix spelling in documentation. 2014-11-27 15:57:30 -05:00
Joonas Javanainen
bfed2084e0 ZSH normal completion for args in "cargo run -- <args>"
Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".
2014-11-27 19:04:59 +02:00
bors
e1dc4bc613 auto merge of #981 : steveklabnik/cargo/remove_color, r=alexcrichton
this version doesn't actually work. Let's make them real.

http://www.reddit.com/r/programming/comments/2mwidh/rusts_central_package_repository_is_up/cm8l8yr?context=3
2014-11-25 21:59:15 +00:00
Steve Klabnik
e0d7c8945a remove references to color
this version doesn't actually work. Let's make them real.

http://www.reddit.com/r/programming/comments/2mwidh/rusts_central_package_repository_is_up/cm8l8yr?context=3
2014-11-25 16:34:53 -05:00
bors
641c5c2c1f auto merge of #974 : alexcrichton/cargo/issue-940, r=wycats
This key will support projects with nonstandard licenses and the registry will
display the license as "nonstandard".

Closes #940
2014-11-25 17:44:19 +00:00
Alex Crichton
5acb5f567b Add support for a license-file manifest key
This key will support projects with nonstandard licenses and the registry will
display the license as "nonstandard".

Closes #940
2014-11-25 09:33:16 -08:00
bors
f936f3543f auto merge of #973 : alexcrichton/cargo/issue-968, r=huonw
Closes #968
2014-11-25 06:44:17 +00:00
bors
7e01c2c8f6 auto merge of #972 : alexcrichton/cargo/issue-969, r=huonw
Closes #969
2014-11-25 05:59:18 +00:00
Alex Crichton
245c634d27 Print the right URL for cargo login
Closes #968
2014-11-24 21:50:14 -08:00
Alex Crichton
859fa39e18 Support documenting a selective package 2014-11-24 21:40:35 -08:00
bors
b9ff1a3af5 auto merge of #965 : alexcrichton/cargo/issue-951, r=brson
When applying the lockfile to a resolve graph, we need to take into account that
the listed source of dependencies can change over time, in which case we cannot
lock to the previous version but instead need to continue onwards with updating
the listed source.

Closes #951
2014-11-25 04:02:32 +00:00
bors
33ef90f6cb auto merge of #947 : alexcrichton/cargo/issue-937, r=brson
The logic for "not recursing into `target`" was pretty hokey and needed
replacement. This commit also unfies the paths a bit to ensure that the main
loop is the same part that adds the root package itself.

This reorganization ends up closing #937
2014-11-25 03:44:51 +00:00
bors
8e9d5c5b05 auto merge of #941 : alexcrichton/cargo/issue-927, r=brson
Closes #927
2014-11-25 03:16:13 +00:00
Alex Crichton
c84bc16b35 Clean up code around the crawling of a directory
The logic for "not recursing into `target`" was pretty hokey and needed
replacement. This commit also unfies the paths a bit to ensure that the main
loop is the same part that adds the root package itself.

This reorganization ends up closing #937
2014-11-24 18:58:39 -08:00
Alex Crichton
efcdf6c97c Don't fail cargo login if ~/.cargo doesn't exist
Closes #927
2014-11-24 18:18:52 -08:00
bors
e91d1280e0 auto merge of #946 : alexcrichton/cargo/issue-933, r=brson
Some workspaces, such as windows, often have the home directory not in the
hierarchy of where projects live, which means that configuration may not work by
default. The home directory, however, is already singled out for `cargo login`
and it's pretty semantically special, so this commit ensures that we always look
at the home directory for configuration if it exists.

Closes #933
2014-11-25 00:18:58 +00:00
bors
65bdc5755c auto merge of #944 : alexcrichton/cargo/test-some-packages, r=brson
The `target` directory was erroneously being used from the crate root rather
than the root of the package directory itself, leading to packages not actually
testing what's precisely being published.
2014-11-25 00:00:54 +00:00
bors
ef1faa5533 auto merge of #939 : alexcrichton/cargo/issue-38, r=brson
This ensures that the registry understands whether dependencies are build
dependencies or dev dependencies.

Closes rust-lang/crates.io#38
2014-11-24 23:34:34 +00:00
Alex Crichton
3b5994e7d7 Upload dependency kinds to the registry
This ensures that the registry understands whether dependencies are build
dependencies or dev dependencies.

Closes rust-lang/crates.io#38
2014-11-24 15:33:29 -08:00