Skip to content

Commit 9de2c81

Browse files
committed
cloudevents#9 Encoders for MQTT
Signed-off-by: Subhobrata Dey <[email protected]>
1 parent fa7fde9 commit 9de2c81

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Diff for: .github/workflows/rust_tests.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
command: build
7878
toolchain: ${{ matrix.toolchain }}
79-
args: --target ${{ matrix.target }} --features vendored --workspace
79+
args: --target ${{ matrix.target }} --workspace
8080
env:
8181
CC: musl-gcc
8282
CXX: g++
@@ -86,7 +86,7 @@ jobs:
8686
with:
8787
command: test
8888
toolchain: ${{ matrix.toolchain }}
89-
args: --target ${{ matrix.target }} --features vendored --workspace
89+
args: --target ${{ matrix.target }} --workspace
9090
env:
9191
CC: musl-gcc
9292
CXX: g++
@@ -98,7 +98,7 @@ jobs:
9898
with:
9999
command: build
100100
toolchain: ${{ matrix.toolchain }}
101-
args: --target wasm32-unknown-unknown --features vendored --package cloudevents-sdk --package cloudevents-sdk-reqwest
101+
args: --target wasm32-unknown-unknown --package cloudevents-sdk --package cloudevents-sdk-reqwest
102102

103103
# Build examples
104104
- uses: actions-rs/cargo@v1
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
command: build
109109
toolchain: ${{ matrix.toolchain }}
110-
args: --target ${{ matrix.target }} --features vendored --manifest-path ./example-projects/reqwest-wasm-example/Cargo.toml
110+
args: --target ${{ matrix.target }} --manifest-path ./example-projects/reqwest-wasm-example/Cargo.toml
111111

112112
- uses: actions-rs/cargo@v1
113113
name: "Build rdkafka-example"
@@ -132,3 +132,11 @@ jobs:
132132
command: build
133133
toolchain: ${{ matrix.toolchain }}
134134
args: --target ${{ matrix.target }} --manifest-path ./example-projects/warp-example/Cargo.toml
135+
136+
- uses: actions-rs/cargo@v1
137+
name: "Build paho-mqtt-example"
138+
if: matrix.target == 'x86_64-unknown-linux-gnu' && matrix.toolchain == 'stable'
139+
with:
140+
command: build
141+
toolchain: ${{ matrix.toolchain }}
142+
args: --target ${{ matrix.target }} --manifest-path ./example-projects/paho-mqtt-example/Cargo.toml

Diff for: Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ delegate-attr = "^0.2"
2424
base64 = "^0.12"
2525
url = { version = "^2.1", features = ["serde"] }
2626
snafu = "^0.6"
27-
openssl-sys = "*"
2827
bitflags = "^1.2"
2928

3029
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
3130
hostname = "^0.3"
31+
openssl-sys = "*"
32+
openssl = { version = "*", features = ["vendored"] }
3233
uuid = { version = "^0.8", features = ["v4"] }
3334

3435
[target.'cfg(target_arch = "wasm32")'.dependencies]
@@ -41,9 +42,6 @@ claim = "0.3.1"
4142
version-sync = "^0.9"
4243
serde_yaml = "0.8"
4344

44-
[features]
45-
vendored = ["openssl-sys/vendored"]
46-
4745
[workspace]
4846
members = [
4947
".",

0 commit comments

Comments
 (0)