forked from standard-ai/hedwig-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
69 lines (58 loc) · 2.49 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "hedwig"
# TODO: When bumping to next major version, make sure to clean up the MRV and lints we allow in CI.
version = "4.1.0"
authors = [
"Aniruddha Maru <[email protected]>",
"Simonas Kazlauskas <[email protected]>"
]
edition = "2018"
repository = "https://github.com/standard-ai/hedwig-rust.git"
homepage = "https://github.com/standard-ai/hedwig-rust"
readme = "README.md"
description = "A simple message bus for Rust"
license = "Apache-2.0"
keywords = ["pubsub", "messagebus", "microservices"]
categories = ["asynchronous", "web-programming"]
[badges]
maintenance = { status = "actively-developed" }
[features]
default = ["consume", "sink"]
# Whether publishing/consuming is enabled
publish = []
consume = ["async-trait", "either"]
# Publishers
google = ["base64", "yup-oauth2", "hyper", "http", "serde_json", "serde", "serde/derive", "uuid/serde"]
# Validators
json-schema = ["valico", "serde_json", "serde"]
protobuf = ["prost"]
# Convenience API
sink = ["futures-util/sink", "either", "publish"]
[[example]]
name = "publish"
required-features = ["google", "json-schema"]
[dependencies]
bytes = "1"
futures-util = { version = "0.3", features = ["std"], default-features = false }
pin-project = "1"
thiserror = { version = "1", default-features = false }
url = { version = "2", default-features = false }
uuid = { version = "^0.8", features = ["v4"], default-features = false }
async-trait = { version = "0.1", optional = true }
either = { version = "1", optional = true, features = ["use_std"], default-features = false }
serde = { version = "^1.0", optional = true, default-features = false }
serde_json = { version = "^1", features = ["std"], optional = true, default-features = false }
valico = { version = "^3.2", optional = true, default-features = false }
base64 = { version = "^0.13", optional = true, default-features = false }
http = { version = "^0.2", optional = true, default-features = false }
hyper = { version = "^0.14.4", optional = true, features = ["client", "stream"], default-features = false }
yup-oauth2 = { version = "5.1", optional = true, features = ["hyper-rustls"], default-features = false }
prost = { version = "0.7", optional = true, features = ["std"], default-features = false }
[dev-dependencies]
hyper-tls = "0.5.0"
prost = { version = "0.7", features = ["std", "prost-derive"] }
tokio = { version = "1", features = ["macros", "rt"] }
serde = { version = "1", features = ["derive"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]