Closed Dentrax closed 2 years ago
I was trying the simple example that included in README, but I couldn't make it work:
| 31 | let (_rest, mut val) = DekuTest::from_bytes((data.as_ref(), 0)).unwrap(); | ^^^^^^^^ use of undeclared type `DekuTest`
I included use deku::prelude::*; and also used deku = { version = "0.13", default-features = false, features = ["alloc"] } in Cargo.toml.
use deku::prelude::*;
deku = { version = "0.13", default-features = false, features = ["alloc"] }
Cargo.toml
I also couldn't see DekuTest in deku::prelude:::
DekuTest
deku::prelude::
What I'm missing here? @sharksforarms 🤔
Just noticed DekuTest represents the name of the target struct. Sorry for the inconvenience.
I was trying the simple example that included in README, but I couldn't make it work:
I included
use deku::prelude::*;
and also useddeku = { version = "0.13", default-features = false, features = ["alloc"] }
inCargo.toml
.I also couldn't see
DekuTest
indeku::prelude::
:What I'm missing here? @sharksforarms 🤔