[package]
edition = "2018"
rust-version = "1.95.0"
name = "faster-hex"
version = "1.0.0"
authors = ["zhangsoledad <787953403@qq.com>"]
build = false
exclude = [
"afl/*",
"benches/*",
"fuzz/*",
"ci/*",
".github/*",
".cargo/*",
".gitignore",
"rust-toolchain.toml",
"proptest-regressions/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, checked hex encoding and decoding with SIMD and no_std support."
readme = "README.md"
keywords = [
"simd",
"hex",
"no-std",
]
categories = [
"encoding",
"no-std",
]
license = "MIT"
repository = "https://github.com/nervosnetwork/faster-hex"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = ["defmt?/alloc"]
default = [
"std",
"serde",
]
defmt-03 = [
"dep:defmt",
"heapless?/defmt-03",
]
heapless-08 = ["dep:heapless"]
serde = [
"dep:serde",
"serde/alloc",
"alloc",
]
std = [
"alloc",
"serde?/std",
]
[lib]
name = "faster_hex"
path = "src/lib.rs"
[[test]]
name = "allocations"
path = "tests/allocations.rs"
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
[[test]]
name = "format"
path = "tests/format.rs"
[[test]]
name = "owned_decode"
path = "tests/owned_decode.rs"
[[test]]
name = "public_api"
path = "tests/public_api.rs"
[[test]]
name = "serde_protocol"
path = "tests/serde_protocol.rs"
[dependencies.defmt]
version = "0.3"
optional = true
[dependencies.heapless]
version = "0.8"
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
optional = true
default-features = false
[dev-dependencies.better-hex]
version = "1.0"
[dev-dependencies.const-hex]
version = "1.19"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.data-encoding]
version = "2"
[dev-dependencies.defmt]
version = "0.3"
features = ["unstable-test"]
[dev-dependencies.fashex]
version = "0.1"
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.hex-simd]
version = "0.8"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.postcard]
version = "1.1.3"
default-features = false
[dev-dependencies.proptest]
version = "1.0"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[lints.clippy]
missing_errors_doc = "warn"
missing_panics_doc = "warn"
undocumented_unsafe_blocks = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]