Keep your dependencies up-to-date
Find a file
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
.github/workflows Deploy to production instead of stg 2020-12-12 14:27:33 +01:00
assets Extend dependency status box to report more issues (#121) 2021-10-18 15:55:53 +01:00
deploy CD: deploy to kubernetes (#79) 2020-11-15 16:36:21 +01:00
libs/badge Add for-the-badge style and docs (#139) 2022-01-29 14:12:01 +00:00
resources Update the project readme (#72) 2020-10-25 03:38:49 +00:00
src Support for self-hosted Gitea (#164) 2022-08-21 11:16:52 +02:00
.dockerignore Setup CD: Docker image and action to push to GH container registry (#61) 2020-10-23 19:13:25 +02:00
.gitattributes make linguist track assets as vendored 2018-01-29 20:53:12 +11:00
.gitignore check in Cargo.lock 2018-02-14 11:23:42 +11:00
build.rs Setup cache busting for style.css (#100) 2021-02-10 12:49:35 +01:00
Cargo.lock cargo: bump dependencies (#163) 2022-08-15 21:04:48 +01:00
Cargo.toml Update to latest rustsec (#152) 2022-05-23 02:00:40 +01:00
Dockerfile Fix docker images in Dockerfile (#124) 2021-10-28 12:04:52 +01:00
LICENSE change license to Apache 2.0 2018-02-11 18:14:42 +11:00
Procfile add procfile 2018-01-27 20:49:13 +11:00
README.md Support for self-hosted Gitea (#164) 2022-08-21 11:16:52 +02:00
RustConfig Upgrade to maud 0.22.1 and switch to stable Rust (#74) 2020-11-04 14:42:42 +01:00

Deps.rs - Dependency status at a glance

dependency status GitHub license

A screenshot showing the deps.rs status of the libc crate

Deps.rs is a service that shows you at a glance if any of your dependencies are out of date or insecure. This works by comparing the dependencies in a project's Cargo.toml to the latest versions in the crates.io database. For security-related information, we query the RustSec Security Advisory Database.

We currently support projects and crates hosted on crates.io, Github, Gitlab, Bitbucket, and SourceHut. To analyze the state of your dependencies you can use the following URLs:

  • for projects on crates.io: https://deps.rs/crate/<NAME>
  • for projects on Github, Gitlab, Bitbucket, SourceHut, Codeberg, or Gitea: https://deps.rs/repo/<HOSTER>/<USER>/<REPO> (where <HOSTER> is either github, gitlab, bitbucket, sourcehut, codeberg, or gitea/<DOMAIN>)

Badges

On the analysis page, you will also find the markdown code to include a fancy badge in your project README so visitors (and you) can see at a glance if your dependencies are still up to date!

Badges have a few style options, specified with query parameters, that match the styles from shields.io:

  • ?style=flat (default)
  • ?style=flat-square
  • ?style=for-the-badge

Contributing

We are always looking for help from the community! Feel like a feature is missing? Found a bug? Open an issue!

Do you want to contribute? Then browse the list of open issues and ask if you can take care of it.

Building the project

To get started on the project simply clone the repository and run the build:

git clone https://github.com/deps-rs/deps.rs
cd deps.rs
cargo run

The started development server will listen on port 8080 on localhost, so you just have to point your browser to http://localhost:8080 to see if it works.

Copyright 2018 Sam Rijs and Contributors

Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.