Update rdkafka and and http.
Also fix base64 deprecation warning. Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>
This commit is contained in:
parent
897cd85c40
commit
5d171da883
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "cloudevents-sdk"
|
name = "cloudevents-sdk"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
authors = ["Francesco Guardiani <francescoguard@gmail.com>"]
|
authors = ["Francesco Guardiani <francescoguard@gmail.com>"]
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -48,12 +48,12 @@ uuid = { version = "1", features = ["v4"] }
|
||||||
actix-web = { version = "4", optional = true }
|
actix-web = { version = "4", optional = true }
|
||||||
actix-http = { version = "3", optional = true }
|
actix-http = { version = "3", optional = true }
|
||||||
reqwest-lib = { version = "^0.12", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
|
reqwest-lib = { version = "^0.12", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
|
||||||
rdkafka-lib = { version = "^0.36", features = ["cmake-build"], optional = true, package = "rdkafka" }
|
rdkafka-lib = { version = "^0.37", features = ["cmake-build"], optional = true, package = "rdkafka" }
|
||||||
warp-lib = { version = "^0.3", optional = true, package = "warp" }
|
warp-lib = { version = "^0.3", optional = true, package = "warp" }
|
||||||
async-trait = { version = "^0.1", optional = true }
|
async-trait = { version = "^0.1", optional = true }
|
||||||
bytes = { version = "^1.0", optional = true }
|
bytes = { version = "^1.0", optional = true }
|
||||||
futures = { version = "^0.3", optional = true, features = ["compat"]}
|
futures = { version = "^0.3", optional = true, features = ["compat"]}
|
||||||
http = { version = "1.1", optional = true}
|
http = { version = "1.2", optional = true}
|
||||||
http-0-2 = { version = "0.2", optional = true, package = "http"}
|
http-0-2 = { version = "0.2", optional = true, package = "http"}
|
||||||
axum-lib = { version = "^0.7", optional = true, package="axum"}
|
axum-lib = { version = "^0.7", optional = true, package="axum"}
|
||||||
http-body-util = {version = "^0.1", optional = true}
|
http-body-util = {version = "^0.1", optional = true}
|
||||||
|
|
|
@ -42,7 +42,7 @@ enabling your Protocol Binding of choice:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cloudevents-sdk = { version = "0.8.0" }
|
cloudevents-sdk = { version = "0.9.0" }
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can start creating events:
|
Now you can start creating events:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rdkafka-example"
|
name = "rdkafka-example"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
authors = ["Pranav Bhatt <adpranavb2000@gmail.com>"]
|
authors = ["Pranav Bhatt <adpranavb2000@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@ serde_json = "^1.0"
|
||||||
futures = "^0.3"
|
futures = "^0.3"
|
||||||
tokio = { version = "^1.0", features = ["full"] }
|
tokio = { version = "^1.0", features = ["full"] }
|
||||||
clap = "2.33.1"
|
clap = "2.33.1"
|
||||||
rdkafka = { version = "^0.36", features = ["cmake-build"] }
|
rdkafka = { version = "^0.37", features = ["cmake-build"] }
|
||||||
|
|
|
@ -2,6 +2,7 @@ use super::{
|
||||||
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
|
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
|
||||||
ExtensionValue, SpecVersion, UriReference,
|
ExtensionValue, SpecVersion, UriReference,
|
||||||
};
|
};
|
||||||
|
use base64::prelude::*;
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
use serde::Serializer;
|
use serde::Serializer;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
@ -37,7 +38,7 @@ impl fmt::Display for AttributeValue<'_> {
|
||||||
AttributeValue::Boolean(b) => f.serialize_bool(**b),
|
AttributeValue::Boolean(b) => f.serialize_bool(**b),
|
||||||
AttributeValue::Integer(i) => f.serialize_i64(**i),
|
AttributeValue::Integer(i) => f.serialize_i64(**i),
|
||||||
AttributeValue::String(s) => f.write_str(s),
|
AttributeValue::String(s) => f.write_str(s),
|
||||||
AttributeValue::Binary(b) => f.write_str(&base64::encode(b)),
|
AttributeValue::Binary(b) => f.write_str(&BASE64_STANDARD.encode(b)),
|
||||||
AttributeValue::URI(s) => f.write_str(s.as_str()),
|
AttributeValue::URI(s) => f.write_str(s.as_str()),
|
||||||
AttributeValue::URIRef(s) => f.write_str(s.as_str()),
|
AttributeValue::URIRef(s) => f.write_str(s.as_str()),
|
||||||
AttributeValue::Time(s) => f.write_str(&s.to_rfc3339()),
|
AttributeValue::Time(s) => f.write_str(&s.to_rfc3339()),
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
//! [Extractors]: https://actix.rs/docs/extractors/
|
//! [Extractors]: https://actix.rs/docs/extractors/
|
||||||
//! [Responders]: https://actix.rs/docs/handlers/
|
//! [Responders]: https://actix.rs/docs/handlers/
|
||||||
|
|
||||||
#![doc(html_root_url = "https://docs.rs/cloudevents-sdk/0.8.0")]
|
#![doc(html_root_url = "https://docs.rs/cloudevents-sdk/0.9.0")]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))] // Show feature gate in doc
|
#![cfg_attr(docsrs, feature(doc_cfg))] // Show feature gate in doc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue