]> git.proxmox.com Git - cargo.git/log
cargo.git
9 years agoAdd rustc/rustdoc config keys to Cargo config
Alex Crichton [Mon, 18 May 2015 22:57:17 +0000 (15:57 -0700)]
Add rustc/rustdoc config keys to Cargo config

In addition to global RUSTC/RUSTDOC env vars, this commit recognizes
`build.rustc` and `build.rustdoc` as configuration keys for Cargo to instruct
what tools should be used instead of the default.

Closes #967

9 years agoRemove borrowed pointer in Config
Alex Crichton [Mon, 18 May 2015 22:33:04 +0000 (15:33 -0700)]
Remove borrowed pointer in Config

Not having a lifetime parameter on the ubiquitous Config structure allows a
great deal of other lifetime annotations to be removed and should make dealing
with storage of Config in a structure much easier (only one lifetime to deal
with, not two).

9 years agoRecognize RUSTC/RUSTDOC environment variables
Alex Crichton [Mon, 18 May 2015 21:55:42 +0000 (14:55 -0700)]
Recognize RUSTC/RUSTDOC environment variables

9 years agoAuto merge of #1627 - brson:version, r=alexcrichton
bors [Mon, 18 May 2015 20:07:47 +0000 (20:07 +0000)]
Auto merge of #1627 - brson:version, r=alexcrichton

So we have a unique version number to pair with Rust 1.1.

9 years agoBump version to 0.3
Brian Anderson [Mon, 18 May 2015 18:21:57 +0000 (11:21 -0700)]
Bump version to 0.3

9 years agoAuto merge of #1619 - Eljay:fix-doc-open, r=alexcrichton
bors [Mon, 18 May 2015 15:42:06 +0000 (15:42 +0000)]
Auto merge of #1619 - Eljay:fix-doc-open, r=alexcrichton

Fixes #1595.

9 years agoReuse existing crate_name method instead.
Lee Jeffery [Sun, 17 May 2015 20:57:10 +0000 (21:57 +0100)]
Reuse existing crate_name method instead.

9 years agoAuto merge of #1616 - sbeckeriv:master, r=alexcrichton
bors [Sun, 17 May 2015 20:30:03 +0000 (20:30 +0000)]
Auto merge of #1616 - sbeckeriv:master, r=alexcrichton

This resolves #1379

9 years agoAuto merge of #1620 - Eljay:empty-package-name, r=alexcrichton
bors [Sun, 17 May 2015 20:06:53 +0000 (20:06 +0000)]
Auto merge of #1620 - Eljay:empty-package-name, r=alexcrichton

Some simple validation for package/target names. Currently failure for these cases happens later in rustc (e.g. "crate name must not be empty") or at the os level (e.g. "Is a directory" error when package name is empty on linux). Better to handle this earlier so it's consistent across platforms.

Still could do with a lot of validation for invalid characters etc. though.

9 years agoFix whitespace
Stephen Becker IV [Sun, 17 May 2015 16:32:53 +0000 (09:32 -0700)]
Fix whitespace

Now matches test output.

9 years agoUpdate text per comment in pull request.
Stephen Becker IV [Sun, 17 May 2015 16:01:50 +0000 (09:01 -0700)]
Update text per comment in pull request.

Better error message with details around lib and bin.

9 years agoAdded some checks for empty package and target names.
Lee Jeffery [Sun, 17 May 2015 12:03:23 +0000 (13:03 +0100)]
Added some checks for empty package and target names.

9 years agoFix `doc --open` crate name.
Lee Jeffery [Sun, 17 May 2015 08:21:50 +0000 (09:21 +0100)]
Fix `doc --open` crate name.

9 years agoUpdate error message with more details.
Stephen Becker IV [Sat, 16 May 2015 19:39:48 +0000 (12:39 -0700)]
Update error message with more details.

This resolves #1379.

9 years agoAuto merge of #1611 - IvanUkhov:missing-bracket, r=alexcrichton
bors [Thu, 14 May 2015 20:34:00 +0000 (20:34 +0000)]
Auto merge of #1611 - IvanUkhov:missing-bracket, r=alexcrichton

9 years agoAdd a missing square bracket
Ivan Ukhov [Thu, 14 May 2015 19:32:31 +0000 (15:32 -0400)]
Add a missing square bracket

9 years agoAuto merge of #1604 - alexcrichton:update, r=alexcrichton
bors [Wed, 13 May 2015 04:24:28 +0000 (04:24 +0000)]
Auto merge of #1604 - alexcrichton:update, r=alexcrichton

There was a lifetime parameter regression in git2-rs which prevented Cargo from
building on nightly

9 years agoUpdate Cargo to rust master
Alex Crichton [Wed, 13 May 2015 04:22:14 +0000 (21:22 -0700)]
Update Cargo to rust master

There was a lifetime parameter regression in git2-rs which prevented Cargo from
building on nightly

9 years agoAuto merge of #1598 - critiqjo:bash-complete, r=alexcrichton
bors [Mon, 11 May 2015 18:01:02 +0000 (18:01 +0000)]
Auto merge of #1598 - critiqjo:bash-complete, r=alexcrichton

Fixes #1548
@gentoo90 is it possible to handle long-opts such as `--url=` nicely?
@jeffs please test this out in OS X default bash version...

9 years agoBash completion: bash 3 compatibility
critiqjo [Sun, 10 May 2015 11:07:50 +0000 (16:37 +0530)]
Bash completion: bash 3 compatibility

9 years agoAuto merge of #1568 - sondrele:rustc-subcommand, r=alexcrichton
bors [Thu, 7 May 2015 19:18:10 +0000 (19:18 +0000)]
Auto merge of #1568 - sondrele:rustc-subcommand, r=alexcrichton

## Work in progress
I have followed issue #595 for a while now. I hope that this PR can solve it, after it's done of course.

@alexcrichton: on IRC the other day, you suggested adding a `Vec<String>` to the `CompileOptions`. I have done this, but wasn't sure what the best way to identify the correct `Target` would be, so currently everything gets compiled with the additional arguments.
I considered adding a `Target` structure to the `CompileOptions` as well, and then in `cargo_rustc::build_base_args` only append the arguments if the `Target` matches. What do you think about this? Is there an easier way of figuring out the correct `Target`?

r? @alexcrichton

9 years agoAuto merge of #1590 - alexcrichton:issue-1589, r=brson
bors [Thu, 7 May 2015 18:39:48 +0000 (18:39 +0000)]
Auto merge of #1590 - alexcrichton:issue-1589, r=brson

Knowing the target architecture for calculating the filename is needed when
calculating the name of a dynamic library, and previously this was only taken
into account when a target was a plugin. Targets can, however, request that they
are built as a dynamic library which also needs to be taken into account.

Closes #1589

9 years agoAdd a Kind argument to target_filenames
Alex Crichton [Thu, 7 May 2015 02:29:05 +0000 (19:29 -0700)]
Add a Kind argument to target_filenames

Knowing the target architecture for calculating the filename is needed when
calculating the name of a dynamic library, and previously this was only taken
into account when a target was a plugin. Targets can, however, request that they
are built as a dynamic library which also needs to be taken into account.

Closes #1589

9 years agoAuto merge of #1586 - gentoo90:bash-comp, r=wycats
bors [Wed, 6 May 2015 16:54:57 +0000 (16:54 +0000)]
Auto merge of #1586 - gentoo90:bash-comp, r=wycats

Fix inability to complete more than one option of a command.
Add missing options.

9 years agoBash-completion minor improvements
gentoo90 [Wed, 6 May 2015 12:37:35 +0000 (15:37 +0300)]
Bash-completion minor improvements

Fix inability to complete more than one option of a command.
Add missing options.

9 years agoSuggest adding flags to filter the package in the error message
Sondre Lefsaker [Wed, 6 May 2015 10:08:43 +0000 (12:08 +0200)]
Suggest adding flags to filter the package in the error message

