Skip to content

Commit e8f71dc

Browse files
Upgrade several dependencies.
delegate-attr, base64, snafu, bitflags, hostname, and serde_yaml. Signed-off-by: Omar Zabala-Ferrera <[email protected]>
1 parent 03021f7 commit e8f71dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1081
-701
lines changed

.github/workflows/rust_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ jobs:
104104
with:
105105
command: build
106106
toolchain: ${{ matrix.toolchain }}
107-
args: --target ${{ matrix.target }} --features "http-binding hyper hyper_wasi"
107+
args: --target ${{ matrix.target }} --features "http-0-2-binding hyper-0-14 hyper_wasi"
108108
- uses: actions-rs/cargo@v1
109109
name: "Test"
110110
if: matrix.target == 'wasm32-wasi'
111111
with:
112112
command: test
113113
toolchain: ${{ matrix.toolchain }}
114-
args: --target ${{ matrix.target }} --features "http-binding hyper hyper_wasi"
114+
args: --target ${{ matrix.target }} --features "http-0-2-binding hyper-0-14 hyper_wasi"
115115
env:
116116
CARGO_TARGET_WASM32_WASI_RUNNER: wasmedge
117117
# Build examples

Cargo.toml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cloudevents-sdk"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
authors = ["Francesco Guardiani <[email protected]>"]
55
license-file = "LICENSE"
66
edition = "2018"
@@ -23,78 +23,75 @@ name = "cloudevents"
2323

2424
[features]
2525
http-binding = ["async-trait", "bytes", "futures", "http"]
26-
actix = ["actix-web", "actix-http", "async-trait", "bytes", "futures", "http"]
26+
http-0-2-binding = ["async-trait", "bytes", "futures", "http-0-2"]
27+
actix = ["actix-web", "actix-http", "async-trait", "bytes", "futures", "http-0-2"]
2728
reqwest = ["reqwest-lib", "async-trait", "bytes", "http", "uuid/js"]
2829
rdkafka = ["rdkafka-lib", "bytes", "futures"]
29-
warp = ["warp-lib", "bytes", "http", "hyper"]
30-
axum = ["bytes", "http-1-1", "hyper-1-3", "axum-lib-0-7", "http-body-1-0", "http-body-util", "async-trait"]
31-
poem = ["bytes", "http", "poem-lib", "hyper", "async-trait"]
30+
warp = ["warp-lib", "bytes", "http-0-2", "http-body-util", "hyper-0-14"]
31+
axum = ["bytes", "http", "hyper", "axum-lib", "http-body-util", "async-trait"]
32+
poem = ["bytes", "http", "poem-lib", "hyper", "async-trait", "http-body-util", "futures"]
3233
nats = ["nats-lib"]
3334

3435
[dependencies]
3536
serde = { version = "^1.0", features = ["derive"] }
3637
serde_json = "^1.0"
3738
chrono = { version = "^0.4", features = ["serde"] }
38-
delegate-attr = "^0.2"
39-
base64 = "^0.12"
40-
url = { version = "^2.1", features = ["serde"] }
41-
snafu = "^0.6"
42-
bitflags = "^1.2"
39+
delegate-attr = "^0.3"
40+
base64 = "^0.22"
41+
url = { version = "^2.5", features = ["serde"] }
42+
snafu = "^0.8"
43+
bitflags = "^2.6"
4344
uuid = { version = "1", features = ["v4"] }
4445

