[package]
edition = "2024"
rust-version = "1.93.1"
name = "fashex"
version = "0.0.1"
authors = ["Hantong Chen <cxwdyx620@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Conversion from bytes to hexadecimal string."
readme = "README.md"
keywords = [
"hex",
"fmt",
]
categories = [
"no-std",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/Hanyu/fashex"
[package.metadata.docs.rs]
features = [
"std",
"nightly",
"portable-simd",
"experimental-x86-avx512-simd",
"experimental-loongarch64-simd",
]
additional-targets = [
"loongarch64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
alloc = []
default = []
experimental-loongarch64-simd = ["nightly"]
experimental-x86-avx512-simd = []
fuzz = [
"alloc",
"std",
"nightly",
"portable-simd",
"experimental-x86-avx512-simd",
"experimental-loongarch64-simd",
]
nightly = []
portable-simd = ["nightly"]
std = ["alloc"]
[lib]
name = "fashex"
path = "src/lib.rs"
[[bench]]
name = "comparison"
path = "benches/comparison.rs"
harness = false
[dependencies]
[dev-dependencies]
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dependencies.cpufeatures]
version = "0.3.0"
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.const-hex]
version = "=1.18.1"
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.fastant]
version = "0.1.11"
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.faster-hex]
version = "=0.10.0"
features = [
"alloc",
"std",
]
default-features = false
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.fastrand]
version = "2.3"
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64"))'.dev-dependencies.hex-simd]
version = "=0.8.0"
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "warn"
collection_is_never_read = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
disallowed_script_idents = "deny"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
else_if_without_else = "deny"
enum_glob_use = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
filetype_is_file = "warn"
inefficient_to_string = "warn"
mem_forget = "warn"
missing_panics_doc = "warn"
mod_module_files = "deny"
multiple_inherent_impl = "warn"
must_use_candidate = "allow"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_continue = "warn"
panic = "warn"
significant_drop_in_scrutinee = "warn"
string_slice = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
wildcard_dependencies = "deny"
wildcard_imports = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unexpected_cfgs = "allow"
unknown_lints = "allow"
unreachable_pub = "warn"
unsafe_code = "warn"
[profile.dev]
debug = "line-tables-only"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
incremental = false
strip = true