mirror of https://github.com/rust-lang/cargo
HTTPS all the things
This commit is contained in:
parent
d75d1fbe6b
commit
0c3851c017
|
@ -1,6 +1,6 @@
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
|
|
@ -3,7 +3,7 @@ depends on a number of libraries which carry their own copyright notices and
|
||||||
license terms. These libraries are normally all linked static into the binary
|
license terms. These libraries are normally all linked static into the binary
|
||||||
distributions of Cargo:
|
distributions of Cargo:
|
||||||
|
|
||||||
* OpenSSL - http://www.openssl.org/source/license.html
|
* OpenSSL - https://www.openssl.org/source/license.html
|
||||||
|
|
||||||
Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
|
Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ distributions of Cargo:
|
||||||
3. All advertising materials mentioning features or use of this
|
3. All advertising materials mentioning features or use of this
|
||||||
software must display the following acknowledgment:
|
software must display the following acknowledgment:
|
||||||
"This product includes software developed by the OpenSSL Project
|
"This product includes software developed by the OpenSSL Project
|
||||||
for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
|
for use in the OpenSSL Toolkit. (https://www.openssl.org/)"
|
||||||
|
|
||||||
4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
||||||
endorse or promote products derived from this software without
|
endorse or promote products derived from this software without
|
||||||
|
@ -36,7 +36,7 @@ distributions of Cargo:
|
||||||
6. Redistributions of any form whatsoever must retain the following
|
6. Redistributions of any form whatsoever must retain the following
|
||||||
acknowledgment:
|
acknowledgment:
|
||||||
"This product includes software developed by the OpenSSL Project
|
"This product includes software developed by the OpenSSL Project
|
||||||
for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
for use in the OpenSSL Toolkit (https://www.openssl.org/)"
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
||||||
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
@ -1037,7 +1037,7 @@ distributions of Cargo:
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
* libssh2 - http://www.libssh2.org/license.html
|
* libssh2 - https://www.libssh2.org/license.html
|
||||||
|
|
||||||
Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
|
Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
|
||||||
Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
|
Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
|
||||||
|
@ -1080,7 +1080,7 @@ distributions of Cargo:
|
||||||
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||||
OF SUCH DAMAGE.
|
OF SUCH DAMAGE.
|
||||||
|
|
||||||
* libcurl - http://curl.haxx.se/docs/copyright.html
|
* libcurl - https://curl.haxx.se/docs/copyright.html
|
||||||
|
|
||||||
COPYRIGHT AND PERMISSION NOTICE
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
|
@ -1268,5 +1268,5 @@ distributions of Cargo:
|
||||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
For more information, please refer to <http://unlicense.org/>
|
For more information, please refer to <https://unlicense.org/>
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ See LICENSE-APACHE and LICENSE-MIT for details.
|
||||||
### Third party software
|
### Third party software
|
||||||
|
|
||||||
This product includes software developed by the OpenSSL Project
|
This product includes software developed by the OpenSSL Project
|
||||||
for use in the OpenSSL Toolkit (http://www.openssl.org/).
|
for use in the OpenSSL Toolkit (https://www.openssl.org/).
|
||||||
|
|
||||||
In binary form, this product includes software that is licensed under the
|
In binary form, this product includes software that is licensed under the
|
||||||
terms of the GNU General Public License, version 2, with a linking exception,
|
terms of the GNU General Public License, version 2, with a linking exception,
|
||||||
|
|
|
@ -27,7 +27,7 @@ Example Package IDs
|
||||||
crates.io/foo | foo | * | *://crates.io/foo
|
crates.io/foo | foo | * | *://crates.io/foo
|
||||||
crates.io/foo#1.2.3 | foo | 1.2.3 | *://crates.io/foo
|
crates.io/foo#1.2.3 | foo | 1.2.3 | *://crates.io/foo
|
||||||
crates.io/bar#foo:1.2.3 | foo | 1.2.3 | *://crates.io/bar
|
crates.io/bar#foo:1.2.3 | foo | 1.2.3 | *://crates.io/bar
|
||||||
http://crates.io/foo#1.2.3 | foo | 1.2.3 | http://crates.io/foo
|
https://crates.io/foo#1.2.3 | foo | 1.2.3 | https://crates.io/foo
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,8 @@ impl PackageIdSpec {
|
||||||
/// use cargo::core::PackageIdSpec;
|
/// use cargo::core::PackageIdSpec;
|
||||||
///
|
///
|
||||||
/// let specs = vec![
|
/// let specs = vec![
|
||||||
/// "http://crates.io/foo#1.2.3",
|
/// "https://crates.io/foo#1.2.3",
|
||||||
/// "http://crates.io/foo#bar:1.2.3",
|
/// "https://crates.io/foo#bar:1.2.3",
|
||||||
/// "crates.io/foo",
|
/// "crates.io/foo",
|
||||||
/// "crates.io/foo#1.2.3",
|
/// "crates.io/foo#1.2.3",
|
||||||
/// "crates.io/foo#bar",
|
/// "crates.io/foo#bar",
|
||||||
|
@ -286,19 +286,19 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
ok(
|
ok(
|
||||||
"http://crates.io/foo#1.2.3",
|
"https://crates.io/foo#1.2.3",
|
||||||
PackageIdSpec {
|
PackageIdSpec {
|
||||||
name: "foo".to_string(),
|
name: "foo".to_string(),
|
||||||
version: Some("1.2.3".to_semver().unwrap()),
|
version: Some("1.2.3".to_semver().unwrap()),
|
||||||
url: Some(Url::parse("http://crates.io/foo").unwrap()),
|
url: Some(Url::parse("https://crates.io/foo").unwrap()),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
ok(
|
ok(
|
||||||
"http://crates.io/foo#bar:1.2.3",
|
"https://crates.io/foo#bar:1.2.3",
|
||||||
PackageIdSpec {
|
PackageIdSpec {
|
||||||
name: "bar".to_string(),
|
name: "bar".to_string(),
|
||||||
version: Some("1.2.3".to_semver().unwrap()),
|
version: Some("1.2.3".to_semver().unwrap()),
|
||||||
url: Some(Url::parse("http://crates.io/foo").unwrap()),
|
url: Some(Url::parse("https://crates.io/foo").unwrap()),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
ok(
|
ok(
|
||||||
|
@ -356,13 +356,13 @@ mod tests {
|
||||||
assert!(PackageIdSpec::parse("baz:").is_err());
|
assert!(PackageIdSpec::parse("baz:").is_err());
|
||||||
assert!(PackageIdSpec::parse("baz:*").is_err());
|
assert!(PackageIdSpec::parse("baz:*").is_err());
|
||||||
assert!(PackageIdSpec::parse("baz:1.0").is_err());
|
assert!(PackageIdSpec::parse("baz:1.0").is_err());
|
||||||
assert!(PackageIdSpec::parse("http://baz:1.0").is_err());
|
assert!(PackageIdSpec::parse("https://baz:1.0").is_err());
|
||||||
assert!(PackageIdSpec::parse("http://#baz:1.0").is_err());
|
assert!(PackageIdSpec::parse("https://#baz:1.0").is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn matching() {
|
fn matching() {
|
||||||
let url = Url::parse("http://example.com").unwrap();
|
let url = Url::parse("https://example.com").unwrap();
|
||||||
let sid = SourceId::for_registry(&url).unwrap();
|
let sid = SourceId::for_registry(&url).unwrap();
|
||||||
let foo = PackageId::new("foo", "1.2.3", sid).unwrap();
|
let foo = PackageId::new("foo", "1.2.3", sid).unwrap();
|
||||||
let bar = PackageId::new("bar", "1.2.3", sid).unwrap();
|
let bar = PackageId::new("bar", "1.2.3", sid).unwrap();
|
||||||
|
|
|
@ -152,7 +152,7 @@ fn check_metadata(pkg: &Package, config: &Config) -> CargoResult<()> {
|
||||||
|
|
||||||
config.shell().warn(&format!(
|
config.shell().warn(&format!(
|
||||||
"manifest has no {things}.\n\
|
"manifest has no {things}.\n\
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.",
|
See https://doc.rust-lang.org/cargo/reference/manifest.html for more info.",
|
||||||
things = things
|
things = things
|
||||||
))?
|
))?
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ where
|
||||||
"the `--vers` provided, `{}`, is \
|
"the `--vers` provided, `{}`, is \
|
||||||
not a valid semver version requirement\n\n
|
not a valid semver version requirement\n\n
|
||||||
Please have a look at \
|
Please have a look at \
|
||||||
http://doc.crates.io/specifying-dependencies.html \
|
https://doc.crates.io/specifying-dependencies.html \
|
||||||
for the correct format",
|
for the correct format",
|
||||||
v
|
v
|
||||||
),
|
),
|
||||||
|
|
|
@ -290,7 +290,7 @@ fn transmit(
|
||||||
the following are not valid badges and were ignored: {}. \
|
the following are not valid badges and were ignored: {}. \
|
||||||
Either the badge type specified is unknown or a required \
|
Either the badge type specified is unknown or a required \
|
||||||
attribute is missing. Please see \
|
attribute is missing. Please see \
|
||||||
http://doc.crates.io/manifest.html#package-metadata \
|
https://doc.rust-lang.org/cargo/reference/manifest.html \
|
||||||
for valid badge types and their required attributes.",
|
for valid badge types and their required attributes.",
|
||||||
warnings.invalid_badges.join(", ")
|
warnings.invalid_badges.join(", ")
|
||||||
);
|
);
|
||||||
|
@ -763,7 +763,7 @@ pub fn search(
|
||||||
);
|
);
|
||||||
} else if total_crates > limit && limit >= search_max_limit {
|
} else if total_crates > limit && limit >= search_max_limit {
|
||||||
println!(
|
println!(
|
||||||
"... and {} crates more (go to http://crates.io/search?q={} to see more)",
|
"... and {} crates more (go to https://crates.io/search?q={} to see more)",
|
||||||
total_crates - limit,
|
total_crates - limit,
|
||||||
percent_encode(query.as_bytes(), QUERY_ENCODE_SET)
|
percent_encode(query.as_bytes(), QUERY_ENCODE_SET)
|
||||||
);
|
);
|
||||||
|
|
|
@ -17,7 +17,7 @@ cargo - The Rust package manager
|
||||||
== DESCRIPTION
|
== DESCRIPTION
|
||||||
|
|
||||||
This program is a package manager and build tool for the Rust language,
|
This program is a package manager and build tool for the Rust language,
|
||||||
available at <http://rust-lang.org>.
|
available at <https://rust-lang.org>.
|
||||||
|
|
||||||
== COMMANDS
|
== COMMANDS
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="sectionbody">
|
<div class="sectionbody">
|
||||||
<div class="paragraph">
|
<div class="paragraph">
|
||||||
<p>This program is a package manager and build tool for the Rust language,
|
<p>This program is a package manager and build tool for the Rust language,
|
||||||
available at <a href="http://rust-lang.org" class="bare">http://rust-lang.org</a>.</p>
|
available at <a href="https://rust-lang.org" class="bare">https://rust-lang.org</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -32,7 +32,7 @@ name such as "nul", is not too long, etc.
|
||||||
#### The `version` field
|
#### The `version` field
|
||||||
|
|
||||||
Cargo bakes in the concept of [Semantic
|
Cargo bakes in the concept of [Semantic
|
||||||
Versioning](http://semver.org/), so make sure you follow some basic rules:
|
Versioning](https://semver.org/), so make sure you follow some basic rules:
|
||||||
|
|
||||||
* Before you reach 1.0.0, anything goes, but if you make breaking changes,
|
* Before you reach 1.0.0, anything goes, but if you make breaking changes,
|
||||||
increment the minor version. In Rust, breaking changes include adding fields to
|
increment the minor version. In Rust, breaking changes include adding fields to
|
||||||
|
|
|
@ -34,7 +34,7 @@ registry at `crates.io`
|
||||||
| `crates.io/foo` | `foo` | `*` | `*://crates.io/foo` |
|
| `crates.io/foo` | `foo` | `*` | `*://crates.io/foo` |
|
||||||
| `crates.io/foo#1.2.3` | `foo` | `1.2.3` | `*://crates.io/foo` |
|
| `crates.io/foo#1.2.3` | `foo` | `1.2.3` | `*://crates.io/foo` |
|
||||||
| `crates.io/bar#foo:1.2.3` | `foo` | `1.2.3` | `*://crates.io/bar` |
|
| `crates.io/bar#foo:1.2.3` | `foo` | `1.2.3` | `*://crates.io/bar` |
|
||||||
| `http://crates.io/foo#1.2.3` | `foo` | `1.2.3` | `http://crates.io/foo` |
|
| `https://crates.io/foo#1.2.3`| `foo` | `1.2.3` | `https://crates.io/foo` |
|
||||||
|
|
||||||
#### Brevity of specifications
|
#### Brevity of specifications
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ cargo \- The Rust package manager
|
||||||
.sp
|
.sp
|
||||||
This program is a package manager and build tool for the Rust language,
|
This program is a package manager and build tool for the Rust language,
|
||||||
available at \c
|
available at \c
|
||||||
.URL "http://rust\-lang.org" "" "."
|
.URL "https://rust\-lang.org" "" "."
|
||||||
.SH "COMMANDS"
|
.SH "COMMANDS"
|
||||||
.SS "Build Commands"
|
.SS "Build Commands"
|
||||||
.sp
|
.sp
|
||||||
|
|
|
@ -910,7 +910,7 @@ fn bad_source_config2() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = 'bar'
|
replace-with = 'bar'
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -953,7 +953,7 @@ fn bad_source_config3() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = 'crates-io'
|
replace-with = 'crates-io'
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -995,11 +995,11 @@ fn bad_source_config4() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = 'bar'
|
replace-with = 'bar'
|
||||||
|
|
||||||
[source.bar]
|
[source.bar]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = 'crates-io'
|
replace-with = 'crates-io'
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -1042,7 +1042,7 @@ fn bad_source_config5() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = 'bar'
|
replace-with = 'bar'
|
||||||
|
|
||||||
[source.bar]
|
[source.bar]
|
||||||
|
@ -1115,7 +1115,7 @@ fn bad_source_config6() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
replace-with = ['not', 'a', 'string']
|
replace-with = ['not', 'a', 'string']
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -1176,7 +1176,7 @@ fn bad_source_config7() {
|
||||||
".cargo/config",
|
".cargo/config",
|
||||||
r#"
|
r#"
|
||||||
[source.foo]
|
[source.foo]
|
||||||
registry = 'http://example.com'
|
registry = 'https://example.com'
|
||||||
local-registry = 'file:///another/file'
|
local-registry = 'file:///another/file'
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1446,8 +1446,8 @@ fn crate_env_vars() {
|
||||||
name = "foo"
|
name = "foo"
|
||||||
version = "0.5.1-alpha.1"
|
version = "0.5.1-alpha.1"
|
||||||
description = "This is foo"
|
description = "This is foo"
|
||||||
homepage = "http://example.com"
|
homepage = "https://example.com"
|
||||||
repository = "http://example.com/repo.git"
|
repository = "https://example.com/repo.git"
|
||||||
authors = ["wycats@example.com"]
|
authors = ["wycats@example.com"]
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -1475,8 +1475,8 @@ fn crate_env_vars() {
|
||||||
assert_eq!(s, foo::version());
|
assert_eq!(s, foo::version());
|
||||||
println!("{}", s);
|
println!("{}", s);
|
||||||
assert_eq!("foo", PKG_NAME);
|
assert_eq!("foo", PKG_NAME);
|
||||||
assert_eq!("http://example.com", HOMEPAGE);
|
assert_eq!("https://example.com", HOMEPAGE);
|
||||||
assert_eq!("http://example.com/repo.git", REPOSITORY);
|
assert_eq!("https://example.com/repo.git", REPOSITORY);
|
||||||
assert_eq!("This is foo", DESCRIPTION);
|
assert_eq!("This is foo", DESCRIPTION);
|
||||||
let s = format!("{}.{}.{}-{}", VERSION_MAJOR,
|
let s = format!("{}.{}.{}-{}", VERSION_MAJOR,
|
||||||
VERSION_MINOR, VERSION_PATCH, VERSION_PRE);
|
VERSION_MINOR, VERSION_PATCH, VERSION_PRE);
|
||||||
|
|
|
@ -105,7 +105,7 @@ fn http_auth_offered() {
|
||||||
authors = []
|
authors = []
|
||||||
|
|
||||||
[dependencies.bar]
|
[dependencies.bar]
|
||||||
git = "http://127.0.0.1:{}/foo/bar"
|
git = "https://127.0.0.1:{}/foo/bar"
|
||||||
"#,
|
"#,
|
||||||
addr.port()
|
addr.port()
|
||||||
),
|
),
|
||||||
|
@ -126,11 +126,11 @@ fn http_auth_offered() {
|
||||||
.with_status(101)
|
.with_status(101)
|
||||||
.with_stderr_contains(&format!(
|
.with_stderr_contains(&format!(
|
||||||
"\
|
"\
|
||||||
[UPDATING] git repository `http://{addr}/foo/bar`
|
[UPDATING] git repository `https://{addr}/foo/bar`
|
||||||
[ERROR] failed to load source for a dependency on `bar`
|
[ERROR] failed to load source for a dependency on `bar`
|
||||||
|
|
||||||
Caused by:
|
Caused by:
|
||||||
Unable to update http://{addr}/foo/bar
|
Unable to update https://{addr}/foo/bar
|
||||||
|
|
||||||
Caused by:
|
Caused by:
|
||||||
failed to clone into: [..]
|
failed to clone into: [..]
|
||||||
|
|
|
@ -2714,7 +2714,7 @@ fn failed_submodule_checkout() {
|
||||||
});
|
});
|
||||||
|
|
||||||
let repo = git2::Repository::open(&git_project2.root()).unwrap();
|
let repo = git2::Repository::open(&git_project2.root()).unwrap();
|
||||||
let url = format!("http://{}:{}/", addr.ip(), addr.port());
|
let url = format!("https://{}:{}/", addr.ip(), addr.port());
|
||||||
{
|
{
|
||||||
let mut s = repo.submodule(&url, Path::new("bar"), false).unwrap();
|
let mut s = repo.submodule(&url, Path::new("bar"), false).unwrap();
|
||||||
let subrepo = s.open().unwrap();
|
let subrepo = s.open().unwrap();
|
||||||
|
|
|
@ -70,7 +70,7 @@ fn metadata_warning() {
|
||||||
"\
|
"\
|
||||||
warning: manifest has no description, license, license-file, documentation, \
|
warning: manifest has no description, license, license-file, documentation, \
|
||||||
homepage or repository.
|
homepage or repository.
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([CWD])
|
[PACKAGING] foo v0.0.1 ([CWD])
|
||||||
[VERIFYING] foo v0.0.1 ([CWD])
|
[VERIFYING] foo v0.0.1 ([CWD])
|
||||||
[COMPILING] foo v0.0.1 ([CWD][..])
|
[COMPILING] foo v0.0.1 ([CWD][..])
|
||||||
|
@ -96,7 +96,7 @@ See http://doc.crates.io/manifest.html#package-metadata for more info.
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
warning: manifest has no description, documentation, homepage or repository.
|
warning: manifest has no description, documentation, homepage or repository.
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([CWD])
|
[PACKAGING] foo v0.0.1 ([CWD])
|
||||||
[VERIFYING] foo v0.0.1 ([CWD])
|
[VERIFYING] foo v0.0.1 ([CWD])
|
||||||
[COMPILING] foo v0.0.1 ([CWD][..])
|
[COMPILING] foo v0.0.1 ([CWD][..])
|
||||||
|
@ -149,7 +149,7 @@ fn package_verbose() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no description[..]
|
[WARNING] manifest has no description[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([..])
|
[PACKAGING] foo v0.0.1 ([..])
|
||||||
[ARCHIVING] [..]
|
[ARCHIVING] [..]
|
||||||
[ARCHIVING] [..]
|
[ARCHIVING] [..]
|
||||||
|
@ -186,7 +186,7 @@ See http://doc.crates.io/manifest.html#package-metadata for more info.
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no description[..]
|
[WARNING] manifest has no description[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] a v0.0.1 ([..])
|
[PACKAGING] a v0.0.1 ([..])
|
||||||
[ARCHIVING] Cargo.toml
|
[ARCHIVING] Cargo.toml
|
||||||
[ARCHIVING] src/lib.rs
|
[ARCHIVING] src/lib.rs
|
||||||
|
@ -204,7 +204,7 @@ fn package_verification() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no description[..]
|
[WARNING] manifest has no description[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([CWD])
|
[PACKAGING] foo v0.0.1 ([CWD])
|
||||||
[VERIFYING] foo v0.0.1 ([CWD])
|
[VERIFYING] foo v0.0.1 ([CWD])
|
||||||
[COMPILING] foo v0.0.1 ([CWD][..])
|
[COMPILING] foo v0.0.1 ([CWD][..])
|
||||||
|
@ -280,7 +280,7 @@ fn path_dependency_no_version() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no documentation, homepage or repository.
|
[WARNING] manifest has no documentation, homepage or repository.
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[ERROR] all path dependencies must have a version specified when packaging.
|
[ERROR] all path dependencies must have a version specified when packaging.
|
||||||
dependency `bar` does not specify a version.
|
dependency `bar` does not specify a version.
|
||||||
",
|
",
|
||||||
|
@ -363,7 +363,7 @@ fn exclude() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no description[..]
|
[WARNING] manifest has no description[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[WARNING] [..] file `dir_root_1/some_dir/file` WILL be excluded [..]
|
[WARNING] [..] file `dir_root_1/some_dir/file` WILL be excluded [..]
|
||||||
See [..]
|
See [..]
|
||||||
[WARNING] [..] file `dir_root_2/some_dir/file` WILL be excluded [..]
|
[WARNING] [..] file `dir_root_2/some_dir/file` WILL be excluded [..]
|
||||||
|
@ -455,7 +455,7 @@ fn include() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no description[..]
|
[WARNING] manifest has no description[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([..])
|
[PACKAGING] foo v0.0.1 ([..])
|
||||||
[ARCHIVING] [..]
|
[ARCHIVING] [..]
|
||||||
[ARCHIVING] [..]
|
[ARCHIVING] [..]
|
||||||
|
@ -569,7 +569,7 @@ fn ignore_nested() {
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[WARNING] manifest has no documentation[..]
|
[WARNING] manifest has no documentation[..]
|
||||||
See http://doc.crates.io/manifest.html#package-metadata for more info.
|
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
|
||||||
[PACKAGING] foo v0.0.1 ([CWD])
|
[PACKAGING] foo v0.0.1 ([CWD])
|
||||||
[VERIFYING] foo v0.0.1 ([CWD])
|
[VERIFYING] foo v0.0.1 ([CWD])
|
||||||
[COMPILING] foo v0.0.1 ([CWD][..])
|
[COMPILING] foo v0.0.1 ([CWD][..])
|
||||||
|
|
|
@ -289,24 +289,24 @@ fn test_resolving_common_transitive_deps() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_resolving_with_same_name() {
|
fn test_resolving_with_same_name() {
|
||||||
let list = vec![
|
let list = vec![
|
||||||
pkg_loc("foo", "http://first.example.com"),
|
pkg_loc("foo", "https://first.example.com"),
|
||||||
pkg_loc("bar", "http://second.example.com"),
|
pkg_loc("bar", "https://second.example.com"),
|
||||||
];
|
];
|
||||||
|
|
||||||
let reg = registry(list);
|
let reg = registry(list);
|
||||||
let res = resolve(
|
let res = resolve(
|
||||||
&pkg_id("root"),
|
&pkg_id("root"),
|
||||||
vec![
|
vec![
|
||||||
dep_loc("foo", "http://first.example.com"),
|
dep_loc("foo", "https://first.example.com"),
|
||||||
dep_loc("bar", "http://second.example.com"),
|
dep_loc("bar", "https://second.example.com"),
|
||||||
],
|
],
|
||||||
®,
|
®,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let mut names = loc_names(&[
|
let mut names = loc_names(&[
|
||||||
("foo", "http://first.example.com"),
|
("foo", "https://first.example.com"),
|
||||||
("bar", "http://second.example.com"),
|
("bar", "https://second.example.com"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
names.push(pkg_id("root"));
|
names.push(pkg_id("root"));
|
||||||
|
@ -1175,8 +1175,8 @@ fn resolving_but_no_exists() {
|
||||||
res.err().unwrap().to_string(),
|
res.err().unwrap().to_string(),
|
||||||
"\
|
"\
|
||||||
no matching package named `foo` found\n\
|
no matching package named `foo` found\n\
|
||||||
location searched: registry `http://example.com/`\n\
|
location searched: registry `https://example.com/`\n\
|
||||||
required by package `root v1.0.0 (registry `http://example.com/`)`\
|
required by package `root v1.0.0 (registry `https://example.com/`)`\
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ macro_rules! pkg {
|
||||||
fn registry_loc() -> SourceId {
|
fn registry_loc() -> SourceId {
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
static ref EXAMPLE_DOT_COM: SourceId =
|
static ref EXAMPLE_DOT_COM: SourceId =
|
||||||
SourceId::for_registry(&"http://example.com".to_url().unwrap()).unwrap();
|
SourceId::for_registry(&"https://example.com".to_url().unwrap()).unwrap();
|
||||||
}
|
}
|
||||||
*EXAMPLE_DOT_COM
|
*EXAMPLE_DOT_COM
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue