8 breaking releases

0.9.0 Sep 24, 2024
0.8.0 Nov 10, 2023
0.7.0 Jun 22, 2023
0.6.0 May 25, 2021
0.1.0 Aug 26, 2020

#63 in Embedded development

Download history 2777/week @ 2024-07-27 3166/week @ 2024-08-03 3891/week @ 2024-08-10 3311/week @ 2024-08-17 4454/week @ 2024-08-24 6374/week @ 2024-08-31 6511/week @ 2024-09-07 5338/week @ 2024-09-14 6620/week @ 2024-09-21 3978/week @ 2024-09-28 3800/week @ 2024-10-05 4149/week @ 2024-10-12 4403/week @ 2024-10-19 3928/week @ 2024-10-26 5124/week @ 2024-11-02 3319/week @ 2024-11-09

17,529 downloads per month
Used in 49 crates (26 directly)

MIT/Apache

21KB
256 lines

embedded-nal

An Embedded Network Abstraction Layer

This crate defines a simple set of traits that can be implemented by almost any TCP/IP stack. This might be an on-chip stack like smoltcp, or it could be an off-chip TCP/IP stack on an AT modem.

API reference

How-to: add a new trait

This is the suggested approach to adding a new trait to embedded-nal

Research / Discussion

Ideally, before proposing a new trait, or set of traits, you should check for an existing issue suggesting the need for the trait, as well as any related works / use cases / requirements that are useful to consider in the design of the trait.

These issues will be labeled as discussion in the issue tracker.

Implementation / Demonstration

Proposed traits should then be implemented and demonstrated, either by forking embedded-nal or by creating a new crate with the intent of integrating this into embedded-nal once the traits have stabilized. You may find cargo workspaces and patch useful for the forking approach.

Proposing a trait

Once the trait has been demonstrated a PR should be opened to merge the new trait(s) into embedded-nal. This should include a link to the previous discussion issue.

If there is determined to be more than one alternative then there should be further discussion to try to single out the best option. Once there is consensus this will be merged into the embedded-nal repository.

These issues / PRs will be labeled as proposals in the issue tracker.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.77.0 and up. It might compile with older versions but that may change in any new patch release.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~12KB