Open keredson opened 3 months ago
Yep, I'm keen to add an example for non-async, though I haven't actually tried using it that way myself yet. There might be API changes that could make it more ergonomic, though I think the basics are there for it to work.
Not sure about the target_os = "espidf"
issue - sounds like cargo might be confused about targets? I haven't used esp-rs tools much.
At the moment sunset-async
crate is intended for std
async, and sunset-embassy
is for no_std
async. sunset-embassy
should work with any executor/platform where there is an adequate RawMutex
(not just Embassy), sunset-async
depend on it for example. I've been thinking of renaming them to something clearer.
I would also love to see a non-async std example.
Are you more interested in a client or server non-async example?
I'm more interested in a server non-async std example, thanks!
this could use an example for non-async, non-std.
i had to patch in a custom
getrandom
impl to use:for some reason
if #[cfg(target_os = "espidf")]
wasn't true. this was in a newcargo generate esp-rs/esp-template
.beyond that, re the async example, depending on
sunset-async
seems to pull in stuff that depends onstd
. example: