1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*!
Create LaTeX [bytefield](https://www.ctan.org/pkg/bytefield) diagrams with the
use of rust proc-macros and the [deku](https://github.com/sharksforarms/deku) library
For documentation and examples on available `#[bintex]` attributes and features,
see [attributes list](attributes)
# Example
```rust
# use bintex::prelude::*;
# use deku::prelude::*;
#[derive(BinTex, DekuRead, DekuWrite)]
#[bintex(bit_width = 32)]
struct Ipv6 {
#[deku(bits = "4")]
version: u8,
#[deku(bits = "6")]
ds: u8,
#[deku(bits = "2")]
ecn: u8,
#[deku(bits = "20")]
label: u32,
length: u16,
next_header: u8,
hop_limit: u8,
src: u32,
dst: u32,
}
```
*/
pub use *;
/// Generate latex output