Skip to content

Commit e547935

Browse files
authored
remove eis deps (#3)
* removed eis dependencies
1 parent 7626fe3 commit e547935

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ 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.0] Q1 2022
9+
- removed identity service
10+
- renamed package and repo to azure-iot-sdk-sys
11+
- added useful panic to build.rs
12+
813
## [0.1.1] Q4 2021
914
- fix compiling for 32bit systems
1015

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[package]
2-
name = "ics-dm-azure-sys"
3-
version = "0.1.1"
2+
name = "azure-iot-sdk-sys"
3+
version = "0.2.0"
44
edition = "2018"
5-
authors = ["Joerg Zeidler <joerg.zeidler@conplement.de>"]
5+
authors = ["Joerg Zeidler <joerg.zeidler@conplement.de>", "Jan Zachmann <jan.zachmann@conplement.de>"]
66
build = "build.rs"
7+
repository = "https://github.com/ICS-DeviceManagement/azure-iot-sdk-sys"
78

89
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
910

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# ics-dm-azure-sys-rs
1+
# 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) and eis-utils.
3+
This repository provides a low level rust interface wrapping a prebuild [azure-iot-sdk-c](https://github.com/Azure/azure-iot-sdk-c).
44

55
## Usage
66

77
To successfully build the low level rust wrapper, the system environment variables
8-
LIB_PATH_AZURESDK, LIB_PATH_EISUTILS, LIB_PATH_UUID, LIB_PATH_OPENSSL, LIB_PATH_CURL
8+
LIB_PATH_AZURESDK, LIB_PATH_UUID, LIB_PATH_OPENSSL, LIB_PATH_CURL
99
must be present.
1010

1111
example for LIB_PATH_AZURESDK:

build.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,20 @@ fn path_handling(env: &str) -> String {
2121
}
2222
index += 1;
2323
}
24+
25+
if path_lib.len() == 0{
26+
panic!("No paths found for {:?}", env);
27+
}
28+
2429
if index > 1 {
2530
panic!("Multiple paths found for {:?}", path_lib);
2631
}
32+
2733
path_lib[0].clone()
2834
}
2935

3036
fn main() {
3137
let path_lib_azuresdk = path_handling("LIB_PATH_AZURESDK");
32-
let path_lib_eisutils = path_handling("LIB_PATH_EISUTILS");
3338
let path_lib_uuid = path_handling("LIB_PATH_UUID");
3439
let path_lib_openssl = path_handling("LIB_PATH_OPENSSL");
3540
let path_lib_curl = path_handling("LIB_PATH_CURL");
@@ -39,10 +44,6 @@ fn main() {
3944
"cargo:rustc-link-search=native={}/lib",
4045
path_lib_azuresdk.to_string()
4146
);
42-
println!(
43-
"cargo:rustc-link-search=native={}/lib",
44-
path_lib_eisutils.to_string()
45-
);
4647
println!(
4748
"cargo:rustc-link-search=native={}/lib",
4849
path_lib_uuid.to_string()
@@ -56,7 +57,7 @@ fn main() {
5657
path_lib_curl.to_string()
5758
);
5859

59-
// Tell cargo to tell rustc to link the azure iot-sdk and eis_utils libraries.
60+
// Tell cargo to tell rustc to link the azure iot-sdk libraries.
6061
println!("cargo:rustc-link-lib=iothub_client_mqtt_transport");
6162
println!("cargo:rustc-link-lib=iothub_client");
6263
println!("cargo:rustc-link-lib=parson");
@@ -67,7 +68,6 @@ fn main() {
6768
println!("cargo:rustc-link-lib=ssl");
6869
println!("cargo:rustc-link-lib=crypto");
6970
println!("cargo:rustc-link-lib=uuid");
70-
println!("cargo:rustc-link-lib=eis_utils");
7171

7272
// Tell cargo to invalidate the built crate whenever the wrapper changes
7373
println!("cargo:rerun-if-changed=wrapper.h");
@@ -85,8 +85,6 @@ fn main() {
8585
"-I{}/include/azureiot",
8686
path_lib_azuresdk.to_string()
8787
))
88-
.clang_arg(format!("-I{}/include", path_lib_eisutils.to_string()))
89-
.clang_arg(format!("-I{}/include/aduc", path_lib_eisutils.to_string()))
9088
// seems it is a controverse topic, but for 32bit vs 64 bit systems we
9189
// need size_t to be usize to be able to bind callbacks
9290
// https://github.com/rust-lang/rust-bindgen/issues/1901 vs

wrapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
#include <azureiot/iothub_message.h>
44
#include <azureiot/iothub_module_client_ll.h>
55
#include <azureiot/iothubtransportmqtt.h>
6-
#include <eis_utils.h>

0 commit comments

Comments
 (0)