9 years agoCleanup:
Sondre Lefsaker [Wed, 6 May 2015 08:33:38 +0000 (10:33 +0200)]
Cleanup:
- Dereference arguments before matching
- use square brackets for vec! macro

9 years agoUpdate subcommand documentation
Sondre Lefsaker [Wed, 6 May 2015 08:29:59 +0000 (10:29 +0200)]
Update subcommand documentation

9 years agoAuto merge of #1585 - tshepang:typos, r=alexcrichton
bors [Wed, 6 May 2015 00:11:54 +0000 (00:11 +0000)]
Auto merge of #1585 - tshepang:typos, r=alexcrichton

9 years agofix typos caught by codespell
Tshepang Lekhonkhobe [Wed, 6 May 2015 00:05:41 +0000 (02:05 +0200)]
fix typos caught by codespell

9 years agoAuto merge of #1584 - alexcrichton:issue-797, r=brson
bors [Tue, 5 May 2015 23:28:56 +0000 (23:28 +0000)]
Auto merge of #1584 - alexcrichton:issue-797, r=brson

Closes #797
Closes #1575

This is a reopening of #1170 but I see the two closed issues as important enough that this needs to land in some form or another, and I'm more comfortable with always taking into account untracked files than only if there isn't a commit yet.

9 years agoScan untracked files in git for packaging/deps
Alex Crichton [Wed, 14 Jan 2015 05:40:22 +0000 (21:40 -0800)]
Scan untracked files in git for packaging/deps

Closes #797
Closes #1575

9 years agoAuto merge of #1577 - alexcrichton:issue-1567, r=brson
bors [Tue, 5 May 2015 17:42:08 +0000 (17:42 +0000)]
Auto merge of #1577 - alexcrichton:issue-1567, r=brson

Previously if a package had been activated without the default feature and then
it was attempted to be reactivated with the default feature, resolution wouldn't
continue and actually activate the default feature. This means that the
fingerprint on the other end of compilation would be slightly different because
the set of activated features would be slightly different, causing spurious
recompiles.

Closes #1567

9 years agoAuto merge of #1576 - takkanm:add_search_to_help, r=alexcrichton
bors [Tue, 5 May 2015 16:50:19 +0000 (16:50 +0000)]
Auto merge of #1576 - takkanm:add_search_to_help, r=alexcrichton

There was no "Search" to help message.

9 years agoCheck default features when skipping resolution of a package
Alex Crichton [Tue, 5 May 2015 05:55:03 +0000 (22:55 -0700)]
Check default features when skipping resolution of a package

Previously if a package had been activated without the default feature and then
it was attempted to be reactivated with the default feature, resolution wouldn't
continue and actually activate the default feature. This means that the
fingerprint on the other end of compilation would be slightly different because
the set of activated features would be slightly different, causing spurious
recompiles.

Closes #1567

9 years agochange search help to better message
Mitsutaka Mimura [Tue, 5 May 2015 02:13:04 +0000 (11:13 +0900)]
change search help to better message

9 years agoadd search to help
Mitsutaka Mimura [Tue, 5 May 2015 01:59:05 +0000 (10:59 +0900)]
add search to help

9 years agoAuto merge of #1574 - alexcrichton:rustup, r=alexcrichton
bors [Sun, 3 May 2015 19:43:40 +0000 (19:43 +0000)]
Auto merge of #1574 - alexcrichton:rustup, r=alexcrichton

9 years agoUpdate to rust master, picking up metadata mtime changes
Alex Crichton [Sun, 3 May 2015 19:41:04 +0000 (12:41 -0700)]
Update to rust master, picking up metadata mtime changes

This commit adds a new `MTime` structure specifically for dealing with
modification times across platforms.

9 years agoAdd more tests:
Sondre Lefsaker [Sat, 2 May 2015 23:11:46 +0000 (01:11 +0200)]
Add more tests:
- `build_with_args_to_one_of_multiple_binaries`, verify that only one bin gets built
- `fails_with_args_to_all_binaries`
- `build_with_args_to_one_of_multiple_tests`, same behavious as for the binaries
- `build_foo_with_bar_dependency`, verify that bar dependency gets built and only foo gets compiled with args
- `build_only_bar_dependency`, build the bar package, that foo depends, on with the extra args

