We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2408a7 + ad18dd0 commit 4e792c2Copy full SHA for 4e792c2
crates/cargo-util-schemas/src/core/package_id_spec.rs
@@ -64,13 +64,15 @@ impl PackageIdSpec {
64
/// use cargo_util_schemas::core::PackageIdSpec;
65
///
66
/// let specs = vec![
67
- /// "https://crates.io/foo",
68
- /// "https://crates.io/foo#1.2.3",
69
- /// "https://crates.io/foo#bar:1.2.3",
70
- /// "https://crates.io/foo#bar@1.2.3",
71
/// "foo",
+ /// "foo@1.4",
+ /// "foo@1.4.3",
72
/// "foo:1.2.3",
73
- /// "foo@1.2.3",
+ /// "https://github.com/rust-lang/crates.io-index#foo",
+ /// "https://github.com/rust-lang/crates.io-index#foo@1.4.3",
+ /// "ssh://git@github.com/rust-lang/foo.git#foo@1.4.3",
74
+ /// "file:///path/to/my/project/foo",
75
+ /// "file:///path/to/my/project/foo#1.1.8"
76
/// ];
77
/// for spec in specs {
78
/// assert!(PackageIdSpec::parse(spec).is_ok());
0 commit comments