{"id":59558,"library":"embedded-hal-bus","title":"Embedded HAL Bus","description":"Bus/Device connection mechanisms for embedded-hal, a Hardware Abstraction Layer for embedded systems.","status":"active","version":"0.3.0","language":"rust","source_language":null,"source_url":"https://github.com/rust-embedded/embedded-hal","tags":["embedded","hal","i2c","bus","hardware"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nembedded-hal-bus = \"0.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add embedded-hal-bus","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"I2cBus","correct":"use embedded_hal_bus::i2c::I2cBus;"}],"quickstart":{"code":"use embedded_hal_bus::i2c::I2cBus;\nuse embedded_hal::i2c::I2c;\n// Requires an I2C peripheral implementing I2c\n// let bus = I2cBus::new(i2c_peripheral);","lang":"rust","description":"Creates an I2C bus from an embedded-hal I2C peripheral."},"warnings":[{"fix":"Add a HAL crate for your microcontroller (e.g., stm32f4xx-hal).","message":"Requires an embedded-hal implementation for your specific hardware.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'abstract':13 'bus':3,21 'bus/device':4 'connect':5 'embed':1,9,16,18 'embedded-h':8 'hal':2,10,19 'hardwar':12,22 'i2c':20 'layer':14 'mechan':6 'system':17","created_at":"2026-06-16T17:08:16.386870+00:00","updated_at":"2026-06-16T17:08:16.386870+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rust-embedded/embedded-hal","github":"https://github.com/rust-embedded/embedded-hal","docs":"https://docs.rs/embedded-hal-bus/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}