9 years agoCleanup tests - favor more explicit expected result instead of using helper functions
Sondre Lefsaker [Sat, 2 May 2015 22:49:58 +0000 (00:49 +0200)]
Cleanup tests - favor more explicit expected result instead of using helper functions

9 years agoModify test to build `main` like before, but `lib` also gets built as a dependency.
Sondre Lefsaker [Sat, 2 May 2015 16:18:05 +0000 (18:18 +0200)]
Modify test to build `main` like before, but `lib` also gets built as a dependency.
- The test verifies that the trailing arguments only gets passed to the binary being built

9 years agoRemove the arguments from `BuildConfig` and append them to the profile that's being...
Sondre Lefsaker [Sat, 2 May 2015 14:30:16 +0000 (16:30 +0200)]
Remove the arguments from `BuildConfig` and append them to the profile that's being compiled instead.
- An error will be returned if the length of `targets` is not 1
- The profile of `targets` gets cloned in order to append the extra arguments.
- The new test verifies that the build fails due to both `lib` and `main` being compiled

9 years agoAdd new field `rustc_args` to the `Profile`
Sondre Lefsaker [Sat, 2 May 2015 10:59:58 +0000 (12:59 +0200)]
Add new field `rustc_args` to the `Profile`
- This field will be set by the `cargo rustc` command, only if one target is being compiled
- The field can not be read from the Cargo.toml

9 years agoRemove the `pkgid` arg and replace the `profile` flag with `package`.
Sondre Lefsaker [Sat, 2 May 2015 10:19:55 +0000 (12:19 +0200)]
Remove the `pkgid` arg and replace the `profile` flag with `package`.

9 years agoPass the `arg_opts` from the command line further on to the CompileOptions.
Sondre Lefsaker [Fri, 1 May 2015 23:01:30 +0000 (01:01 +0200)]
Pass the `arg_opts` from the command line further on to the CompileOptions.
- The new tests verifies that the extra arguments gets appended to the command. One is for lib and one is for main
- Currently the arguments gets passed on to *every* target that gets built, so the tests only contain one file each

9 years agoAdd a new field to CompileOptions and BuildConfig: `target_rustc_args`
Sondre Lefsaker [Fri, 1 May 2015 21:47:07 +0000 (23:47 +0200)]
Add a new field to CompileOptions and BuildConfig: `target_rustc_args`
- The new field is a list with arguments to compile the target with.
- There should only be one target that gets compiled with these arguments

9 years agoAdd new subcommand `rustc`.
Sondre Lefsaker [Fri, 1 May 2015 21:19:43 +0000 (23:19 +0200)]
Add new subcommand `rustc`.
- `cargo rustc` is starting out based on `cargo build`

9 years agoLoosen the dependency versions in Cargo.toml
Jakub Bukaj [Sun, 26 Apr 2015 21:42:55 +0000 (23:42 +0200)]
Loosen the dependency versions in Cargo.toml

9 years agoAuto merge of #1566 - alexcrichton:fix-transitive-update-dash-p, r=brson
bors [Thu, 30 Apr 2015 02:11:47 +0000 (02:11 +0000)]
Auto merge of #1566 - alexcrichton:fix-transitive-update-dash-p, r=brson

Currently when a dependency is transitively updated the source may not itself be
updated, so an update may not happen at all. This commit modifies this behavior
to be sure to add the non-updated source to the registry for any matching
package which will trigger the source to update itself.

9 years agoAuto merge of #1564 - alexcrichton:right-timeout, r=brson
bors [Thu, 30 Apr 2015 01:48:01 +0000 (01:48 +0000)]
Auto merge of #1564 - alexcrichton:right-timeout, r=brson

Previously a timeout was set via libcurl's blanket timeout option, which is a
timeout for the entire request. This isn't always what we want, however, as
cargo is used on quite a variety of networks. Instead what we really want is
timing out data being received, so instead of a blanket timeout we set two
different timeouts:

