#parser #fieldbus #siemens #profibus #profibus-dp

gsd-parser

Parser for PROFIBUS GSD files (Generic Station Description)

6 releases (breaking)

0.6.0 Feb 23, 2025
0.5.0 Dec 20, 2024
0.3.0 Oct 31, 2024
0.2.0 May 9, 2024
0.1.1 Dec 28, 2023

#303 in Robotics

Download history 14/week @ 2024-11-04 3/week @ 2024-11-11 6/week @ 2024-11-18 26/week @ 2024-12-09 137/week @ 2024-12-16

365 downloads per month
Used in gsdtool

MIT/Apache

49KB
1K SLoC

Rust 1K SLoC // 0.0% comments Pest 104 SLoC

gsd-parser crates.io page docs.rs page

A parser for PROFIBUS GSD (Generic Station Description) files.

Testsuite

gsd-parser comes with a testsuite to catch parsing regressions. The testsuite uses insta.rs. To use it, populate tests/data/ with all .gsd files you have. Then run cargo insta test to generate first snapshots. You'll need to accept each snapshot using cargo insta review. From then on, you can just run cargo test as usual.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.1–3MB
~59K SLoC