This crate provides high-level, safe bindings for the C99 library open62541, an open source and free implementation of OPC UA.
Use this crate when you want to implement an OPC UA client or server in Rust, or add these capabilities to an existing program.
You can find examples in our documentation and in the examples/
folder in our repository.
Linking with rust-lld fails with unresolved symbols. As a workaround add the following entry to
your .cargo/config.toml:
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Clinker-features=-lld"]Alternatively set the corresponding environment variable
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS to -Clinker-features=-lld.
See also:
Make sure to use LF line endings and run just pre-commit before committing your changes.
Visit the Just Programmer's Manual for information on installing
just. After installing, run just setup to setup the environment required by this repository.
Tip: Configure your IDE to apply cargo fmt formatting when saving a file.