* The connect timeout is now configured (time it takes to connect the socket)
* A "low speed" timeout is now also set. This means that if Cargo doesn't
  receive 10 bytes of data in the specified tiemout period that the entire
  transfer will be timed out.

Closes #1560

9 years agoTweak the meaning of HTTP timeouts
Alex Crichton [Wed, 29 Apr 2015 18:58:13 +0000 (11:58 -0700)]
Tweak the meaning of HTTP timeouts

Previously a timeout was set via libcurl's blanket timeout option, which is a
timeout for the entire request. This isn't always what we want, however, as
cargo is used on quite a variety of networks. Instead what we really want is
timing out data being received, so instead of a blanket timeout we set two
different timeouts:

* The connect timeout is now configured (time it takes to connect the socket)
* A "low speed" timeout is now also set. This means that if Cargo doesn't
  receive 10 bytes of data in the specified tiemout period that the entire
  transfer will be timed out.

Closes #1560

9 years agoFix transitively updating dependencies
Alex Crichton [Thu, 30 Apr 2015 01:42:52 +0000 (18:42 -0700)]
Fix transitively updating dependencies

Currently when a dependency is transitively updated the source may not itself be
updated, so an update may not happen at all. This commit modifies this behavior
to be sure to add the non-updated source to the registry for any matching
package which will trigger the source to update itself.

9 years agoAuto merge of #1559 - alexcrichton:platform-specific-deps++, r=brson
bors [Wed, 29 Apr 2015 20:38:14 +0000 (20:38 +0000)]
Auto merge of #1559 - alexcrichton:platform-specific-deps++, r=brson

They're available at the top-level, so no reason to not expose them at the
target level as well!

Closes #1464

9 years agoAuto merge of #1563 - alexcrichton:ar-linker-for-plugins, r=alexcrichton
bors [Wed, 29 Apr 2015 19:29:58 +0000 (19:29 +0000)]
Auto merge of #1563 - alexcrichton:ar-linker-for-plugins, r=alexcrichton

Just touching up a test so hopefully it can pass on Windows!

9 years agoAuto merge of #1562 - alexcrichton:doc-include, r=alexcrichton
bors [Wed, 29 Apr 2015 19:18:08 +0000 (19:18 +0000)]
Auto merge of #1562 - alexcrichton:doc-include, r=alexcrichton

Just adding a few nits of my own.

9 years agoAuto merge of #1558 - alexcrichton:less-hashes, r=brson
bors [Wed, 29 Apr 2015 19:04:31 +0000 (19:04 +0000)]
Auto merge of #1558 - alexcrichton:less-hashes, r=brson

The root crate often has artifacts which are later intended for distribution of
some form, so adding a hash will just make predicting the file name difficult.
The hash also isn't necessary as it's guaranteed to not conflict with other
files (no other dependencies are in the same directory) and all other libraries
have metadata so symbols will not conflict.

Closes #1484

9 years agoUpdate dependencies
Alex Crichton [Wed, 29 Apr 2015 18:57:50 +0000 (11:57 -0700)]
Update dependencies

Primarily pick up an update to curl-rust which transitively means we need to
update openssl for other deps

9 years agoAuto merge of #1505 - alexcrichton:issue-1478, r=brson
bors [Wed, 29 Apr 2015 18:51:34 +0000 (18:51 +0000)]
Auto merge of #1505 - alexcrichton:issue-1478, r=brson

This commit enables the build script for a crate to provide feedback to the
crate itself about how it should be built. This is done through the `--cfg`
flags of the compiler, and each build script is now allowed to print `rustc-cfg`
directives to inform Cargo about what `--cfg` flags it should pass.

All `--cfg` flags are local to the current crate and are not propagated outwards
to transitive dependencies. The primary use-case that this feature is targeting
is compile-time feature detection for applications like C bindings or C
libraries where the version being targeted may change over time.

Closes #1478

9 years agoAuto merge of #1557 - alexcrichton:exhaustive, r=brson
bors [Wed, 29 Apr 2015 18:35:16 +0000 (18:35 +0000)]
Auto merge of #1557 - alexcrichton:exhaustive, r=brson

