[package]
edition = "2021"
rust-version = "1.64"
name = "const-hex"
version = "1.18.0"
authors = ["DaniPopes <57450786+DaniPopes@users.noreply.github.com>"]
build = false
exclude = [
".github/",
"benches/",
"fuzz/",
"tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast byte array to hex string conversion"
homepage = "https://github.com/danipopes/const-hex"
documentation = "https://docs.rs/const-hex"
readme = "README.md"
keywords = [
"hex",
"bytes",
"fmt",
]
categories = [
"value-formatting",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danipopes/const-hex"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
__fuzzing = [
"dep:proptest",
"std",
]
alloc = [
"serde_core?/alloc",
"proptest?/alloc",
]
core-error = []
default = ["std"]
force-generic = []
hex = []
nightly = []
portable-simd = []
serde = ["dep:serde_core"]
std = [
"serde_core?/std",
"proptest?/std",
"alloc",
]
[lib]
name = "const_hex"
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1"
[dependencies.proptest]
version = "1.4"
optional = true
default-features = false
[dependencies.serde_core]
version = "1.0"
optional = true
default-features = false
[dev-dependencies.divan]
version = "3"
package = "codspeed-divan-compat"
[dev-dependencies.faster-hex]
version = "0.10.0"
features = ["alloc"]
default-features = false
[dev-dependencies.hex]
version = "~0.4.2"
features = ["alloc"]
default-features = false
[dev-dependencies.hex-simd]
version = "0.8"
features = ["alloc"]
default-features = false
[dev-dependencies.rustc-hex]
version = "2.1"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies.cpufeatures]
version = "0.2"
[profile.bench]
inherits = "profiling"
[profile.profiling]
debug = 2
inherits = "release"
strip = false
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 16
debug = 0
panic = "abort"
strip = "debuginfo"