File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
crates/cargo-util-schemas/src/core Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ impl PackageIdSpec {
64
64
/// use cargo_util_schemas::core::PackageIdSpec;
65
65
///
66
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
67
/// "foo",
68
+ /// "foo@1.4",
69
+ /// "foo@1.4.3",
72
70
/// "foo:1.2.3",
73
- /// "foo@1.2.3",
71
+ /// "https://github.com/rust-lang/crates.io-index#foo",
72
+ /// "https://github.com/rust-lang/crates.io-index#foo@1.4.3",
73
+ /// "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"
74
76
/// ];
75
77
/// for spec in specs {
76
78
/// assert!(PackageIdSpec::parse(spec).is_ok());
You can’t perform that action at this time.
0 commit comments