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

databendlabs / openraft / 25172785578 / 1
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 03:05PM UTC
Files 262
Run time 14s
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.546% (-0.04%) from 86.583%
25172785578.1

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

16307 of 18842 relevant lines covered (86.55%)

122410.49 hits per line

Source Files on job 25172785578.1
  • Tree
  • List 262
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25172785578
  • 03c0d6ee on github
  • Prev Job for on main (#25041077250.1)
  • Next Job for on main (#25174421022.1)
  • 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