Skip to content

Commit

Permalink
Revert README
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a authored and sharksforarms committed Nov 16, 2023
1 parent fe64b9d commit f227e8b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ no_std:
deku = { version = "0.16", default-features = false, features = ["alloc"] }
```

*Compiler support: requires rustc 1.65+*

## Example

See [documentation](https://docs.rs/deku) or
Expand All @@ -53,9 +51,8 @@ struct DekuTest {
}

fn main() {
let data: &[u8] = &[0b0110_1001, 0xBE, 0xEF];
let mut cursor = Cursor::new(data);
let (_amt_read, mut val) = DekuTest::from_reader((&mut cursor, 0)).unwrap();
let data: Vec<u8> = vec![0b0110_1001, 0xBE, 0xEF];
let (_rest, mut val) = DekuTest::from_bytes((data.as_ref(), 0)).unwrap();
assert_eq!(DekuTest {
field_a: 0b0110,
field_b: 0b1001,
Expand Down

0 comments on commit f227e8b

Please sign in to comment.