smoltcp | xous-core | |
---|---|---|
9 | 12 | |
3,566 | 508 | |
1.5% | 1.8% | |
8.8 | 9.9 | |
3 days ago | 6 days ago | |
Rust | Rust | |
BSD Zero Clause License | Apache License 2.0 |
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.
smoltcp
-
Implementing TCP in Rust
There is also the Rust TCP/IP stack https://github.com/smoltcp-rs/smoltcp which is not mentioned as reference (and it's probably more useful to have a look there than querying ChatGPT).
- RFC2217 implementation written in Rust
-
Create TCP connection with Pnet
Trying to dig out a link for you, will edit when I find it; TCP and Layer 4 raw sockets do not play nicely together on many platforms. You’ll probably have to send at the datalink layer and/or use something like https://github.com/smoltcp-rs/smoltcp
-
Introduction to TCP and Sockets
This seems close to what you're asking for: https://github.com/smoltcp-rs/smoltcp
A small-ish tcp/ip stack, in rust.
- smoltcp is a standalone, event-driven TCP/IP stack that is designed for bare-metal, real-time systems. Its design goals are simplicity and robustness.
-
Rust embedded and networking
You can look into smoltcp
-
What are some low level networking libraries that y'all recommend?
smoltcp
-
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
This here is a kernel including a memory-safe TCP/IP stack (https://github.com/smoltcp-rs/smoltcp/), and not having it crash or be full of security vulnerabilities due to preventable memory corruption is a quality beyond personal language preferences.
-
Let's suppose for a minute that I've COMPLETELY lost my mind
Oh, and you also probably want to check out smoltcp, a userspace/"no operating system required" networking stack that we often use in embedded rust.
xous-core
- Rust 1.72 seems to optimize away security checks
-
Writing an OS in Rust to run on RISC-V
Xous, the OS that runs on the precursor, may be of interest to look at too:
https://github.com/betrusted-io/xous-core
It is written in Rust and is targeted for a RISC-V
-
Is there any reliable guide for creating an operating system in Rust?
In addition to phil-opp and redox, there's the Betrusted project's Xous kernel, which runs on a RISC-V core that runs on an FPGA. There's even an Xous Book.
- How can I call cargo commands from rust?
-
Another Vulnerability in the LPC55S69 ROM
You might be interested in Precursor and the Betrusted Platform.
https://www.crowdsupply.com/sutajio-kosagi/precursor
They are trying to have an hardware platform that can be inspected and it is based on an FPGA with a RISC-V Softcore.
Its by Bunnie, and he great talks about the choices and why he made them:
Keynote: Precursor - Trustable Open Hardware for Everyday Use - Bunnie Huang (https://www.youtube.com/watch?v=Fw5FEuGRrLE)
They are also doing their own Rust Message passing OS called Xous that might be of interest.
https://github.com/betrusted-io/xous-core
-
C Isn't A Programming Language Anymore - Faultlore
As for privacy and safety of people, https://github.com/betrusted-io/xous-core/issues/57 way past 1.0. Imagine that. Heh.
-
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
There are more good efforts, the BeTrusted guys are working on Xous, its a microkernel for a phone like device called the Precurser.
https://github.com/betrusted-io/xous-core
As a embedded service processor OS for a big server rack, Oxide Computer is working on 'HubrisOS'. They seem to have not released it yet, but that will be open sourced.
https://github.com/oxidecomputer
Those are two efforts where I know real resources are going into.
- Xous: Secure Microkernel in Rust
- xous: Secure microkernel in Rust
What are some alternatives?
embassy - Modern embedded framework, using Rust and async.
pico-bootrom
rust-raspberrypi-OS-tutorials - :books: Learn to write an embedded OS in Rust :crab:
NoProto - Flexible, Fast & Compact Serialization with RPC
tock - A secure embedded operating system for microcontrollers
headcrab - A modern Rust debugging library 🦀
mosys
carnet - A Tool for Sandboxing Cargo and Buildscripts
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
osv - OSv, a new operating system for the cloud.
OpenSK - OpenSK is an open-source implementation for security keys written in Rust that supports both FIDO U2F and FIDO2 standards.
kerla-demo - ssh://demo.kerla.dev