# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2018" name = "cloudevents-sdk" version = "0.7.0" authors = ["Francesco Guardiani "] exclude = [".github/*"] description = "CloudEvents official Rust SDK" documentation = "https://docs.rs/cloudevents-sdk" readme = "README.md" categories = [ "web-programming", "encoding", "data-structures", ] license-file = "LICENSE" repository = "https://github.com/cloudevents/sdk-rust" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "cloudevents" [dependencies.actix-http] version = "3" optional = true [dependencies.actix-web] version = "4" optional = true [dependencies.async-trait] version = "^0.1.33" optional = true [dependencies.axum-lib] version = "^0.5" optional = true package = "axum" [dependencies.base64] version = "^0.12" [dependencies.bitflags] version = "^1.2" [dependencies.bytes] version = "^1.0" optional = true [dependencies.chrono] version = "^0.4" features = ["serde"] [dependencies.delegate-attr] version = "^0.2" [dependencies.futures] version = "^0.3" optional = true [dependencies.http] version = "0.2" optional = true [dependencies.http-body] version = "^0.4" optional = true [dependencies.hyper] version = "^0.14" optional = true [dependencies.nats-lib] version = "0.21.0" optional = true package = "nats" [dependencies.poem-lib] version = "=1.2.34" optional = true package = "poem" [dependencies.rdkafka-lib] version = "^0.29" features = ["cmake-build"] optional = true package = "rdkafka" [dependencies.reqwest-lib] version = "^0.11" features = ["rustls-tls"] optional = true default-features = false package = "reqwest" [dependencies.serde] version = "^1.0" features = ["derive"] [dependencies.serde_json] version = "^1.0" [dependencies.snafu] version = "^0.6" [dependencies.url] version = "^2.1" features = ["serde"] [dependencies.uuid] version = "1" features = ["v4"] [dependencies.warp-lib] version = "^0.3" optional = true package = "warp" [dev-dependencies.actix-rt] version = "^2" [dev-dependencies.chrono] version = "^0.4" features = ["serde"] [dev-dependencies.claim] version = "0.3.1" [dev-dependencies.mime] version = "0.3" [dev-dependencies.mockito] version = "0.25.1" [dev-dependencies.rmp-serde] version = "1" [dev-dependencies.rstest] version = "0.6" [dev-dependencies.serde_json] version = "^1.0" [dev-dependencies.serde_yaml] version = "0.8" [dev-dependencies.tokio] version = "^1.0" features = ["full"] [dev-dependencies.tower] version = "0.4" features = ["util"] [dev-dependencies.url] version = "^2.1" features = ["serde"] [dev-dependencies.version-sync] version = "0.9.2" [features] actix = [ "actix-web", "actix-http", "async-trait", "bytes", "futures", "http", ] axum = [ "bytes", "http", "hyper", "axum-lib", "http-body", "async-trait", ] http-binding = [ "async-trait", "bytes", "futures", "http", ] nats = ["nats-lib"] poem = [ "bytes", "http", "poem-lib", "hyper", "async-trait", ] rdkafka = [ "rdkafka-lib", "bytes", "futures", ] reqwest = [ "reqwest-lib", "async-trait", "bytes", "http", "uuid/js", ] warp = [ "warp-lib", "bytes", "http", "hyper", ] [target."cfg(all(target_arch = \"wasm32\", target_os = \"unknown\"))".dependencies.web-sys] version = "^0.3" features = [ "Window", "Location", ] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.hostname] version = "^0.3"