• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 25173291568
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 30 Apr 2026 03:14PM UTC
Jobs 1
Files 262
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2026 02:53PM UTC coverage: 86.573% (-0.01%) from 86.583%
25173291568

push

github

drmingdrmer
feat: config: make clap dependency optional

Move `clap` and `byte-unit` behind a new `clap` feature flag (kept in
`default = [...]` for backward compatibility). Library users who never
parse `Config` from CLI args can opt out and drop both dependencies
entirely.

The previous `Default for Config` impl ran clap's parser at runtime
on an empty arg list — `<Self as Parser>::parse_from(Vec::<&'static
str>::new())` — to recover compile-time-known defaults. That coupled
`Default` to clap and incurred a parse-and-validate cycle on every
`Config::default()`. It is now direct field assignment, sourced from
a new internal `Defaults` struct + `DEFAULTS` const that also feeds
clap's `default_value_t` attributes — single source of truth for both
code paths.

`Config::build`, `parse_bytes_with_unit`, and `parse_snapshot_policy`
are gated behind the `clap` feature. Clap-only tests moved into
`config_clap_test.rs` so the feature gate applies once at module
scope instead of repeating on each `#[test]`.

- Fix: #1742

166 of 166 new or added lines in 2 files covered. (100.0%)

5 existing lines in 2 files now uncovered.

16312 of 18842 relevant lines covered (86.57%)

120266.1 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
88.89
-11.11% openraft/src/core/sm/handle.rs
2
96.62
-0.97% openraft/src/replication/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 25173291568.1 30 Apr 2026 03:14PM UTC 262
86.57
GitHub Action Run
Source Files on build 25173291568
  • Tree
  • List 262
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25173291568
  • 03c0d6ee on github
  • Prev Build on main (#25041077250)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc