forked from polyphony-chat/polyproto-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
48 lines (43 loc) · 1.53 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
[package]
name = "polyproto"
version = "0.9.0"
edition = "2021"
license = "MPL-2.0"
description = "(Generic) Rust types and traits to quickly get a polyproto implementation up and running"
repository = "https://github.com/polyphony-chat/polyproto"
rust-version = "1.71.1"
[lib]
crate-type = ["rlib", "cdylib", "staticlib"]
[features]
default = ["types"]
wasm = ["getrandom", "getrandom/js"]
getrandom = ["dep:getrandom"]
types = ["dep:http"]
reqwest = ["dep:reqwest", "types", "serde", "dep:url"]
serde = ["dep:serde", "dep:serde_json"]
[dependencies]
der = { version = "0.7.9", features = ["pem"] }
getrandom = { version = "0.2.14", optional = true }
regex = "1.10.4"
reqwest = { version = "0.12.4", features = ["json"], optional = true }
serde = { version = "1.0.199", optional = true, features = ["derive"] }
serde_json = { version = "1.0.116", optional = true }
spki = { version = "0.7.3", features = ["pem"] }
thiserror = "1.0.59"
x509-cert = "0.2.5"
log = "0.4.21"
url = { version = "2.5.0", optional = true }
http = { version = "1.1.0", optional = true }
[dev-dependencies]
ed25519-dalek = { version = "2.1.1", features = ["rand_core", "signature"] }
env_logger = "0.11.3"
httptest = "0.16.1"
rand = "0.8.5"
tokio = { version = "1.37.0", features = ["full"] }
serde = { version = "1.0.199", features = ["derive"] }
serde_json = { version = "1.0.116" }
serde_test = "1.0.176"
polyproto = { path = "./", features = ["types", "reqwest", "serde"] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.42"
wasm-bindgen = "0.2.92"