bendy 0.4.0-beta.2

A rust library for encoding and decoding bencode with enforced canonicalization rules.
Documentation
[package]
name = "bendy"
version = "0.4.0-beta.2"
edition = "2018"

authors = [
    "P3KI <contact@p3ki.com>",
    "TQ Hirsch <tq@p3ki.com>",
    "Bruno Kirschner <bruno@p3ki.com>",
]

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"

### 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