This commit fills out the functionality of `--lib`, `--test`, `--bin`,
`--bench`, and `--example` for the `cargo {test,build,bench}` commands all at
once. The support for all of this was introduced long ago, and the flags just
weren't exposed at the time.

9 years agoRelax the test for ar/linker with plugins
Alex Crichton [Wed, 29 Apr 2015 18:30:20 +0000 (11:30 -0700)]
Relax the test for ar/linker with plugins

On windows it won't actually succeed or get past the first compile with cc/ar,
so just set it to something that for sure won't exist so it doesn't progress on
*any* platform.

9 years agoMerge branch 'ar-linker-host' of https://github.com/japaric/cargo into ar-linker...
Alex Crichton [Wed, 29 Apr 2015 18:28:06 +0000 (11:28 -0700)]
Merge branch 'ar-linker-host' of https://github.com/japaric/cargo into ar-linker-for-plugins

9 years agoTouch up the `include` docs a bit
Alex Crichton [Wed, 29 Apr 2015 18:26:01 +0000 (11:26 -0700)]
Touch up the `include` docs a bit

9 years agoMerge branch 'doc-include' of https://github.com/huonw/cargo into doc-include
Alex Crichton [Wed, 29 Apr 2015 18:23:01 +0000 (11:23 -0700)]
Merge branch 'doc-include' of https://github.com/huonw/cargo into doc-include

9 years agoAuto merge of #1561 - alexcrichton:cargo-test-release, r=alexcrichton
bors [Wed, 29 Apr 2015 18:22:12 +0000 (18:22 +0000)]
Auto merge of #1561 - alexcrichton:cargo-test-release, r=alexcrichton

This just fixes up the test so it can pass the bots.

9 years agoFix the test for `cargo test --release`
Alex Crichton [Wed, 29 Apr 2015 18:19:53 +0000 (11:19 -0700)]
Fix the test for `cargo test --release`

9 years agoMerge branch 'addrelease' of https://github.com/psdh/cargo into cargo-test-release
Alex Crichton [Wed, 29 Apr 2015 18:07:05 +0000 (11:07 -0700)]
Merge branch 'addrelease' of https://github.com/psdh/cargo into cargo-test-release

9 years agoDon't put hashes in libraries of the root crate
Alex Crichton [Wed, 29 Apr 2015 17:12:23 +0000 (10:12 -0700)]
Don't put hashes in libraries of the root crate

The root crate often has artifacts which are later intended for distribution of
some form, so adding a hash will just make predicting the file name difficult.
The hash also isn't necessary as it's guaranteed to not conflict with other
files (no other dependencies are in the same directory) and all other libraries
have metadata so symbols will not conflict.

Closes #1484

9 years agoAllow more advanced filtering of what to build
Alex Crichton [Wed, 29 Apr 2015 16:42:29 +0000 (09:42 -0700)]
Allow more advanced filtering of what to build

This commit fills out the functionality of `--lib`, `--test`, `--bin`,
`--bench`, and `--example` for the `cargo {test,build,bench}` commands all at
once. The support for all of this was introduced long ago, and the flags just
weren't exposed at the time.

9 years agoAdd support for platform-specific build/dev dependencies
Alex Crichton [Wed, 29 Apr 2015 17:23:08 +0000 (10:23 -0700)]
Add support for platform-specific build/dev dependencies

They're available at the top-level, so no reason to not expose them at the
target level as well!

Closes #1464

9 years agoAuto merge of #1540 - lfairy:strip-affixes, r=alexcrichton
bors [Mon, 27 Apr 2015 16:55:30 +0000 (16:55 +0000)]
Auto merge of #1540 - lfairy:strip-affixes, r=alexcrichton

If the user invokes `cargo new` with a name of the form `rust-foo` or `foo-rs` (or any variation of the two), and the `--bin` option is *not* present, then the resulting `Cargo.toml` will have a `name` field of just `foo` instead.

Closes #1532

