embedded-hal

嵌入式系统的硬件抽象层(HAL)。「A Hardware Abstraction Layer (HAL) for embedded systems」

Github星跟踪图

crates.io
crates.io
Documentation
Minimum Supported Rust Version

embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems

This project is developed and maintained by the HAL team.

API reference

Scope

embedded-hal serves as a foundation for building an ecosystem of platform agnostic drivers.
(driver meaning library crates that let a target platform interface an external device like a digital
sensor or a wireless transceiver).

The advantage of this system is that by writing the driver as a generic library on top
of embedded-hal driver authors can support any number of target
platforms (e.g. Cortex-M microcontrollers, AVR microcontrollers, embedded Linux, etc.).

The advantage for application developers is that by adopting embedded-hal they can unlock all
these drivers for their platform.

embedded-hal is not tied to a specific execution model like blocking or non-blocking.

For functionality that goes beyond what is provided by embedded-hal, users are encouraged
to use the target platform directly. Abstractions of common functionality can be proposed to be
included into embedded-hal as described in this guide, though.

See more about the design goals in this documentation section.

Releases

At the moment we are working towards a 1.0.0 release (see #177). During this process we will
release alpha versions like 1.0.0-alpha.1 and 1.0.0-alpha.2.
Alpha releases are not guaranteed to be compatible with each other.
They are provided as early previews for community testing and preparation for the final release.
If you use an alpha release, we recommend you choose an exact version specification in your
Cargo.toml like: embedded-hal = "=1.0.0-alpha.2"

See this guide for a way to implement both an embedded-hal 0.2.x
version and an -alpha version side by side in a HAL.

Documents

Implementations and drivers

For a non-exhaustive list of embedded-hal implementations and driver crates check the
awesome-embedded-rust list.

You may be able to find even more HAL implementation crates and driver crates by searching for the
embedded-hal-impl, embedded-hal-driver and embedded-hal keywords
on crates.io.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.54 and up. It might
compile with older versions but that may change in any new patch release.

See here for details on how the MSRV may be upgraded.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.

Code of Conduct

Contribution to this crate is organized under the terms of the Rust Code of
Conduct
, the maintainer of this crate, the HAL team, promises
to intervene to uphold that code of conduct.

主要指标

概览
名称与所有者rust-embedded/embedded-hal
主编程语言Rust
编程语言Rust (语言数: 1)
平台Linux, Mac, Windows
许可证Apache License 2.0
所有者活动
创建于2017-06-10 04:57:29
推送于2025-10-23 16:44:29
最后一次提交2025-10-23 16:43:05
发布数73
最新版本名称embedded-io-v0.7.1 (发布于 )
第一版名称v0.1.0 (发布于 2018-01-17 06:46:14)
用户参与
星数2.4k
关注者数67
派生数248
提交数1k
已启用问题?
问题数272
打开的问题数117
拉请求数329
打开的拉请求数27
关闭的拉请求数86
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?