11 releases (1 stable)

1.0.0 Jan 9, 2024
1.0.0-rc.3 Dec 14, 2023
1.0.0-rc.2 Nov 29, 2023
0.2.0-alpha.2 Jul 4, 2023
0.1.0-alpha.1 May 26, 2022

#1510 in Embedded development

Download history 11860/week @ 2024-07-01 11654/week @ 2024-07-08 14222/week @ 2024-07-15 12076/week @ 2024-07-22 11741/week @ 2024-07-29 13752/week @ 2024-08-05 15117/week @ 2024-08-12 15975/week @ 2024-08-19 20405/week @ 2024-08-26 22853/week @ 2024-09-02 18732/week @ 2024-09-09 19510/week @ 2024-09-16 19603/week @ 2024-09-23 14690/week @ 2024-09-30 15616/week @ 2024-10-07 17770/week @ 2024-10-14

68,876 downloads per month
Used in 283 crates (165 directly)

MIT/Apache

78KB
804 lines

crates.io crates.io Documentation

embedded-hal-async

An asynchronous Hardware Abstraction Layer (HAL) for embedded systems.

This crate contains asynchronous versions of the embedded-hal traits and shares its scope and design goals.

This project is developed and maintained by the HAL team.

Serial/UART traits

There is no serial traits in embedded-hal-async. Instead, use embedded-io-async. A serial port is essentially a byte-oriented stream, and that's what embedded-io-async models. Sharing the traits with all byte streams has some advantages. For example, it allows generic code providing a command-line interface or a console to operate either on hardware serial ports or on virtual ones like Telnet or USB CDC-ACM.

Optional Cargo features

  • defmt-03: Derive defmt::Format from defmt 0.3 for enums and structs.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.75 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.

Dependencies

~155KB