mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a3a96b8415
Change it from `[i8; 16]` to `[u8; 18]`. `i8` arrays cannot be easily used in Rust for converting to string (i.e. with `core::str::from_utf8_unchecked`) and developers have to convert them themselves with unsafe code. Using u8 arrays lets developers to just convert it with `core::str::from_utf8_unchecked` without any limitations. Example: https://github.com/vadorovsky/aya-examples/blob/main/clone/clone-ebpf/src/main.rs Signed-off-by: Michal Rostecki <vadorovsky@gmail.com> |
2 years ago | |
---|---|---|
.. | ||
aya-bpf | 2 years ago | |
aya-bpf-bindings | 2 years ago | |
aya-bpf-cty | 2 years ago | |
aya-bpf-macros | 2 years ago | |
Cargo.toml | 4 years ago | |
rustfmt.toml | 2 years ago |