{"id":13632631,"url":"https://github.com/rust-embedded/embedded-hal","last_synced_at":"2025-05-14T11:08:18.559Z","repository":{"id":39575930,"uuid":"93896299","full_name":"rust-embedded/embedded-hal","owner":"rust-embedded","description":"A Hardware Abstraction Layer (HAL) for embedded systems","archived":false,"fork":false,"pushed_at":"2025-04-14T12:42:33.000Z","size":1584,"stargazers_count":2236,"open_issues_count":136,"forks_count":232,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-05-07T10:52:52.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-embedded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-06-09T20:57:29.000Z","updated_at":"2025-05-06T08:45:05.000Z","dependencies_parsed_at":"2023-02-14T00:45:38.658Z","dependency_job_id":"ed90358f-69f0-4f9f-bde9-8836697cc010","html_url":"https://github.com/rust-embedded/embedded-hal","commit_stats":{"total_commits":604,"total_committers":73,"mean_commits":8.273972602739725,"dds":0.7483443708609272,"last_synced_commit":"9941a6468853c447c892ab64eb78109f0198910d"},"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Fembedded-hal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Fembedded-hal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Fembedded-hal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Fembedded-hal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-embedded","download_url":"https://codeload.github.com/rust-embedded/embedded-hal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129481,"owners_count":22019628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T22:03:09.368Z","updated_at":"2025-05-14T11:08:18.535Z","avatar_url":"https://github.com/rust-embedded.png","language":"Rust","readme":"# `embedded-hal`\n\n\u003e  A Hardware Abstraction Layer (HAL) for embedded systems\n\nThis project is developed and maintained by the [HAL team](https://github.com/rust-embedded/wg#the-hal-team).\n\n\u003e [!IMPORTANT]\n\u003e 📣 `embedded-hal` v1.0 is now released! Check out the [announcement blog post](https://blog.rust-embedded.org/embedded-hal-v1/), the [API documentation](https://docs.rs/embedded-hal) and the [migration guide](docs/migrating-from-0.2-to-1.0.md).\n\n## Scope\n\n`embedded-hal` serves as a foundation for building an ecosystem of platform-agnostic drivers.\n(driver meaning library crates that let a target platform interface an external device like a digital\nsensor or a wireless transceiver).\n\nThe advantage of this system is that by writing the driver as a generic library on top\nof `embedded-hal` driver authors can support any number of target\nplatforms (e.g. Cortex-M microcontrollers, AVR microcontrollers, embedded Linux, etc.).\n\nThe advantage for application developers is that by adopting `embedded-hal` they can unlock all\nthese drivers for their platform.\n\nFor functionality that goes beyond what is provided by `embedded-hal`, users are encouraged\nto use the target platform directly. Abstractions of common functionality can be proposed to be\nincluded into `embedded-hal` as described [in this guide](docs/how-to-add-a-new-trait.md), though.\n\nSee more about the design goals in [this documentation section](https://docs.rs/embedded-hal/latest/embedded_hal/#design-goals).\n\n## Crates\n\nThe main  `embedded-hal` project is not tied to a specific execution model like blocking or non-blocking.\n\n| Crate | crates.io | Docs | |\n|-|-|-|-|\n| [embedded-hal](./embedded-hal)       | [![crates.io](https://img.shields.io/crates/v/embedded-hal.svg)](https://crates.io/crates/embedded-hal) | [![Documentation](https://docs.rs/embedded-hal/badge.svg)](https://docs.rs/embedded-hal) | Core traits, blocking version |\n| [embedded-hal-async](./embedded-hal-async) | [![crates.io](https://img.shields.io/crates/v/embedded-hal-async.svg)](https://crates.io/crates/embedded-hal-async) | [![Documentation](https://docs.rs/embedded-hal-async/badge.svg)](https://docs.rs/embedded-hal-async) | Core traits, async version |\n| [embedded-hal-nb](./embedded-hal-nb)    | [![crates.io](https://img.shields.io/crates/v/embedded-hal-nb.svg)](https://crates.io/crates/embedded-hal-nb) | [![Documentation](https://docs.rs/embedded-hal-nb/badge.svg)](https://docs.rs/embedded-hal-nb) | Core traits, polling version using the `nb` crate |\n| [embedded-hal-bus](./embedded-hal-bus)   | [![crates.io](https://img.shields.io/crates/v/embedded-hal-bus.svg)](https://crates.io/crates/embedded-hal-bus) | [![Documentation](https://docs.rs/embedded-hal-bus/badge.svg)](https://docs.rs/embedded-hal-bus) | Utilities for sharing SPI and I2C buses |\n| [embedded-can](./embedded-can)       | [![crates.io](https://img.shields.io/crates/v/embedded-can.svg)](https://crates.io/crates/embedded-can) | [![Documentation](https://docs.rs/embedded-can/badge.svg)](https://docs.rs/embedded-can) | Controller Area Network (CAN) traits |\n| [embedded-io](./embedded-io)       | [![crates.io](https://img.shields.io/crates/v/embedded-io.svg)](https://crates.io/crates/embedded-io) | [![Documentation](https://docs.rs/embedded-io/badge.svg)](https://docs.rs/embedded-io) | I/O traits (read, write, seek, etc.), blocking and nonblocking version. |\n| [embedded-io-async](./embedded-io-async)       | [![crates.io](https://img.shields.io/crates/v/embedded-io-async.svg)](https://crates.io/crates/embedded-io-async) | [![Documentation](https://docs.rs/embedded-io-async/badge.svg)](https://docs.rs/embedded-io-async) | I/O traits, async version  |\n| [embedded-io-adapters](./embedded-io-adapters)       | [![crates.io](https://img.shields.io/crates/v/embedded-io-adapters.svg)](https://crates.io/crates/embedded-io-adapters) | [![Documentation](https://docs.rs/embedded-io-adapters/badge.svg)](https://docs.rs/embedded-io-adapters) | Adapters between the [`embedded-io`](https://crates.io/crates/embedded-io) and [`embedded-io-async`](https://crates.io/crates/embedded-io-async) traits and other IO traits (`std`, `tokio`, `futures`...)  |\n\n## Documents\n\n- [Migrating from v0.2 to v1.0](docs/migrating-from-0.2-to-1.0.md).\n- [How-to: add a new trait](docs/how-to-add-a-new-trait.md)\n- [MSRV](docs/msrv.md)\n\n## Implementations and drivers\n\nFor a non-exhaustive list of `embedded-hal` implementations and driver crates check the\n[awesome-embedded-rust] list.\n\nYou may be able to find even more HAL implementation crates and driver crates by searching for the\n[`embedded-hal-impl`], [`embedded-hal-driver`] and [`embedded-hal`][embedded-hal-kw] keywords\non crates.io.\n\n[`embedded-hal-impl`]: https://crates.io/keywords/embedded-hal-impl\n[`embedded-hal-driver`]: https://crates.io/keywords/embedded-hal-driver\n[embedded-hal-kw]: https://crates.io/keywords/embedded-hal\n\n[awesome-embedded-rust]: https://github.com/rust-embedded/awesome-embedded-rust#driver-crates\n\n## Minimum Supported Rust Version (MSRV)\n\nThis crate is guaranteed to compile on stable Rust 1.81 and up. It *might*\ncompile with older versions but that may change in any new patch release.\n\nSee [here](docs/msrv.md) for details on how the MSRV may be upgraded.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n  http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n## Code of Conduct\n\nContribution to this repository is organized under the terms of the [Rust Code of\nConduct](CODE_OF_CONDUCT.md), the maintainers of this repository, the [HAL team](https://github.com/rust-embedded/wg#the-hal-team), promise\nto intervene to uphold that code of conduct.\n","funding_links":[],"categories":["Rust","Awesome Tools"],"sub_categories":["Languages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Fembedded-hal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-embedded%2Fembedded-hal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Fembedded-hal/lists"}