ethercrab-wire 0.3.0

On-the-wire tools for the EtherCrab crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
use ethercrab_wire::EtherCrabWireRead;

#[test]
fn heapless_str() {
    let input = "Hello world".as_bytes();

    assert_eq!(
        heapless::String::<32>::unpack_from_slice(input),
        Ok("Hello world".try_into().unwrap())
    );
}