1 unstable release
0.1.0 | Aug 12, 2024 |
---|
#38 in #adc
2.5MB
75 lines
Contains (ELF lib, 1.5MB) libyapi.so.1.0.1, (ELF lib, 1MB) libyapi.so.1.0.1, (ELF lib, 1.5MB) libyapi.so.1.0.1, (Windows DLL, 755KB) yapi.dll, (Windows DLL, 1MB) yapi.dll, (static library, 31KB) yapi.lib and 1 more.
yoctolib-rs
A rust-wrapper for the YoctoPuce yoctolib C++ library. We use this library to connect to YoctoPuce's temperature and humidity sensors.
It has been tested only with the Yocto Meteo V2. We are currently only testing on Windows, with plans for Linux in the future.
The library uses dynamic linking to the yapi binaries to reduce the size of the crate, making it possible to distribute via crates.io. When distributing a program utilizing this library, make sure to include the proper dynamic library files that we include in the external/yapi/binaries directory.
Requirements
- Clang/LLVM must be installed and added to the path. Version 16 or greater is expected.
-
- Download releases for LLVM: https://github.com/llvm/llvm-project/releases/
Using the library.
Static or Dynamic Linking
[dependencies]
yoctolib-rs = "0.1"
YoctoPuce
Find out more info about YoctoPuce and their libraries here: https://www.yoctopuce.com/
The github repo for the C++ library used in this project can be found here: https://github.com/yoctopuce/yoctolib_cpp
About ADC
ADC combines industrial automation and data acquisition to create advanced automated testing and manufacturing solutions.
Find out more about ADC at: https://automateddesign.com
License
MIT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Disclaimers
ADC is not related to YoctoPuce.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.