Skip to content

aig787/cargo-udeps-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Rust udeps Action

MIT licensed

This GitHub Action installs and runs cargo-udeps.

Credit to actions-rs/tarpaulin for providing a great starting point.

Example workflow

on: [push]

name: build

jobs:
  check:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install nightly toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true

      - name: Run cargo-udeps
        uses: aig787/cargo-udeps-action@v1
        with:
          version: 'latest'
          args: '--all-targets'

See additional recipes here.

Inputs

Name Required Description Type Default
version The version of cargo-udeps that will be installed. string latest
target Binary target that will be installed. string x86_64-unknown-linux-gnu
args Extra command line arguments that are passed to cargo-udeps. string