|
1 | 1 | # azure-iot-sdk-sys |
2 | 2 |
|
3 | | -This repository provides a low level rust interface wrapping a prebuild [azure-iot-sdk-c](https://github.com/Azure/azure-iot-sdk-c). |
| 3 | +This repository provides low level rust bindings for the [azure-iot-sdk-c](https://github.com/Azure/azure-iot-sdk-c). `azure-iot-sdk-sys` serves as basic sys crate for [azure-iot_sdk](https://github.com/ICS-DeviceManagement/azure-iot-sdk) and [iot-client-template](https://github.com/ICS-DeviceManagement/iot-client-template-rs). |
4 | 4 |
|
5 | | -## Usage |
| 5 | +# Build |
6 | 6 |
|
7 | | -To successfully build the low level rust wrapper, the system environment variables |
8 | | -LIB_PATH_AZURESDK, LIB_PATH_UUID, LIB_PATH_OPENSSL, LIB_PATH_CURL |
9 | | -must be present. |
| 7 | +In order to build `azure-iot-sdk-sys` the following library dependencies must be provided via environment variable: |
| 8 | +- `LIB_PATH_AZURESDK`: path to azure-iot-sdk-c libraries |
| 9 | +- `LIB_PATH_UUID`: path to libuuid libraries |
| 10 | +- `LIB_PATH_OPENSSL`: path to openssl libraries |
| 11 | +- `LIB_PATH_CURL`: path to libcurl libraries |
10 | 12 |
|
11 | | -example for LIB_PATH_AZURESDK: |
| 13 | +There are absolute paths expected that might include wildcard semantics. It is expected that the path points to a directory with a "lib" and "include" subfolder. |
12 | 14 |
|
13 | | -```sh |
14 | | -export LIB_PATH_AZURESDK=/build/.conan/data/azure-iot-sdk-c/*/_/_/package/* |
15 | | -``` |
| 15 | +## Provide your own libraries |
16 | 16 |
|
17 | | -You can use an absolute path as well as including wildcard semantics. |
18 | | -It is expected that the path points to the main directory of the respective c library. |
19 | | -The built-in libraries must be in the "lib" subfolder. |
20 | | -The header files must be in the "include" subfolder. |
| 17 | +You're free to build your own versions of libraries for the target platform of your choice or use the ones provided by your operating system. |
| 18 | + |
| 19 | +## Use prebuild libraries for x86_64 |
| 20 | + |
| 21 | +For your convenience we provide for x86_64 a bundle of libraries, created on Ubuntu 20.04lts, as part of our github release. Please find the library archive [here](https://github.com/ICS-DeviceManagement/azure-iot-sdk-sys/releases/latest) |
21 | 22 |
|
22 | 23 | # License |
23 | 24 |
|
|
0 commit comments