Ivan's Blog
项目实践

bq25730-rs

Rust no_std driver crate for TI BQ25730 (battery/charger management), built on embedded-hal with async/sync support. Evidence: Cargo.toml, src/.

  • embedded-hal driver
  • I2C
  • Battery management

目录

技术栈

运行与交付

CI 工作流
  • build.yml
  • release.yml
能力标记
  • cargo_toml
  • github_actions
JSON

Basics

Rust no_std driver crate for TI BQ25730 (battery/charger management), built on embedded-hal with async/sync support. Evidence: Cargo.toml, src/.

Taxonomy

  • Tags: embedded-hal driver, I2C, Battery management

Architecture

  • Library crate with a feature-based API surface for sync/async usage patterns. Evidence: Cargo.toml, src/lib.rs.
  • Example/tests (if present) typically live under examples/ / tests/ for validating protocol behavior. Evidence: Cargo.toml, tests/.

Conventions

  • no_std-oriented crate metadata and embedded keywords. Evidence: Cargo.toml.
  • Common embedded repo hygiene via toolchain/hook config when present. Evidence: rust-toolchain.toml, lefthook.yml.

Taste notes

The “sync + async” feature strategy is a solid default for embedded drivers: it keeps the core API stable while allowing async adopters to opt in.