-
Notifications
You must be signed in to change notification settings - Fork 45
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 + async support #72
Conversation
Support for no_std Further no_std compat
I've also switched the So upon rename of |
@kedars Not sure from where the "restyled" thing is kicking in - couldn't see it in the GitHub Actions YAML. But in any case I think we just need to switch to |
By the way, the changeset is so big because it contains also all the commits of the |
0c03364
to
dc8488c
Compare
…lify Mdns and Psm runners
dc8488c
to
916f214
Compare
As discussed in the matter-rs Matrix room, this is the
sequential
branch (i.e.no_std
+ async support).This PR contains all changes which are already in the
no_std
andsequential
branches of thematter-rs
repository, plus the following additions:embassy-net
baremetal async networking library (under theembassy-net
feature) - i.e. all necessary dependencies, plus aUdpListener
implementationsmol
. We only depend onasync-io
now, and only in the STDUdpListener
. We can now also trivially implement aUdpListener
for tokio'stokio-net
as well, under atokio
feature flagMatter
,Transport
andTransportRunner
structs into justMatter
, as was in the originalmain
branchMdns
implementation.MdnsRunner
is gone. Just callMdnsRunner::run(...)
to run the Mdns responder async loopPsm
implementation. CallPsm::new(&matter, dir)
to initialize the persister, and thenpsm.run()
to run the persister async loopIMPORTANT: Removed./LICENSE
and replaced with./LICENSE-APACHE
andLICENSE-MIT
. @kedars I spotted this by accident. Basically,Cargo.toml
used to saylicense=mit
, while theLICENSE
file used to contain the Apache 2.0 license. I assume you want both (as is the case for 99% of the Rust crates). If you want either Apache-only or MIT-only, please let me know, and I'll remove one or the other