-
Notifications
You must be signed in to change notification settings - Fork 14
/
Cargo.toml
72 lines (54 loc) · 1.77 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
70
71
72
[package]
name = "bendy"
version = "0.4.0-beta.2"
edition = "2018"
authors = [
"P3KI <[email protected]>",
"TQ Hirsch <[email protected]>",
"Bruno Kirschner <[email protected]>",
]
description = """
A rust library for encoding and decoding bencode with enforced canonicalization rules.
"""
repository = "https://github.com/P3KI/bendy"
license = "BSD-3-Clause"
readme = "README.md"
keywords = ["bencode", "serialization", "deserialization", "bittorent"]
categories = ["encoding", "no-std"]
[badges]
maintenance = {status = "actively-developed"}
travis-ci = { repository = "P3KI/bendy" }
[profile.release]
lto = true
opt-level = 3
codegen-units = 1
### DEPENDENCIES ###############################################################
[dependencies]
rustversion = "1.0.4"
serde_ = { version = "^1.0" , optional = true, package = "serde" }
serde_bytes = { version = "^0.11.3", optional = true }
snafu = { version = "^0.7.1", default_features = false }
[dev-dependencies]
doc-comment = "0.3.3"
regex = "^1.0"
serde_derive = "^1.0"
timeit = "0.1.2"
### FEATURES ###################################################################
[features]
default = ["std"]
# Provide implementations for common standard library types like `Vec<T>` and
# `HashMap<K, V>`. Requires a dependency on the Rust standard library.
std = ["snafu/std"]
# Support serde serialization to and deserialization from bencode
serde = ["serde_", "serde_bytes"]
### Targets ####################################################################
[[test]]
name = "core_test"
required-features = ["std"]
[[example]]
name = "encode_torrent"
required-features = ["std"]
### DOCS.RS ####################################################################
[package.metadata.docs.rs]
# Enable all features so docs are comprehensive
all-features = true