4546
# runtime optional deps
4647
actix-web = { version = "4", optional = true }
4748
actix-http = { version = "3", optional = true }
48-
reqwest-lib = { version = "^0.11", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
49+
reqwest-lib = { version = "^0.12", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
4950
rdkafka-lib = { version = "^0.36", features = ["cmake-build"], optional = true, package = "rdkafka" }
5051
warp-lib = { version = "^0.3", optional = true, package = "warp" }
51-
async-trait = { version = "^0.1.33", optional = true }
52+
async-trait = { version = "^0.1", optional = true }
5253
bytes = { version = "^1.0", optional = true }
53-
# bytes-1-6 = { version = "^1.6", optional = true, package="bytes" }
54-
futures = { version = "^0.3", optional = true }
55-
http = { version = "0.2", optional = true }
56-
http-1-1 = { version = "1.1", optional = true, package = "http"}
57-
axum-lib = { version = "^0.6", optional = true, package="axum"}
58-
axum-lib-0-7 = { version = "^0.7", optional = true, package="axum"}
59-
http-body = { version = "^0.4", optional = true }
60-
http-body-1-0 = { version = "^1.0", optional = true, package="http-body" }
54+
futures = { version = "^0.3", optional = true, features = ["compat"]}
55+
http = { version = "1.1", optional = true}
56+
http-0-2 = { version = "0.2", optional = true, package = "http"}
57+
axum-lib = { version = "^0.7", optional = true, package="axum"}
6158
http-body-util = {version = "^0.1", optional = true}
62-
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
63-
nats-lib = { version = "0.21.0", optional = true, package = "nats" }
59+
poem-lib = { version = "^3.1", optional = true, package = "poem" }
60+
nats-lib = { version = "0.25.0", optional = true, package = "nats" }
6461

6562
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
66-
hostname = "^0.3"
63+
hostname = "^0.4"
6764

6865
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
6966
web-sys = { version = "^0.3", features = ["Window", "Location"] }
7067

7168
[target.'cfg(not(target_os = "wasi"))'.dependencies]
72-
hyper = { version = "^0.14", optional = true }
73-
hyper-1-3 = { version = "^1.3", optional = true, package="hyper" }
69+
hyper = { version = "^1.4", optional = true, package="hyper" }
70+
hyper-0-14 = { version = "^0.14", optional = true, package = "hyper"}
7471

7572
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
7673
hyper_wasi = { version = "0.15", features = ["full"], optional = true }
7774

7875
[dev-dependencies]
79-
rstest = "0.6"
76+
rstest = "0.23"
8077
claims = "0.7.1"
8178
version-sync = "0.9.2"
82-
serde_yaml = "0.8"
79+
serde_yaml = "^0.9"
8380
rmp-serde = "1"
8481

8582
# runtime dev-deps
8683

8784
url = { version = "^2.1", features = ["serde"] }
8885
serde_json = { version = "^1.0" }
8986
chrono = { version = "^0.4", features = ["serde"] }
90-
mockito = "0.25.1"
87+
mockito = "0.31.1"
9188
mime = "0.3"
9289

9390

9491
[target.'cfg(not(target_os = "wasi"))'.dev-dependencies]
9592
actix-rt = { version = "^2" }
9693
tokio = { version = "^1.0", features = ["full"] }
97-
tower = { version = "0.4", features = ["util"] }
94+
tower = { version = "0.5", features = ["util"] }
9895

9996
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dev-dependencies]
10097
tokio_wasi = { version = "1", features = [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ enabling your Protocol Binding of choice:
4242

4343
```toml
4444
[dependencies]
45-
cloudevents-sdk = { version = "0.7.0" }
45+
cloudevents-sdk = { version = "0.8.0" }
4646
```
4747

4848
Now you can start creating events:

example-projects/actix-web-example/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
[dependencies]
88
cloudevents-sdk = { path = "../..", features = ["actix"] }
99
actix-web = "4"
10-
actix-cors = "0.6.0-beta.8"
10+
actix-cors = "^0.7"
1111
serde_json = "^1.0"
1212
url = { version = "^2.1" }
13-
env_logger = "0.7.1"
13+
env_logger = "^0.11"

example-projects/axum-example/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ edition = "2021"
66

77
[dependencies]
88
cloudevents-sdk = { path = "../..", features = ["axum"] }
9-
axum = "^0.6"
10-
http = "^0.2"
9+
axum = "^0.7"
10+
http = "^1.1"
1111
tokio = { version = "^1", features = ["full"] }
1212
tracing = "^0.1"
13-
tracing-subscriber = "^0.2"
14-
tower-http = { version = "^0.1", features = ["trace"] }
13+
tracing-subscriber = "^0.3"
14+
tower-http = { version = "^0.5", features = ["trace"] }
1515

1616
[dev-dependencies]
1717
tower = { version = "^0.4", features = ["util"] }
1818
serde = { version = "^1.0", features = ["derive"] }
1919
serde_json = "^1.0"
2020
chrono = { version = "^0.4", features = ["serde"] }
21-
hyper = { version = "^0.14" }
21+
hyper = { version = "^1.4" }

example-projects/axum-example/src/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use axum::{
44
};
55
use cloudevents::Event;
66
use http::StatusCode;
7-
use std::net::SocketAddr;
87
use tower_http::trace::TraceLayer;
98

109
fn echo_app() -> Router {
@@ -27,12 +26,8 @@ async fn main() {
2726
}
2827
tracing_subscriber::fmt::init();
2928
let service = echo_app();
30-
let addr = SocketAddr::from(([127, 0, 0, 1], 8080));
31-
tracing::debug!("listening on {}", addr);
32-
axum::Server::bind(&addr)
33-
.serve(service.into_make_service())
34-
.await
35-
.unwrap();
29+
let listener = tokio::net::TcpListener::bind("0.0.0.0:8080").await.unwrap();
30+
axum::serve(listener, service).await.unwrap();
3631
}
3732

3833
#[cfg(test)]

example-projects/nats-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ edition = "2021"
99
[dependencies]
1010
cloudevents-sdk = { path = "../..", features = ["nats"] }
1111
serde_json = "^1.0"
12-
nats = "0.21.0"
12+
nats = "^0.25"

example-projects/poem-example/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2021"
77
cloudevents-sdk = { path = "../..", features = ["poem"] }
88
tokio = { version = "1.13", features = ["macros", "rt-multi-thread"] }
99
tracing = "0.1"
10-
poem = { version = "1" }
11-
tracing-subscriber = "0.2"
10+
poem = { version = "^3.0" }
11+
tracing-subscriber = "0.3"
1212
serde_json = "1.0"
1313

1414
[dev-dependencies]

example-projects/reqwest-wasm-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
13-
reqwest = "^0.11"
13+
reqwest = "^0.12"
1414
uuid = "1"
1515
cloudevents-sdk = { path = "../..", features = ["reqwest"] }
1616
url = { version = "^2.1" }

0 commit comments

Comments
 (0)