Commit graph

18 commits

Author SHA1 Message Date
29
62891bb2db
Support custom subject text (#231) 2024-08-07 03:14:37 +01:00
valentinleistner
ba7647dcff
Support for self-hosted Gitea (#164)
deps.rs is now available for self-hosted Gitea at
`/repo/gitea/<DOMAIN>/owner/repo`, e. g.
`/repo/gitea/git.example.org/deps-rs/deps.rs`,
`/repo/gitea/git.example.org:1234/deps-rs/deps.rs`,
`/repo/gitea/http://unsafe-gitea.org/deps-rs/deps.rs`.

This _should_ also include support for Gitea hosted in subdirectories,
e. g. `www.example.org/gitea`, though I haven't tested this yet.

If no protocol (`https://`/`http://`) is specified, `https://` is
automatically added to the beginning of the gitea server's URL.
However I could also change this to only accept https. Another
option might be the use of URL-encoding.
I am open for feedback, feel free to suggest changes.

Implementation notes:

- The Router now matches `/repo/*site/:qual/:name` instead of
  `/repo/:site/:qual/:name` to allow for an arbitrary number of
  `/`s before qual and name.
- `RepoSite` now has a new variant `Gitea(GiteaDomain)`.
- `RepoSite` no longer implements `Copy`. However this should not
  be problematic because `Copy`ing was only used for `to_base_uri`,
  `to_usercontent_base_uri` and `to_usercontent_repo_suffix` which
  now accept `&self` references.
- `RepoSite` no longer implements `AsRef` and now uses `Display`
  instead.

- updated test `correct_raw_url_generation`
- updated readme

Related to #84, #141
2022-08-21 11:16:52 +02:00
Rob Ede
41218695e6
Add for-the-badge style and docs (#139) 2022-01-29 14:12:01 +00:00
Atk
8bdee6b770
Codeberg support (#134) 2022-01-19 00:51:33 +00:00
Tassilo Horn
50d81a7a79
Mention SourceHut support in README.md (#120)
This is an addendum to the now-merged PR #117 which actually implemented the
support.
2021-09-02 10:35:56 +01:00
MGlolenstine
4b227a7836
Updated README.md (#81)
Changed the url, as `https://deps.rs/crates/<name>` resolves to 404.
2020-11-26 15:28:55 +01:00
a717c9afcc
Update the project readme (#72) 2020-10-25 03:38:49 +00:00
Tom Parker-Shemilt
f398347b4e Update all the links in README to the new org 2020-09-29 20:28:32 +01:00
0d3e0ac0f5
Add call for maintainers 2020-09-28 15:37:36 +02:00
Sam Rijs
c9ae182bf4
fix type 2019-11-10 21:02:37 +11:00
Sam Rijs
88b9740df6
add maintainance note to readme 2019-11-10 21:02:12 +11:00
Sam Rijs
ede8d26e83
add license badge to readme 2018-02-12 09:24:45 +11:00
Sam Rijs
5c605c9ce8
change to public travis badge 2018-02-11 22:39:47 +11:00
Sam Rijs
6cac28e8ef
add dependency badge to readme 2018-02-11 21:38:33 +11:00
Sam Rijs
3b82d60c6d
improve license section in readme 2018-02-11 18:21:24 +11:00
Sam Rijs
4aa3fb0285 change license to Apache 2.0 2018-02-11 18:14:42 +11:00
Sam Rijs
47f8907f3e
add build status to readme 2018-01-27 21:31:23 +11:00
Sam Rijs
95228976e0
Initial commit 2018-01-26 14:36:45 +11:00