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 {
6464 /// use cargo_util_schemas::core::PackageIdSpec;
6565 ///
6666 /// 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",
7167 /// "foo",
68+ /// "foo@1.4",
69+ /// "foo@1.4.3",
7270 /// "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"
7476 /// ];
7577 /// for spec in specs {
7678 /// assert!(PackageIdSpec::parse(spec).is_ok());
You can’t perform that action at this time.
0 commit comments