Skip to content

Commit 3fa2404

Browse files
authored
describe build options (#6)
- removed conanfile.txt and instead provide pre-built-libs in release - improve documentation for building the crate
1 parent 0357acb commit 3fa2404

File tree

4 files changed

+19
-25
lines changed

4 files changed

+19
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.3] Q1 2022
9+
- removed conanfile.txt and instead provide pre-built-libs in release
10+
- improve documentation for building the crate
11+
812
## [0.2.2] Q1 2022
913
- added conanfile.txt for building depending azure-iot-sdk-c libs
1014

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "azure-iot-sdk-sys"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
edition = "2021"
55
authors = ["Joerg Zeidler <joerg.zeidler@conplement.de>", "Jan Zachmann <jan.zachmann@conplement.de>"]
66
build = "build.rs"

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
# azure-iot-sdk-sys
22

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).
44

5-
## Usage
5+
# Build
66

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
1012

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.
1214

13-
```sh
14-
export LIB_PATH_AZURESDK=/build/.conan/data/azure-iot-sdk-c/*/_/_/package/*
15-
```
15+
## Provide your own libraries
1616

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)
2122

2223
# License
2324

conanfile.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)