9 years agoSet $USER variable in integration tests
Chris Wong [Mon, 27 Apr 2015 07:09:48 +0000 (19:09 +1200)]
Set $USER variable in integration tests

This variable isn't set on homu, so we need to add it ourselves.

9 years agoAuto merge of #1552 - IvanUkhov:spaces, r=alexcrichton
bors [Mon, 27 Apr 2015 06:33:09 +0000 (06:33 +0000)]
Auto merge of #1552 - IvanUkhov:spaces, r=alexcrichton

9 years agoMake the usage of spaces next to square brackets consistent
Ivan Ukhov [Mon, 27 Apr 2015 06:26:28 +0000 (08:26 +0200)]
Make the usage of spaces next to square brackets consistent

9 years agoFix the warning to start with a lowercase letter
Chris Wong [Sat, 25 Apr 2015 00:36:08 +0000 (12:36 +1200)]
Fix the warning to start with a lowercase letter

9 years agoAdd integration tests
Chris Wong [Fri, 24 Apr 2015 03:24:46 +0000 (15:24 +1200)]
Add integration tests

9 years agoShow a warning when the package is renamed
Chris Wong [Tue, 21 Apr 2015 23:28:21 +0000 (11:28 +1200)]
Show a warning when the package is renamed

9 years agoAdd a --name option for setting the package name
Chris Wong [Tue, 21 Apr 2015 22:54:18 +0000 (10:54 +1200)]
Add a --name option for setting the package name

9 years agoAuto merge of #1543 - brson:installer, r=alexcrichton
bors [Wed, 22 Apr 2015 21:57:00 +0000 (21:57 +0000)]
Auto merge of #1543 - brson:installer, r=alexcrichton

r? @alexcrichton

9 years agoUpgrade rust-installer
Brian Anderson [Wed, 22 Apr 2015 21:50:15 +0000 (14:50 -0700)]
Upgrade rust-installer

9 years agoStrip `rust-` and `-rs` affixes in `cargo new`
Chris Wong [Mon, 20 Apr 2015 00:16:29 +0000 (12:16 +1200)]
Strip `rust-` and `-rs` affixes in `cargo new`

Closes #1532

9 years agoAuto merge of #1539 - gentoo90:bash-comp, r=alexcrichton
bors [Mon, 20 Apr 2015 16:05:11 +0000 (16:05 +0000)]
Auto merge of #1539 - gentoo90:bash-comp, r=alexcrichton

...and restrict `--manifest-path` to propose only `*.toml` files.
Also add `.gitignore` to `registry` folder

9 years agoIgnore target/ and Cargo.lock in src/registry
gentoo90 [Sun, 19 Apr 2015 17:11:01 +0000 (20:11 +0300)]
Ignore target/ and Cargo.lock in src/registry

9 years agoAdd bashcomp for --example
gentoo90 [Sun, 19 Apr 2015 14:36:29 +0000 (17:36 +0300)]
Add bashcomp for --example

and restrict --manifest-path to propose only *.toml files

9 years agoAuto merge of #1535 - mohtar:doc-open, r=alexcrichton
bors [Sun, 19 Apr 2015 07:53:21 +0000 (07:53 +0000)]
Auto merge of #1535 - mohtar:doc-open, r=alexcrichton

`start` is not an actual executable, but rather a built-in command in Command Prompt. The correct way of launching a file using the default application is thus: `cmd /C start "" <file>`.

Fixes #741.

9 years agoAuto merge of #1537 - ozmorph:master, r=alexcrichton
bors [Sun, 19 Apr 2015 01:59:13 +0000 (01:59 +0000)]
Auto merge of #1537 - ozmorph:master, r=alexcrichton

fixes #1536 .  Tested with rustc 1.0.0-nightly (a52182ffd 2015-04-17) (built 2015-04-17).

9 years agoupdated threadpool dependency from v0.1.1 to v0.1.4
ozmorph [Sat, 18 Apr 2015 22:12:45 +0000 (18:12 -0400)]
updated threadpool dependency from v0.1.1 to v0.1.4

9 years agoOpen file correctly in Windows
Mohd Tarmizi [Sat, 18 Apr 2015 21:51:14 +0000 (05:51 +0800)]
Open file correctly in Windows

