battery-service: Re-export `embassy_time::Duration`

Open
#896 0 comments 0 reactions 1 assignee View on GitHub

@bjackson312006 is already working on this.

Since Jun 15, 2026.

Assessment

This issue has not been assessed yet.

Description

Description

The embassy_time::Duration type is exposed in battery-service's public API via get_timeout() and set_timeout() from controller.rs, but is not re-exported. This creates annoying dependency issues where, to implement the Controller trait, users of battery-service need to pull embassy-time into their project and hardcode it at the exact version battery-service uses.

Proposed Solution

In either controller.rs or lib.rs, add a pub use embassy_time::Duration; to re-export the type.

Dominant language
Rust
Stars
25
Forks
54
Avg merge
3d 9h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenDevicePartnership/embedded-services

All issues in OpenDevicePartnership/embedded-services

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.