| 1 |
[package] |
| 2 |
name = "bendy" |
| 3 |
version = "0.6.1" |
| 4 |
edition = "2024" |
| 5 |
|
| 6 |
authors = [ |
| 7 |
"P3KI <[email protected]>", |
| 8 |
"TQ Hirsch <[email protected]>", |
| 9 |
"Bruno Kirschner <[email protected]>", |
| 10 |
"Oliver Uvman <[email protected]>", |
| 11 |
] |
| 12 |
|
| 13 |
description = """ |
| 14 |
A rust library for encoding and decoding bencode with enforced canonicalization rules. |
| 15 |
""" |
| 16 |
|
| 17 |
repository = "https://github.com/P3KI/bendy" |
| 18 |
license = "BSD-3-Clause" |
| 19 |
readme = "../README.md" |
| 20 |
|
| 21 |
keywords = ["bencode", "serialization", "deserialization", "bittorent"] |
| 22 |
categories = ["encoding", "no-std"] |
| 23 |
|
| 24 |
[badges] |
| 25 |
maintenance = {status = "actively-developed"} |
| 26 |
travis-ci = { repository = "P3KI/bendy" } |
| 27 |
|
| 28 |
### DEPENDENCIES ############################################################### |
| 29 |
|
| 30 |
[dependencies] |
| 31 |
rustversion = "1.0.4" |
| 32 |
serde_ = { version = "^1.0" , optional = true, package = "serde" } |
| 33 |
serde_bytes = { version = "^0.11.3", optional = true } |
| 34 |
thiserror = { version = "^2.0.14", default-features = false } |
| 35 |
smallvec = { version = "^1.15.1", optional = true } |
| 36 |
|
| 37 |
[dev-dependencies] |
| 38 |
doc-comment = "0.3.3" |
| 39 |
regex = "^1.0" |
| 40 |
serde_derive = "^1.0" |
| 41 |
timeit = "0.1.2" |
| 42 |
smallvec = "^1.15.1" |
| 43 |
|
| 44 |
### FEATURES ################################################################### |
| 45 |
|
| 46 |
[features] |
| 47 |
default = ["std"] |
| 48 |
|
| 49 |
# Provide implementations for common standard library types like `Vec<T>` and |
| 50 |
# `HashMap<K, V>`. Requires a dependency on the Rust standard library. |
| 51 |
std = ["thiserror/std"] |
| 52 |
|
| 53 |
# Support serde serialization to and deserialization from bencode |
| 54 |
serde = ["serde_", "serde_bytes"] |
| 55 |
|
| 56 |
# Adds extra UTF-8 decode checks |
| 57 |
debug = [] |
| 58 |
|
| 59 |
# Provide utilities for inspecting, testing, debugging bencode |
| 60 |
inspect = ["smallvec"] |
| 61 |
|
| 62 |
### Targets #################################################################### |
| 63 |
|
| 64 |
[[test]] |
| 65 |
name = "core_test" |
| 66 |
required-features = ["std"] |
| 67 |
|
| 68 |
[[example]] |
| 69 |
name = "encode_torrent" |
| 70 |
required-features = ["std"] |
| 71 |
|
| 72 |
### DOCS.RS #################################################################### |
| 73 |
|
| 74 |
[package.metadata.docs.rs] |
| 75 |
# Enable all features so docs are comprehensive |
| 76 |
all-features = true |