RustCrypto / formats

Cryptography-related format encoders/decoders: DER, PEM, PKCS, PKIX
228 stars 122 forks source link

Fix `repository` field in Cargo.toml #1373

Closed link2xt closed 3 months ago

link2xt commented 3 months ago

According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field repository is a source repository URL. GitHub URLs with tree are not repository URLs and are not usable as git clone arguments.

Path within the worktree is encoded in .cargo_vcs_info.json of the crate, so encoding it in Cargo.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.

tarcieri commented 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?

link2xt commented 3 months ago

I moved old URLs to homepage.