diff --git a/Cargo.toml b/Cargo.toml index 7dd41ac9..f65cbec1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,12 +46,12 @@ members = [ "cloudevents-sdk-reqwest", "cloudevents-sdk-rdkafka", "cloudevents-sdk-warp", - "cloudevents-sdk-mqtt" + "cloudevents-sdk-paho-mqtt" ] exclude = [ "example-projects/actix-web-example", "example-projects/reqwest-wasm-example", "example-projects/rdkafka-example", "example-projects/warp-example", - "example-projects/mqtt-example" + "example-projects/paho-mqtt-example" ] \ No newline at end of file diff --git a/cloudevents-sdk-mqtt/Cargo.toml b/cloudevents-sdk-paho-mqtt/Cargo.toml similarity index 82% rename from cloudevents-sdk-mqtt/Cargo.toml rename to cloudevents-sdk-paho-mqtt/Cargo.toml index adaaab45..160eb58d 100644 --- a/cloudevents-sdk-mqtt/Cargo.toml +++ b/cloudevents-sdk-paho-mqtt/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "cloudevents-sdk-mqtt" +name = "cloudevents-sdk-paho-mqtt" version = "0.3.0" authors = ["Francesco Guardiani "] license-file = "../LICENSE" @@ -11,7 +11,7 @@ description = "CloudEvents official Rust SDK - Mqtt integration" [dependencies] cloudevents-sdk = { version = "0.3.0", path = ".." } lazy_static = "1.4.0" -paho-mqtt = { git = "https://github.com/eclipse/paho.mqtt.rust.git" } +paho-mqtt = "0.8" chrono = { version = "^0.4", features = ["serde"] } [dev-dependencies] diff --git a/cloudevents-sdk-mqtt/src/headers.rs b/cloudevents-sdk-paho-mqtt/src/headers.rs similarity index 100% rename from cloudevents-sdk-mqtt/src/headers.rs rename to cloudevents-sdk-paho-mqtt/src/headers.rs diff --git a/cloudevents-sdk-mqtt/src/lib.rs b/cloudevents-sdk-paho-mqtt/src/lib.rs similarity index 100% rename from cloudevents-sdk-mqtt/src/lib.rs rename to cloudevents-sdk-paho-mqtt/src/lib.rs diff --git a/cloudevents-sdk-mqtt/src/mqtt_consumer_record.rs b/cloudevents-sdk-paho-mqtt/src/mqtt_consumer_record.rs similarity index 100% rename from cloudevents-sdk-mqtt/src/mqtt_consumer_record.rs rename to cloudevents-sdk-paho-mqtt/src/mqtt_consumer_record.rs diff --git a/cloudevents-sdk-mqtt/src/mqtt_producer_record.rs b/cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs similarity index 100% rename from cloudevents-sdk-mqtt/src/mqtt_producer_record.rs rename to cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs diff --git a/example-projects/mqtt-example/Cargo.toml b/example-projects/paho-mqtt-example/Cargo.toml similarity index 87% rename from example-projects/mqtt-example/Cargo.toml rename to example-projects/paho-mqtt-example/Cargo.toml index dce76b2e..1f5ff62e 100644 --- a/example-projects/mqtt-example/Cargo.toml +++ b/example-projects/paho-mqtt-example/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "mqtt-example" +name = "paho-mqtt-example" version = "0.2.0" authors = ["Subhobrata Dey "] edition = "2018" @@ -11,7 +11,7 @@ async-trait = "^0.1.33" cloudevents-sdk = { path = "../sdk-rust" } cloudevents-sdk-mqtt = { path = "../sdk-rust/cloudevents-sdk-mqtt"} env_logger = "0.7.1" -paho-mqtt = { path = "../paho.mqtt.rust" } +paho-mqtt = "0.8" serde_json = "^1.0" futures = "^0.3" tokio = { version = "^0.2", features = ["full"] } diff --git a/example-projects/mqtt-example/src/main.rs b/example-projects/paho-mqtt-example/src/main.rs similarity index 100% rename from example-projects/mqtt-example/src/main.rs rename to example-projects/paho-mqtt-example/src/main.rs