zproto
A Rust implementation of Zaber's ASCII and Binary Protocols.
This library is unofficial. Zaber Motion Library is Zaber's official communications library, but as of this writing there are no Rust bindings.
Usage
Add this to your Cargo.toml:
[]
= "0.4.2"
Getting started
This library aims to be simple but robust. Communicating with a product in Zaber's ASCII protocol looks something like this:
use ;
See the ascii or
binary module documentation for
a more in-depth introduction to communicating with devices using the Zaber ASCII
or Binary protocols.
The examples folder has some simple applications.
Documentation
The documentation is available on docs.rs.
Cargo Features
By default, both the ASCII and Binary protocols are enabled via the ascii and
binary Cargo features, respectively. However, if you only want to use one,
ascii for example, you can specify that in your Cargo.toml:
[]
= { = "0.4.2", = false, = ["ascii"] }
This will only include portions of the library related to the ASCII protocol during compilation.
License
This project is license under the MIT License.
Troubleshooting
-
Building fails with an error about
libudevThis crate requires the
libudevshared library to be installed on your system, which some operating systems do not have installed by default. Installing the library will solve the problem. For example, on Ubuntu the library can be installed withsudo apt install libudev-dev.