9 years agoAuto merge of #1533 - mohtar:doc-open, r=wycats
bors [Sat, 18 Apr 2015 15:20:10 +0000 (15:20 +0000)]
Auto merge of #1533 - mohtar:doc-open, r=wycats

Since #318, the `doc` command generates documentation for binaries in addition to libraries. But currently running `cargo doc --open` would not launch the browser for binary-only packages, even though it should. This commit changes the logic: binaries will be searched when there are no libraries in the package.

A simple test case:

`Cargo.toml`:

    [package]
    name = "foo"
    version = "0.1.0"
    authors = []

`src/main.rs`:

    pub fn main() {
        println!("Hello, world!");
    }

EDIT: I should add that this should fix #1472

9 years ago`cargo doc --open` should work for binary-only packages too
Mohd Tarmizi [Sat, 18 Apr 2015 09:48:38 +0000 (17:48 +0800)]
`cargo doc --open` should work for binary-only packages too

9 years agoAuto merge of #1531 - alexcrichton:cargo-version, r=brson
bors [Thu, 16 Apr 2015 23:05:40 +0000 (23:05 +0000)]
Auto merge of #1531 - alexcrichton:cargo-version, r=brson

Closes #808
Closes #1178

9 years agoBump cargo to 0.2.0
Alex Crichton [Thu, 16 Apr 2015 22:59:14 +0000 (15:59 -0700)]
Bump cargo to 0.2.0

Closes #808
Closes #1178

9 years agoAuto merge of #1530 - mvdnes:doctest-nativedep, r=alexcrichton
bors [Thu, 16 Apr 2015 17:43:48 +0000 (17:43 +0000)]
Auto merge of #1530 - mvdnes:doctest-nativedep, r=alexcrichton

This will traverse all native dependencies and add them to the rustdoc command when running tests.

Fixes #1245

9 years agoAdd native dependencies to doctest
Mathijs van de Nes [Thu, 16 Apr 2015 15:00:39 +0000 (17:00 +0200)]
Add native dependencies to doctest

This will traverse all native dependencies and add them to the rustdoc
command when running tests.

Fixes #1245

9 years agoAdding release flag to cargo test
Prabhjyot Singh Sodhi [Tue, 24 Mar 2015 20:43:30 +0000 (02:13 +0530)]
Adding release flag to cargo test

9 years agoAuto merge of #1523 - critiqjo:bash-complete, r=alexcrichton
bors [Tue, 14 Apr 2015 20:50:34 +0000 (20:50 +0000)]
Auto merge of #1523 - critiqjo:bash-complete, r=alexcrichton

Lists:
- all "installed" commands
- options for basic commands

9 years agoExecute `cargo --list` only when needed
critiqjo [Tue, 14 Apr 2015 18:35:12 +0000 (00:05 +0530)]
Execute `cargo --list` only when needed

9 years agoAdded more commands and options
critiqjo [Tue, 14 Apr 2015 18:18:22 +0000 (23:48 +0530)]
Added more commands and options

9 years agoAllow build script feedback to the crate compiled
Alex Crichton [Thu, 9 Apr 2015 21:35:48 +0000 (14:35 -0700)]
Allow build script feedback to the crate compiled

This commit enables the build script for a crate to provide feedback to the
crate itself about how it should be built. This is done through the `--cfg`
flags of the compiler, and each build script is now allowed to print `rustc-cfg`
directives to inform Cargo about what `--cfg` flags it should pass.

All `--cfg` flags are local to the current crate and are not propagated outwards
to transitive dependencies. The primary use-case that this feature is targeting
is compile-time feature detection for applications like C bindings or C
libraries where the version being targeted may change over time.

Closes #1478

9 years agoAuto merge of #1508 - mohtar:dupdepsbug, r=alexcrichton
bors [Tue, 14 Apr 2015 16:49:10 +0000 (16:49 +0000)]
Auto merge of #1508 - mohtar:dupdepsbug, r=alexcrichton

Fix #876.