esp-hal VS esp-wifi

Compare esp-hal vs esp-wifi and see what are their differences.

esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers (by esp-rs)

esp-wifi

A WiFi, Bluetooth and ESP-NOW driver for use with Espressif chips and bare-metal Rust (by esp-rs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
esp-hal esp-wifi
3 7
565 377
3.7% 4.5%
9.8 8.9
7 days ago 10 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

esp-hal

Posts with mentions or reviews of esp-hal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-30.
  • Rust on Espressif chips – 29-09-2023
    2 projects | news.ycombinator.com | 30 Sep 2023
    In the esp-hal, they appear to offer both sync and async I2C implementations, depending on what works best for an application. Since the async implementation is gated by a feature, it may not show up in the docs you linked.

    Async implementation: https://github.com/esp-rs/esp-hal/blob/main/esp-hal-common/s...

    You can also see the async feature mentioned here: https://docs.rs/crate/esp32s2-hal/latest/features

  • The Embedded Rust ESP Development Ecosystem
    7 projects | dev.to | 15 Sep 2023
    Going another level up the chain, we then have the hardware abstraction layer (HAL) crate. HAL crates are supposed to offer more portability and user-friendly API for a particular processor. For ESP devices the different hals are captured in the esp-hal repository. This occurs by implementing some common traits defined in what is referred to as the embedded-hal. Additionally, the device HAL attempts to incorporate mechanisms, or wrappers around lower-level functions, that are part of the Rust safety model.
  • How to write HALs and get into microcontroller programming
    2 projects | /r/rust | 13 Sep 2022
    There is https://docs.rust-embedded.org/book/design-patterns/hal/index.html but I wonder what OP is missing in https://github.com/esp-rs/esp-hal

esp-wifi

Posts with mentions or reviews of esp-wifi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-30.
  • Rust on Espressif chips – 29-09-2023
    2 projects | news.ycombinator.com | 30 Sep 2023
    Good question! As far as I can tell from the docs, it looks like I2C is still synchronous [1], but this will be my first async embedded Rust project, so I'm still unfamiliar with the general shape and functionality of things.

    For comparison, things like WiFi are definitely async [2]

    [1] https://docs.rs/esp32s2-hal/latest/esp32s2_hal/i2c/index.htm...

    [2] https://github.com/esp-rs/esp-wifi/blob/main/examples-esp32s...

  • The Embedded Rust ESP Development Ecosystem
    7 projects | dev.to | 15 Sep 2023
    Among these several abstractions, we can program a microcontroller device at any level we like. Additionally, we can develop code with a mix of low-level and high-level abstractions. Obviously, to make code more portable it's better to stick to higher-level abstractions. Also in addition to the above, there exists other crates supporting other functions in no-std development. These include wifi services in the esp-wifi repository, heap allocators in the esp-alloc repository, logging features in the esp-println repository, exception handlers in the esp-backtrace repository, and finally embedded storage traits in the esp-storage repository.
  • ESP32-C3 Wireless Adventure: A Comprehensive Guide to IoT [pdf]
    9 projects | news.ycombinator.com | 14 Jun 2023
    I haven't done much with it yet, but I'm excited about the bare-metal (no_std) rust support for the esp32c3 (as opposed to some other variants that require a custom toolchain as I understand it).

    Lots of details at <https://mabez.dev/blog/posts/>, and some examples of wifi on bare-metal at <https://github.com/esp-rs/esp-wifi>.

    I hope to eventually get it working with MQTT (there may be examples already, I haven't yet looked in-depth), at which point I think this will be my go-to for the majority of my IOT projects going forward!

  • Switching from C++ to Rust
    7 projects | news.ycombinator.com | 13 Mar 2023
    Esp-wifi is very actively being updated, looks like C3 is supposed to work[0][1], so if you tried more than a few weeks ago it probably changed.

    [0]: https://github.com/esp-rs/esp-wifi#current-support

  • Rust for Embedded Development (e.g. microcontrollers)
    5 projects | /r/rust | 6 Dec 2022
    I previously used the esp32-c3 both with bare-metal and with the idf in rust, but I did not like the experience. With the idf you get poor ide support and poor documentation and with bare metal you used to get no wifi at all, but the experience is a lot better. I have seen the new rust wifi driver https://github.com/esp-rs/esp-wifi and i am very interested, but this is still a sync driver afaik.
  • Embedded Rust Development
    9 projects | /r/embedded | 30 Jul 2022
    Also got an ESP32C3 to connect to my wifi network, which was really exciting: https://github.com/esp-rs/esp-wifi
  • ESP32 Packet Sniffing and Manipulation
    1 project | /r/rust | 14 Apr 2022
    Check the project https://github.com/esp-rs/esp-wifi, it implement bindings to the official SDK.

What are some alternatives?

When comparing esp-hal and esp-wifi you can also consider the following projects:

esp32-phantom - ESP32 Rust-based WiFi and BLE sandbox

esp-idf-svc - Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)

linux-embedded-hal - Implementation of the `embedded-hal` traits for Linux devices

rust-esp32-std-demo - Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.

esp-idf-hal - embedded-hal implementation for Rust on ESP32 and ESP-IDF

esp-idf-template - Template application for https://github.com/espressif/esp-idf

esp-pacs - Peripheral Access Crates for Espressif SoCs and modules

esp-storage - implementation of embedded-storage traits to access unencrypted ESP32 flash

mo - 🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)

esp-println - Provides print! and println! implementations various Espressif devices

espup - Tool for installing and maintaining Espressif Rust ecosystem.