This library provides a way to deserialize RFID AEI tags used in railway industry to identify wagons. It can be used both a CLI util or a library
Deserialize one or multiple tags passed as parameters : ```bash
$ aei-tag-parser 9EA488C030426A179000000000000331
$ aei-tag-parser 2F3E06C007DB1E139000000000000331 9EA488C030426A179000000000000331 9EA488C5320CC01B9000000000000331
```
Tag deserialization from a file : ```bash
$ cat tags.txt
$ aei-tag-parser -f test.txt
```
Tag deserialization from a UNIX pipe : ```bash
$ cat tags.txt
$ cat tags.txt | aei-tag-parser
```
This project can also be used as an external library. Documentation is available here : https://docs.rs/aeitagparser/latest/aeitagparser/
```rust let tagstr : String = String::from("9EA488C030426A179000000000000331"); let tag : AEITagData = AEITagData::new(&tagstr);
println!("Tag {} content is : \r\n\tInitials: {}\r\n\tCar number: {}", &tagstr, tag.equipmentinitial(), tag.car_number()); ```
To install the CLI util, you must have Rust installed (cf RustUp).
Then you can simply do :
bash
$ cargo install aei_tag_parser