-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
56 lines (42 loc) · 1.32 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
[package]
name = "webmention"
description = "Library and a CLI tool for sending and validation webmentions"
homepage = "https://marinintim.com/projects/webmention/"
repository = "https://github.com/marinintim/webmention.git"
readme = "./README.md"
version = "0.6.0"
authors = ["Tim Marinin <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
keywords = ["indieweb"]
categories = ["command-line-utilities", "web-programming"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# HTTP GET + POST
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
# parsing HTML for data
select = "0.6"
# working with URLs
url = { version = "2.2", features = ["serde"] }
# serializing + deserializing webmentions
serde = { version = "1", features = ["derive"] }
# public errors
thiserror = "1"
# wrapping errors
anyhow = "1"
# parsing Link header
nom = "7"
# for web server
rocket = { version = "0.4.7", optional = true }
# for CLI
clap = { version = "2.33.3", optional = true }
tokio = { version = "1", optional = true, default-features = false }
[dev-dependencies]
tokio-test = "0.4.2"
[features]
default = []
cli = ["clap", "tokio", "tokio/rt", "tokio/macros"]
receive = ["cli", "rocket"]
[[bin]]
name = "webmention"
required-features = ["cli"]