rust-ethernet-ip 1.2.1

High-performance EtherNet/IP communication library for Allen-Bradley CompactLogix and ControlLogix PLCs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    // Emit build/git metadata for `src/version.rs`. Building from a crates.io
    // tarball has no `.git` directory, so a git failure here must NOT fail the
    // build — `src/version.rs` reads these vars with `option_env!` and falls
    // back to "unknown" when they are absent.
    if let Err(e) = vergen::EmitBuilder::builder()
        .build_timestamp()
        .git_sha(true)
        .git_branch()
        .git_commit_timestamp()
        .emit()
    {
        println!("cargo:warning=vergen build/git metadata unavailable: {e}");
    }
}