Daniel Silverstone
6f94d0bbc4
Very simple Rust workflow
2019-10-26 16:41:47 +01:00
Daniel Silverstone
e827f7f7e0
Merge pull request #2087 from kinnison/kinnison/fix-no-target-components
...
manifest: Do not wrongly ascribe target to rust-src and friends
2019-10-26 13:29:49 +01:00
Daniel Silverstone
57b03891c6
Merge pull request #2086 from kinnison/kinnison/fix-default-host
...
Improve handling of --default-host on installation
2019-10-26 13:28:15 +01:00
Daniel Silverstone
bef6279cd7
manifest: Do not wrongly ascribe target to rust-src and friends
...
Some components have no target (target="*") and as such when we
install them, we should not ascribe a target to them. Before this,
installing `--profile complete` would incorrectly show `rust-src`
as not installed, despite being so.
After this fix, anyone updating such a broken toolchain install must
first `rustup component remove rust-src` and then reinstall it either
before or after upgrading.
Fixes : #2081
2019-10-26 12:06:25 +01:00
Daniel Silverstone
5fd873a2b4
Installation: Do not set default host triple if not specified
...
In order to reduce surprise, if the user did not explicitly supply
or explicitly set a default host triple during installation then
we do not override whatever the configuration picks by default
from the host/build.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-26 11:27:56 +01:00
Daniel Silverstone
1857acc783
Installation: Always set default host
...
Previously we wouldn't honour `--default-host` if we specified
`--default-toolchain none` or if there was an existing installation
we were updating. This should reduce surprise a little.
Fixes : #2082
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-26 11:27:44 +01:00
Daniel Silverstone
39292445d5
Merge pull request #2085 from kinnison/kinnison/pgp-keys
...
Rework the PGP key configuration
2019-10-26 10:36:16 +01:00
Daniel Silverstone
38200a9a0f
Merge pull request #2083 from carloabelli/no-bright-colors
...
Stop using bright colors
2019-10-26 10:18:14 +01:00
Daniel Silverstone
3ed85523a0
config: Rework how Cfg handles PGP public keys
...
We now support reading PGP public keys from environment-specified files and
settings specified files. I've chosen to hide pgp_keys from the public part of
`Cfg` as a start on data-hiding for better encapsulation.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-26 10:07:22 +01:00
Daniel Silverstone
897d4a0882
utils: Add read_file_bytes()
...
Useful for reading (small) binary files.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-26 10:07:06 +01:00
Daniel Silverstone
4ee47bbdf4
settings: Add support for a pgp_keys entry
...
This will be used to permit the specification of local PGP public keys which
can be used to validate channels and/or rustup releases.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-26 10:06:53 +01:00
Carlo Abelli
76f3130432
Stop using bright colors
...
Bright colors often display badly for those who are using colorschemes
that use unexpected bright colors such as solarized.
Additionally, many terminals automatically display bold text in bright
colors (unless this option is explicitly disabled) particularly if bold
text is not supported.
It should be left up to the user whether they want their bold text to be
displayed in bright colors.
2019-10-25 00:37:26 -04:00
Daniel Silverstone
7223b4f222
Merge pull request #2031 from BeniCheni/which-toolchain-by-root-cmd
...
Support toolchain keyword (e.g. "+nightly") to set override at root command
2019-10-23 19:33:37 +01:00
Daniel Silverstone
4060c5979c
Merge pull request #2080 from lzutao/caro-cache
...
build: use cargo-cache to clean up ~/.cargo dir
2019-10-23 19:30:12 +01:00
Daniel Silverstone
0a18343066
Merge pull request #2079 from lzutao/bump-deps
...
Bump various deps
2019-10-23 19:25:59 +01:00
Lzu Tao
c63d855e23
bump compatible deps
2019-10-23 09:17:05 +00:00
Lzu Tao
e310f1e73c
bump failure crate to remove old deps
2019-10-23 09:15:58 +00:00
Lzu Tao
396b7e2560
script: use --locked and remove verbose flag
2019-10-23 16:12:58 +07:00
Lzu Tao
bf071d509e
build: use cargo-cache to clean up .cargo/ dir
...
Use cargo-sweep to clean up target/ dir.
2019-10-23 16:12:55 +07:00
Benjamin Chen
3e7c66f6de
Add toolchain override support on command line
2019-10-22 19:48:02 -04:00
Daniel Silverstone
0fada4f05a
Merge pull request #2075 from jonhoo/fix-2004
...
install: add --profile flag to override profile
2019-10-20 16:47:38 +01:00
Jon Gjengset
66fdf0f06a
install: add --profile flag to override profile
...
Previously, the profile to use when installing a new toolchain had to be
set globally through `rustup set profile`, or at rustup-init time.
Sometimes this is inconvenient, because you only want to use a
particular profile when installing a specific toolchain. This patch
allows users to pass `--profile` to `rustup install` to override the
profile used for that one install.
Fixes #2004 .
2019-10-20 11:10:42 -04:00
Daniel Silverstone
d427b7669f
Merge pull request #2074 from BeniCheni/install-from-dist-w-force-update-from-cfg
...
Use "true" for force_update in relevant install_from_dist calls in config.rs
2019-10-20 15:05:41 +01:00
Benjamin Chen
0800f41d0c
Update force_update param in install_from_dist calls in config.rs
2019-10-20 09:12:16 -04:00
Daniel Silverstone
156f32efa7
Merge pull request #2052 from lzutao/leverage-profile
...
Use minimal profile to speed up Rust installation
2019-10-19 17:43:19 +01:00
Lzu Tao
d7dd1f7ba9
Use minimal profile to speed up Rust installation
2019-10-19 19:50:51 +07:00
Daniel Silverstone
6dbf494bbf
Merge pull request #2061 from lzutao/appveyor-improvements
...
appveyor: some minor config improvements
2019-10-19 11:10:32 +01:00
Lzu Tao
d63478daa2
fix cargo home path on windows welcome message
2019-10-19 10:01:45 +07:00
Lzu Tao
41e2d381cb
appveyor: some minor config improvements
...
* Add cache support
* Finish all build jobs if one failed
* Disable notifications to unknown webhook
2019-10-19 10:01:17 +07:00
Daniel Silverstone
8096e9a940
Merge pull request #2073 from kinnison/kinnison/more-crate-updates
...
Kinnison/more crate updates
2019-10-18 22:46:27 +01:00
Daniel Silverstone
d9dfe9051a
Update git-testament{,-derive} to 0.1.{7,8}
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:06:04 +01:00
Daniel Silverstone
ba7fd34796
Update reqwest to 0.9.22
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:06:04 +01:00
Daniel Silverstone
48ee73e78d
Update home to 0.5.1
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:06:04 +01:00
Daniel Silverstone
7bc27eca1b
Update http to 0.1.19
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:06:04 +01:00
Daniel Silverstone
6cd7296f5c
Update hyper to 0.12.35
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:06:04 +01:00
Daniel Silverstone
00e9c816bc
Update opener to 0.4.1
...
Fixes : #2008
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-18 22:05:55 +01:00
Daniel Silverstone
a1fe74c9d4
Merge pull request #2046 from BeniCheni/clean-downloads-after-update
...
Delete content of downloads dir of user home in update subcommand
2019-10-18 21:30:18 +01:00
Benjamin Chen
0db473b1be
Delete content of downloads & tmp dirs after full rustup update
2019-10-18 15:22:18 -04:00
Daniel Silverstone
9c1492e767
Merge pull request #2053 from lzutao/remove-scopeguard-0.3
...
Remove scopeguard 0.3, miniz-sys and bump curl, openssl, tokio-reactor and flate2
2019-10-18 20:07:35 +01:00
Daniel Silverstone
a5eda4b0eb
Merge pull request #2072 from woshilapin/profile-documentation
...
Add documentation about profiles
2019-10-18 19:55:58 +01:00
Daniel Silverstone
47961af4d6
Merge pull request #2056 from rofrol/patch-1
...
Point to VS C++ Build tools
2019-10-18 19:50:49 +01:00
Jean SIMARD
a3ad8dbfc9
Add documentation about profiles
2019-10-18 09:59:16 +02:00
Daniel Silverstone
13979c9685
rustup-init.sh: Update for 1.20.2
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
1.20.2
2019-10-16 10:53:33 +01:00
Daniel Silverstone
9d018c5e48
Updates for 1.20.2
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-16 10:52:26 +01:00
Daniel Silverstone
48c38d3413
Merge pull request #2066 from kinnison/kinnison/forced-install-skipping-fix
...
Kinnison/forced install skipping fix
2019-10-16 10:50:34 +01:00
Daniel Silverstone
942d58804f
manifestation: Drop skipped components during install properly
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-16 09:51:02 +01:00
Daniel Silverstone
82764b1b58
tests: Verify force-skipping a component doesn't mark it installed
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org >
2019-10-16 09:50:39 +01:00
Lzu Tao
cf18021749
bump curl, openssl and openssl-sys
2019-10-16 03:27:06 +00:00
Lzu Tao
17139db73b
bump flate2 to remove miniz-sys dep
2019-10-16 10:12:03 +07:00
Lzu Tao
df02d6a63c
bump tokio-reactor to remove scopeguard 0.3
2019-10-16 10:12:03 +07:00