69 lines
2.2 KiB
TOML
69 lines
2.2 KiB
TOML
[package]
|
|
name = "cloudevents-sdk"
|
|
version = "0.3.1"
|
|
authors = ["Francesco Guardiani <francescoguard@gmail.com>"]
|
|
license-file = "LICENSE"
|
|
edition = "2018"
|
|
description = "CloudEvents official Rust SDK"
|
|
documentation = "https://docs.rs/cloudevents-sdk"
|
|
readme = "README.md"
|
|
repository = "https://github.com/cloudevents/sdk-rust"
|
|
exclude = [
|
|
".github/*"
|
|
]
|
|
categories = ["web-programming", "encoding", "data-structures"]
|
|
|
|
[lib]
|
|
name = "cloudevents"
|
|
|
|
[features]
|
|
actix-binding = ["actix-web", "async-trait", "lazy_static", "bytes", "futures"]
|
|
reqwest-binding = ["reqwest", "async-trait", "lazy_static", "bytes"]
|
|
rdkafka-binding = ["rdkafka", "lazy_static", "bytes"]
|
|
warp-binding = ["warp", "lazy_static", "bytes", "http", "hyper"]
|
|
|
|
[dependencies]
|
|
serde = { version = "^1.0", features = ["derive"] }
|
|
serde_json = "^1.0"
|
|
chrono = { version = "^0.4", features = ["serde"] }
|
|
delegate-attr = "^0.2"
|
|
base64 = "^0.12"
|
|
url = { version = "^2.1", features = ["serde"] }
|
|
snafu = "^0.6"
|
|
bitflags = "^1.2"
|
|
|
|
# runtime optional deps
|
|
actix-web = { version = "^3", default-features = false, optional = true }
|
|
reqwest = { version = "^0.11", default-features = false, features = ["rustls-tls"], optional = true }
|
|
rdkafka = { version = "^0.25", features = ["cmake-build"], optional = true }
|
|
warp = { version = "^0.3", optional = true }
|
|
async-trait = { version = "^0.1.33", optional = true }
|
|
lazy_static = { version = "1.4.0", optional = true }
|
|
bytes = { version = "^1.0", optional = true }
|
|
futures = { version = "^0.3", optional = true }
|
|
http = { version = "0.2", optional = true }
|
|
hyper = { version = "^0.14", optional = true }
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
|
|
hostname = "^0.3"
|
|
uuid = { version = "^0.8", features = ["v4"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
web-sys = { version = "^0.3", features = ["Window", "Location"] }
|
|
uuid = { version = "^0.8", features = ["v4", "wasm-bindgen"] }
|
|
|
|
[dev-dependencies]
|
|
rstest = "0.6"
|
|
claim = "0.3.1"
|
|
version-sync = "^0.9"
|
|
serde_yaml = "0.8"
|
|
|
|
# runtime dev-deps
|
|
actix-rt = { version = "^1" }
|
|
url = { version = "^2.1", features = ["serde"] }
|
|
serde_json = { version = "^1.0" }
|
|
chrono = { version = "^0.4", features = ["serde"] }
|
|
mockito = "0.25.1"
|
|
tokio = { version = "^1.0", features = ["full"] }
|
|
mime = "0.3"
|