Skip to content

Commit 2bd15df

Browse files
ozabalaferrerajcrossley3
authored andcommittedJan 6, 2025
Update rdkafka and and http.
Also fix base64 deprecation warning. Signed-off-by: Omar Zabala-Ferrera <[email protected]>
1 parent 897cd85 commit 2bd15df

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed
 

‎Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cloudevents-sdk"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
authors = ["Francesco Guardiani <francescoguard@gmail.com>"]
55
license-file = "LICENSE"
66
edition = "2018"
@@ -48,12 +48,12 @@ uuid = { version = "1", features = ["v4"] }
4848
actix-web = { version = "4", optional = true }
4949
actix-http = { version = "3", optional = true }
5050
reqwest-lib = { version = "^0.12", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
51-
rdkafka-lib = { version = "^0.36", features = ["cmake-build"], optional = true, package = "rdkafka" }
51+
rdkafka-lib = { version = "^0.37", features = ["cmake-build"], optional = true, package = "rdkafka" }
5252
warp-lib = { version = "^0.3", optional = true, package = "warp" }
5353
async-trait = { version = "^0.1", optional = true }
5454
bytes = { version = "^1.0", optional = true }
5555
futures = { version = "^0.3", optional = true, features = ["compat"]}
56-
http = { version = "1.1", optional = true}
56+
http = { version = "1.2", optional = true}
5757
http-0-2 = { version = "0.2", optional = true, package = "http"}
5858
axum-lib = { version = "^0.7", optional = true, package="axum"}
5959
http-body-util = {version = "^0.1", optional = true}

‎README.md

+1-1
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.8.0" }
45+
cloudevents-sdk = { version = "0.9.0" }
4646
```
4747

4848
Now you can start creating events:

‎example-projects/rdkafka-example/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rdkafka-example"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Pranav Bhatt <adpranavb2000@gmail.com>"]
55
edition = "2018"
66

@@ -16,4 +16,4 @@ serde_json = "^1.0"
1616
futures = "^0.3"
1717
tokio = { version = "^1.0", features = ["full"] }
1818
clap = "2.33.1"
19-
rdkafka = { version = "^0.36", features = ["cmake-build"] }
19+
rdkafka = { version = "^0.37", features = ["cmake-build"] }

‎src/event/attributes.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use super::{
22
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
33
ExtensionValue, SpecVersion, UriReference,
44
};
5+
use base64::prelude::*;
56
use chrono::{DateTime, Utc};
67
use serde::Serializer;
78
use std::fmt;
@@ -37,7 +38,7 @@ impl fmt::Display for AttributeValue<'_> {
3738
AttributeValue::Boolean(b) => f.serialize_bool(**b),
3839
AttributeValue::Integer(i) => f.serialize_i64(**i),
3940
AttributeValue::String(s) => f.write_str(s),
40-
AttributeValue::Binary(b) => f.write_str(&base64::encode(b)),
41+
AttributeValue::Binary(b) => f.write_str(&BASE64_STANDARD.encode(b)),
4142
AttributeValue::URI(s) => f.write_str(s.as_str()),
4243
AttributeValue::URIRef(s) => f.write_str(s.as_str()),
4344
AttributeValue::Time(s) => f.write_str(&s.to_rfc3339()),

‎src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
//! [Extractors]: https://actix.rs/docs/extractors/
5555
//! [Responders]: https://actix.rs/docs/handlers/
5656
57-
#![doc(html_root_url = "https://docs.rs/cloudevents-sdk/0.8.0")]
57+
#![doc(html_root_url = "https://docs.rs/cloudevents-sdk/0.9.0")]
5858
#![deny(rustdoc::broken_intra_doc_links)]
5959
#![cfg_attr(docsrs, feature(doc_cfg))] // Show feature gate in doc
6060

0 commit comments

Comments
 (0)
Please sign in to comment.