when i use async-trait on an no_std environment, it will complain about unable to find box, even tho i have alloc:
error[E0425]: cannot find type Box in this scope
--> keyboard/src/lib.rs:11:1
|
11 | / make_capability! {
12 | | name = KeyboardCapability;
13 | | async fn read_key(
14 | | &self,
15 | | ) -> KeyEvent;
16 | | }
| |_^ not found in this scope
|
= note: this error originates in the attribute macro $crate::async_trait::async_trait which comes from the expansion of the macro make_capability (in Nightly builds, run
with -Z macro-backtrace for more info)
help: consider importing this struct
|
4 + use alloc::boxed::Box;
when i use async-trait on an no_std environment, it will complain about unable to find box, even tho i have alloc:
error[E0425]: cannot find type
Boxin this scope--> keyboard/src/lib.rs:11:1
|
11 | / make_capability! {
12 | | name = KeyboardCapability;
13 | | async fn read_key(
14 | | &self,
15 | | ) -> KeyEvent;
16 | | }
| |_^ not found in this scope
|
= note: this error originates in the attribute macro
$crate::async_trait::async_traitwhich comes from the expansion of the macromake_capability(in Nightly builds, runwith -Z macro-backtrace for more info)
help: consider importing this struct
|
4 + use alloc::boxed::Box;