cargo-llvm-cov vs Tarpaulin
cargo-llvm-cov
github.comTarpaulin
github.comSide by side
| Figure | cargo-llvm-cov | Tarpaulin |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 0 |
| Spec score · Test Coverage Tools | 8.1 (#8) | 6.9 (#24) |
| CI integrations | The README provides GitHub Actions examples for uploading reports to Codecov and a GitLab CI example using Cobertura output. | The README documents CI use with Travis CI, CircleCI, Jenkins, Codeship, Semaphore, Azure Pipelines, GitHub Actions, and GitLab Pipelines; it says Jenkins is the only one tested among Circle, Semaphore, Jenkins, and Codeship metadata support. |
| Installation | It can be installed from source with Cargo, as a prebuilt release binary, through GitHub Actions, Homebrew, Scoop, cargo-binstall, pacman, or FreeBSD ports. | Tarpaulin is a command-line program installed with Cargo, and the README also mentions Nix and cargo-binstall installation options. |
| License | The project is available under either the Apache License 2.0 or the MIT License, at the user's option. | Tarpaulin is licensed under both MIT and Apache License 2.0. |
| Purpose | cargo-llvm-cov is a Cargo subcommand that wraps rustc’s LLVM source-based code coverage instrumentation. | Tarpaulin is a code coverage reporting tool for Rust projects using the Cargo build system. |
Plans
In their own words
cargo-llvm-cov
cargo-llvm-cov is a Cargo subcommand that uses rustc’s LLVM source-based instrumentation to generate code coverage reports. It works with cargo test, cargo run, and cargo nextest through a Cargo-compatible command-line interface, and supports proc-macro UI tests. Line and region coverage are available; branch coverage is optional and requires nightly Rust. Doc-test coverage is also optional and requires nightly features. Reports can be generated as text, HTML, JSON, LCOV, Cobertura XML, or Codecov Custom Coverage format. The project provides GitHub Actions examples for uploading reports to Codecov and a GitLab CI example using Cobertura output. LCOV results can be viewed in VS Code with the Coverage Gutters extension. With compatible Clang and LLVM tools configured, the tool can include C and C++ code linked to a Rust library or binary. It supports Linux, macOS, and Windows, and is licensed under either Apache-2.0 or MIT at the user's choice. Installation requires rustc 1.87 or newer, while running it requires Cargo 1.60 or newer. Branch and doc-test coverage are unstable and have known issues, respectively.