Ed Page f6514977ef
feat: add cargo pkgid support for cargo-script (#14961)
### What does this PR try to resolve?

close https://github.com/rust-lang/cargo/issues/14831

In this PR, we added the `cargo pkgid` support for the cargo-script.

For the package itself:

```console
cargo pkgid --manifest-path foo.rs
path+file:///my-project/foo.rs/foo#0.86.0
```

For its dependence:

```console
cargo pkgid --manifest-path foo.rs -p sqlx
registry+https://github.com/rust-lang/crates.io-index#sqlx@0.7.4
```

### How should we test and review this PR?

I have updated the unit tests and also added more test cases for it.

### Additional information

None
2025-02-04 19:52:07 +00:00
..
2025-01-04 14:37:39 +00:00
2024-11-25 09:27:09 -06:00
2024-11-25 09:27:09 -06:00
2024-11-25 09:27:09 -06:00
2025-01-13 10:40:13 -06:00
2024-11-26 10:20:53 -05:00
2024-07-26 23:26:48 +08:00
2025-02-03 15:07:36 -06:00
2024-11-25 09:27:09 -06:00
2024-11-15 09:33:23 -06:00