[package]
name = "base-d"
version = "3.0.31"
edition = "2024"
authors = ["Cory Zibell <cory@zibell.cloud>"]
description = "Universal base encoder: Encode binary data to 33+ dictionaries including RFC standards, hieroglyphs, emoji, and more"
license = "MIT OR Apache-2.0"
repository = "https://github.com/coryzibell/base-d"
homepage = "https://github.com/coryzibell/base-d"
documentation = "https://docs.rs/base-d"
readme = "README.md"
keywords = ["encoding", "base64", "cli", "unicode", "converter"]
categories = ["command-line-utilities", "encoding", "text-processing"]
[features]
default = ["simd", "native-compression", "cli"]
simd = []
native-compression = ["dep:lz4", "dep:xz2", "dep:zstd"]
cli = ["terminal_size", "crossterm"]
wasm = ["lz4_flex", "lzma-rs", "ruzstd", "wasm-bindgen", "getrandom/wasm_js"]
[dependencies]
num-bigint = "0.4"
num-traits = "0.2"
num-integer = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
clap = { version = "4.5", features = ["derive"] }
dirs = "6.0"
rand = "0.9"
terminal_size = { version = "0.4", optional = true }
crossterm = { version = "0.29", optional = true }
flate2 = "1.0"
brotli = "8.0"
zstd = { version = "0.13", optional = true }
lz4 = { version = "1.28", optional = true }
snap = "1.1.1"
xz2 = { version = "0.1.7", optional = true }
lz4_flex = { version = "0.11", optional = true }
lzma-rs = { version = "0.3", optional = true }
ruzstd = { version = "0.7", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
getrandom = { version = "0.3", optional = true }
sha2 = "0.10.9"
sha3 = "0.10.8"
blake2 = "0.10.6"
blake3 = "1.8.2"
md-5 = "0.10.6"
twox-hash = { version = "2.1.2", default-features = false, features = ["std", "xxhash32", "xxhash64", "xxhash3_64", "xxhash3_128"] }
crc = "3.3.0"
ascon-hash = "0.3.1"
k12 = "0.2.1"
hex = "0.4.3"
shellexpand = "3.1"
markdown = "1.0.0-alpha.21"
[dev-dependencies]
criterion = { version = "0.7", features = ["html_reports"] }
assert_cmd = "2.0"
predicates = "3.0"
[dev-dependencies.cargo-husky]
version = "1"
default-features = false
features = ["user-hooks"]
[lib]
name = "base_d"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[[bench]]
name = "encoding"
harness = false
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-fmt = "zip"