Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_std support #419

Merged
merged 16 commits into from
Jan 10, 2023
Merged

no_std support #419

merged 16 commits into from
Jan 10, 2023

Conversation

davidedellagiustina
Copy link
Contributor

@davidedellagiustina davidedellagiustina commented Jan 9, 2023

Main changes:

  • zenoh-collections and zenoh-buffers tested and working on STM32F7 board (minor fixes);
  • in zenoh-collections/zenoh-buffers added defmt feature (opt-in) useful for debugging in no_std;
  • [WIP] zenoh-protocol should be also ok in no_std, apart from the few dependencies that it still has in zenoh-core. zenoh-codec depends on zenoh-protocol;
  • [WIP] uhlc dependency now relies on the GitHub version instead of the crates.io one, in order to have no_std support;
  • [WIP] defmt feature for zenoh-protocol/zenoh-codec is almost done, but needs a couple of additions dependent on defmt feature in uhlc (PR waiting) defmt::Format is implemented also for structures in zenoh-protocol/zenoh-codec.

commons/zenoh-buffers/Cargo.toml Outdated Show resolved Hide resolved
commons/zenoh-buffers/src/bbuf.rs Outdated Show resolved Hide resolved
commons/zenoh-buffers/src/lib.rs Outdated Show resolved Hide resolved
commons/zenoh-codec/Cargo.toml Outdated Show resolved Hide resolved
commons/zenoh-codec/src/core/zbuf.rs Outdated Show resolved Hide resolved
commons/zenoh-protocol/src/core/endpoint.rs Outdated Show resolved Hide resolved
…fmt::Format for all the types in zenoh-protocol that dependend in some way by defmt::Format being implemented for types in UHLC
@davidedellagiustina
Copy link
Contributor Author

With the last commit, defmt::Format is now implemented for all the types that also implement at least one among fmt::Display and fmt::Debug (relies on latest changes merged into uhlc).

…tocol/codec -- now types with custom implementation of fmt::Debug/fmt::Display use those same implementations for defmt::Format
@Mallets Mallets merged commit 5a3f2e3 into eclipse-zenoh:new-buffers Jan 10, 2023
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.

None yet

2 participants