sharksforarms / deku

Declarative binary reading and writing: bit-level, symmetric, serialization/deserialization
Apache License 2.0
1.14k stars 55 forks source link

`const_generics` feature doesn't work without `std` feature #262

Closed dullbananas closed 2 years ago

dullbananas commented 2 years ago

Enabling const_generics but not std causes an error here:

https://github.com/sharksforarms/deku/blob/31ffd8db236e5153f57c66fac7db85acb277947a/src/impls/slice.rs#L170

sharksforarms commented 2 years ago

Thanks for reporting!

we can use core::mem::MaybeUninit here, fixed in https://github.com/sharksforarms/deku/commit/10d05a6c70a835996d8a4ac5d4b832355c9a924b