← Back to Pull requests

Add blog post: Rust smoltcp as an alternative TCP/IP stack for ESP-IDF #742

Closed
unknown closed this pull request without merging on Jun 12, 2026 15:05 UTC
View on GitHub
unknown unknown commented on Jun 10, 2026 18:10 UTC
Author

📝 Description

A new community article introducing esp-smoltcp — a set of ESP-IDF components that run the Rust smoltcp stack as the IPv4/IPv6 data plane while keeping the IDF networking stack (esp_http_server, esp-tls, esp_http_client, esp-mqtt, mbedTLS) working without source changes.

The article covers:

  • The linker --wrap BSD-socket shim that redirects lwip_* calls to smoltcp, so application and IDF networking source is unmodified.

  • The single-task poll architecture, the slab-allocated RX frame pool, and the no_std Rust glue layer.

  • Measured throughput on a Waveshare ESP32-P4-Nano: 91.15 Mbit/s sustained on the built-in 100 Mbit/s EMAC (~96% of practical wire-line max), 0 TX failures / 0 frame-pool drops across 200 MiB.

  • The select()/VFS issue and the esp_vfs_register_fd_range() fix that removes the original CONFIG_VFS_SUPPORT_SELECT=n workaround.

  • Honest current limitations (P4-only hardware verification, ESP-Hosted Wi-Fi path untested, no SLAAC/DHCPv6, minimal bundled DNS).
  • This was written following the suggestion in espressif/esp-idf#18549 (cc @david-cermak), where the --wrap approach and the VFS fix were discussed.

    Ready for technical/editorial review.

    Publish date

    Expected publish date: 2026-06-19 (per review suggestion).

    Review process

  • Initiate technical review

  • Once tech review mostly done, initiate editorial review
  • Checks

  • Article folder and file names:

  • - Folder path is content/blog/2026/06/rust-smoltcp-network-stack-for-esp-idf
    - Folder and file names have no underscores, spaces, or uppercase letters
  • New article's YAML frontmatter: title, date: 2026-06-19, summary, authors (sylwester-sosnowski, new author page + data entry + avatar), tags

  • Updated article's YAML frontmatter: N/A (new article)

  • Article media files:

  • - Author avatar is .webp, ~11 KB (well under the 500 KB limit)
    - featureAsset reuses the shared img/featured/featured-rust.webp
    - No raw HTML; the architecture diagram is a fenced code block
  • Links in articles: all links checked; no Google Docs links; no ESP-IDF stable/latest documentation links

  • Git history: single clean commit, Conventional Commits message, branch based on main
  • 🔗 Related

  • Follows RFC espressif/esp-idf#18549 — "[RFC] Rust smoltcp as alternative IPv4 data plane for ESP-IDF"

  • Project repository: https://github.com/DatanoiseTV/esp-smoltcp

  • Component Registry: esp_smoltcp, esp_smoltcp_lwip_compat
  • 🧪 Testing (Hugo)

  • Frontmatter, folder/date consistency, featureAsset, author entry, and trailing-whitespace were validated against the rules in tools/ci/check_article_details.sh.

  • Hugo is not installed in my environment, so I have not run a local hugo server build; relying on this PR's CI for the Hugo build and author-presence check. Happy to fix anything CI flags.
  • Diff: 389 lines (+291 / -98) across 4 files Reviewer: f-hollow Review duration: 2695m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 389 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.357
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #742"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17% · Safe to merge
    17%