https://github.com/zealloc/framez
A zerocopy codec for encoding and decoding data in no_std environments
https://github.com/zealloc/framez
async embedded rust zerocopy
Last synced: 7 months ago
JSON representation
A zerocopy codec for encoding and decoding data in no_std environments
- Host: GitHub
- URL: https://github.com/zealloc/framez
- Owner: zealloc
- License: apache-2.0
- Created: 2025-05-21T16:47:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-30T12:44:00.000Z (8 months ago)
- Last Synced: 2025-11-07T13:05:46.325Z (8 months ago)
- Topics: async, embedded, rust, zerocopy
- Language: Rust
- Homepage: https://crates.io/crates/framez
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# framez

[](https://crates.io/crates/framez)
[](https://crates.io/crates/framez)
[](https://docs.rs/framez)
[](https://crates.io/crates/framez)
[](https://crates.io/crates/framez)
A `zerocopy` codec for encoding and decoding data in `no_std` environments.
This crate is based on [`embedded_io_async`](https://docs.rs/embedded-io-async/latest/embedded_io_async/)'s
[`Read`](https://docs.rs/embedded-io-async/latest/embedded_io_async/trait.Read.html) and [`Write`](https://docs.rs/embedded-io-async/latest/embedded_io_async/trait.Write.html) traits.
It's recommended to use [`embedded_io_adapters`](https://docs.rs/embedded-io-adapters/0.6.1/embedded_io_adapters/) if you are using other async `Read` and `Write` traits like [`tokio`](https://docs.rs/tokio/latest/tokio/index.html)'s [`AsyncRead`](https://docs.rs/tokio/latest/tokio/io/trait.AsyncRead.html) and [`AsyncWrite`](https://docs.rs/tokio/latest/tokio/io/trait.AsyncWrite.html).
See the examples for more information.
## Features
- `log`: Enables logging using [`log`](https://docs.rs/log/latest/log/).
- `tracing`: Enables logging using [`tracing`](https://docs.rs/tracing/latest/tracing/).
- `defmt`: Enables logging using [`defmt`](https://docs.rs/defmt/latest/defmt/index.html)
and implements [`defmt::Format`](https://docs.rs/defmt/latest/defmt/trait.Format.html) for structs and enums.
## License
Licensed under either of
- Apache License, Version 2.0. [LICENSE-APACHE](LICENSE-APACHE) or [Apache-2.0 license](http://apache.org/licenses/LICENSE-2.0)
- MIT license. [LICENSE-MIT](LICENSE-MIT) or [MIT license](http://opensource.org/licenses/MIT)
## 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.