Closed link2xt closed 3 months ago
Path within the worktree is encoded in .cargo_vcs_info.json of the crate, so encoding it in Cargo.toml is not necessary.
...but that's not displayed on crates.io.
It would be nice to retain the direct links to the actual subdirectory containing the package somewhere that generates a clickable link on crates.io. Perhaps homepage
?
I moved old URLs to homepage
.
According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field
repository
is a source repository URL. GitHub URLs withtree
are not repository URLs and are not usable asgit clone
arguments.Path within the worktree is encoded in
.cargo_vcs_info.json
of the crate, so encoding it inCargo.toml
is not necessary.I am automating downloading of crate sources and invalid URLs require workarounds to turn them into repository URLs that can be cloned.