{"id":20446288,"url":"https://github.com/rust-embedded/linux-embedded-hal","last_synced_at":"2025-04-14T02:58:05.688Z","repository":{"id":39643282,"uuid":"117756143","full_name":"rust-embedded/linux-embedded-hal","owner":"rust-embedded","description":"Implementation of the `embedded-hal` traits for Linux devices","archived":false,"fork":false,"pushed_at":"2025-02-07T09:21:52.000Z","size":177,"stargazers_count":258,"open_issues_count":21,"forks_count":46,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-14T02:57:50.520Z","etag":null,"topics":["embedded","embedded-hal","linux","rust"],"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":"CHANGELOG.md","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}},"created_at":"2018-01-16T23:34:53.000Z","updated_at":"2025-04-04T04:39:13.000Z","dependencies_parsed_at":"2024-06-18T20:09:35.679Z","dependency_job_id":"b2f90094-29cd-4c6e-aec1-eb4dee4929f9","html_url":"https://github.com/rust-embedded/linux-embedded-hal","commit_stats":{"total_commits":107,"total_committers":24,"mean_commits":4.458333333333333,"dds":0.6728971962616823,"last_synced_commit":"1f97fd4b24e21c378ce8dc171d41d5de6a23ff1a"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Flinux-embedded-hal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Flinux-embedded-hal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Flinux-embedded-hal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Flinux-embedded-hal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-embedded","download_url":"https://codeload.github.com/rust-embedded/linux-embedded-hal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813786,"owners_count":21165632,"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":["embedded","embedded-hal","linux","rust"],"created_at":"2024-11-15T10:18:54.833Z","updated_at":"2025-04-14T02:58:05.657Z","avatar_url":"https://github.com/rust-embedded.png","language":"Rust","readme":"[![crates.io](https://img.shields.io/crates/d/linux-embedded-hal.svg)](https://crates.io/crates/linux-embedded-hal)\n[![crates.io](https://img.shields.io/crates/v/linux-embedded-hal.svg)](https://crates.io/crates/linux-embedded-hal)\n[![Documentation](https://docs.rs/linux-embedded-hal/badge.svg)](https://docs.rs/linux-embedded-hal)\n![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.65+-blue.svg)\n\n# `linux-embedded-hal`\n\n\u003e Implementation of the [`embedded-hal`] traits for Linux devices\n\nThis project is developed and maintained by the [Embedded Linux team][team].\n\n[`embedded-hal`]: https://crates.io/crates/embedded-hal\n\n## [Documentation](https://docs.rs/linux-embedded-hal)\n\n## GPIO character device\n\nSince Linux kernel v4.4 the use of sysfs GPIO was deprecated and replaced by the character device GPIO.\nSee [gpio-cdev documentation](https://github.com/rust-embedded/gpio-cdev#sysfs-gpio-vs-gpio-character-device) for details.\n\nThis crate includes feature flag `gpio_cdev` that exposes `CdevPin` as wrapper around `LineHandle` from [gpio-cdev](https://crates.io/crates/gpio-cdev).\nTo enable it update your Cargo.toml. Please note that in order to prevent `LineHandle` fd from closing you should\nassign to a variable, see [cdev issue](https://github.com/rust-embedded/gpio-cdev/issues/29) for more details.\n```\nlinux-embedded-hal = { version = \"0.4\", features = [\"gpio_cdev\"] }\n```\n\n`SysfsPin` can be still used with feature flag `gpio_sysfs`.\n\nWith `default-features = false` you can enable the features `gpio_cdev`, `gpio_sysfs`, `i2c`, and `spi` as needed.\n\n## Minimum Supported Rust Version (MSRV)\n\nThis crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might*\ncompile with older versions but that may change in any new patch release.\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 crate is organized under the terms of the [Rust Code of\nConduct][CoC], the maintainer of this crate, the [HAL team][team], promises\nto intervene to uphold that code of conduct.\n\n[CoC]: CODE_OF_CONDUCT.md\n[team]: https://github.com/rust-embedded/wg/#the-embedded-linux-team\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Flinux-embedded-hal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-embedded%2Flinux-embedded-hal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Flinux-embedded-hal/lists"}