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

databendlabs / openraft
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Repo Added 15 Oct 2024 03:30AM UTC
Token P5ILmy9rYJlcs7uJCddenHVVu1Bywo1mI regen
Build 443 Last
Files 264
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

LAST BUILD ON BRANCH release-0.10
branch: release-0.10
CHANGE BRANCH
x
Reset
Sync Branches
  • release-0.10
  • main
  • release-0.9

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

Relevant lines Covered
Build:
Build:
18842 RELEVANT LINES 16312 COVERED LINES
120266.1 HITS PER LINE
Source Files on release-0.10
  • Tree
  • List 262
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25173291568 release-0.10 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 depend... push 30 Apr 2026 03:14PM UTC drmingdrmer github
86.57
22706407530 release-0.10 fix: check crates.io remote API instead of local index for published versions `cargo info` queries the local registry index cache, which may be stale and incorrectly report a version as published. Query the crates.io REST API directly to get an a... push 05 Mar 2026 07:06AM UTC drmingdrmer github
87.78
20691485704 release-0.10 feat: add `Raft::write_blank()` method to write blank log entries Adds a public method allowing clients to write `EntryPayload::Blank` directly. Blank entries are useful to commit entries from previous terms, advance the commit index, or act as a... push 04 Jan 2026 10:25AM UTC drmingdrmer github
87.63
20484582896 release-0.10 refactor: move async-runtime test suite to `openraft-rt` crate Move the `Suite` test harness from openraft to openraft-rt where it belongs. This allows other async runtime implementations to use the same test suite without depending on the entire... push 24 Dec 2025 10:56AM UTC drmingdrmer github
91.98
19487123604 release-0.10 chore: rename RaftMsg::CheckIsLeaderRequest to EnsureLinearizableRead Changes - Rename `RaftMsg::CheckIsLeaderRequest` to `EnsureLinearizableRead` - Rename `CheckIsLeaderError` to `LinearizableReadError`, `CheckIsLeaderError` is still kept for... push 19 Nov 2025 02:06AM UTC drmingdrmer github
92.14
19420903065 release-0.10 chore: StorageHelper creates default Vote when absent push 17 Nov 2025 06:50AM UTC drmingdrmer github
92.18
19408983669 release-0.10 feat: add `Deref`, `DerefMut`, and `From<int>` for `CommittedLeaderId` Enable direct term access and convenient creation of `CommittedLeaderId` from integer types. In std mode, `CommittedLeaderId` is just a wrapper of `C::Term`, which is an integ... push 16 Nov 2025 05:03PM UTC drmingdrmer github
92.23
19403608136 release-0.10 feat: add convenience API methods to Raft Add simple getter methods inspired by JRaft's API design to improve ergonomics when querying basic cluster state information. Changes: - Add is_leader() method to check leader status - Add node_id() meth... push 16 Nov 2025 09:35AM UTC drmingdrmer github
92.17
19392786779 release-0.10 feat: add changed and next methods to WatchProgress Add two new methods to WatchProgress for watching value changes. The changed() method provides low-level change notifications, while next() offers a convenience method for getting the next chang... push 15 Nov 2025 04:58PM UTC drmingdrmer github
92.08
19390656609 release-0.10 fix: prevent heartbeat-induced log reversion panic Use per-follower matching log id in heartbeat `prev_log_id` instead of committed log id to prevent false reversion detection when followers fall behind. Problem: When using committed log id `c`... push 15 Nov 2025 01:44PM UTC drmingdrmer github
92.13
See All Builds (443)

Badge your Repo: openraft

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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