Skip to content

Bump epics-rs to 0.24.0 - #5

Merged
physwkim merged 1 commit into
mainfrom
chore/bump-epics-0.24
Jul 17, 2026
Merged

physwkim merged 1 commit into
mainfrom
chore/bump-epics-0.24

Conversation

@physwkim

Copy link
Copy Markdown
Owner

Bumps the EPICS backends epics-ca-rs / epics-base-rs / epics-pva-rs
from 0.22.x to 0.24.0
. Scoped to rsdm's ca / pva / calc features;
rsplot and adl2rsdm carry no EPICS dependency.

0.24 has three breaking API changes, adapted at source:

  • ConnectionEvent::Unresponsive removed. 0.24 folds the echo-timeout into
    Disconnected — an unresponsive circuit disconnects every consumer, and the
    distinction now survives only inside the client's ChannelState (to select
    the recovery path). The ca_plugin loop already handled both arms identically,
    so it collapses to Disconnected.
  • pvrpc returns RpcReply instead of a (FieldDesc, PvField) tuple. The
    new enum has an Empty variant for pvxs's no-value ExecOp::reply(). The
    plugin reads the value through RpcReply::into_value, mapping Empty to the
    existing "connected, no scalar sample" branch.
  • EnumInfo became #[non_exhaustive] (it gained a string_form). A
    ca_plugin test constructs it with EnumInfo::new, which fills both slots from
    one label list — correct for its two-state enum.

No release; version stays at 0.5.4 and the bump is recorded under
## [Unreleased] in the CHANGELOG.

Verification

Full workspace on --all-features: cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo nextest run --workspace --all-features (2349 workspace tests + 432 rsdm tests, including
the in-process CaServer/PvaServer round-trips that exercise the changed APIs)
and cargo test --doc --workspace --all-features all pass.

From 0.22.x. Scoped to rsdm's ca/pva/calc features; rsplot and adl2rsdm carry
no EPICS dependency. Three breaking API changes in 0.24 were adapted at source:

- epics-ca-rs dropped `ConnectionEvent::Unresponsive`: an unresponsive circuit
  now surfaces as `Disconnected` (the client keeps the distinction only
  internally, to pick its recovery path). The two arms already did the same
  thing in the ca_plugin connection loop, so this collapses to `Disconnected`.
- epics-pva-rs `pvrpc` now returns `RpcReply` (an enum) instead of a
  `(FieldDesc, PvField)` tuple, with an `Empty` variant for pvxs's no-value
  `ExecOp::reply()`. The plugin reads the value via `RpcReply::into_value`;
  `Empty` maps to the existing "connected, no scalar sample" branch.
- epics-base-rs `EnumInfo` became `#[non_exhaustive]` (gained `string_form`);
  a ca_plugin test builds it with `EnumInfo::new`, which fills both slots from
  one label list — correct for its two-state enum.

Verified with the full workspace on --all-features: fmt, clippy -D warnings,
nextest (2349 workspace + 432 rsdm incl. in-process CaServer/PvaServer
round-trips), and doctests all pass.
@physwkim
physwkim merged commit 3d20b6b into main Jul 17, 2026
4 checks passed
@physwkim
physwkim deleted the chore/bump-epics-0.24 branch July 17, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant