Skip to content

Conversation

@AlixANNERAUD
Copy link
Contributor

@AlixANNERAUD AlixANNERAUD commented Jan 25, 2026

This pull request introduces a new network stack implementation for the standard drivers, replacing the previous embassy-net dependency with smoltcp, and adds support for TUN/TAP network interfaces. It also refactors several modules to streamline initialization and device mounting, and updates error handling for improved consistency. The most important changes are grouped below:

Network stack migration and TUN/TAP support:

  • Replaced embassy-net with smoltcp in Cargo.toml and updated dependencies accordingly. [1] [2]
  • Added a new tuntap module in drivers/std/src/tuntap, implementing TUN/TAP network interface setup and management, including system commands for interface creation and configuration. [1] [2]
  • Updated the workspace and feature dependencies in Cargo.toml to include the new network and smoltcp crates. [1] [2]

Refactoring and initialization improvements:

  • Refactored the virtual file system initialization in examples/native/src/main.rs to remove the unused None parameter and streamline the device mounting process. [1] [2]
  • Updated the executable mounting and initialization logic in examples/native/src/main.rs for better clarity and modularity.

Module and error handling cleanup:

  • Removed obsolete network/error.rs and network/resolver.rs modules, and updated drivers/std/src/network/mod.rs to reflect these changes. [1] [2] [3]
  • Updated error mapping in drivers/std/src/io.rs to use InvalidParameter instead of InvalidPath for InvalidInput errors, improving consistency.
  • Added a Default implementation for MemoryManager in drivers/std/src/memory.rs for easier instantiation.

Minor code improvements:

  • Simplified error handling in drivers/shared/src/devices/hash.rs by replacing ok_or_else with ok_or. [1] [2] [3] [4]
  • Minor code organization and import fixes in various modules, such as file_manager.rs.

These changes collectively modernize the network support, improve initialization routines, and clean up the codebase for better maintainability. code from VirtualFileSystem**

@AlixANNERAUD AlixANNERAUD linked an issue Jan 25, 2026 that may be closed by this pull request
@AlixANNERAUD AlixANNERAUD merged commit 32d1e0f into main Jan 25, 2026
1 of 2 checks passed
@AlixANNERAUD AlixANNERAUD deleted the 136-integrate-smoltcp-stack branch January 25, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate smoltcp stack

2 participants