[package]
edition = "2021"
name = "uhash-core"
version = "0.2.0"
authors = ["Cyberia"]
build = false
exclude = [
"ios-test/",
"web/",
"*.a",
"*.xcodeproj",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "UniversalHash v4 algorithm - democratic proof-of-work for Bostrom blockchain"
readme = "README.md"
keywords = [
"crypto",
"hash",
"pow",
"blockchain",
"cosmos",
]
categories = [
"cryptography",
"no-std",
]
license = "Unlicense"
repository = "https://github.com/cyberia-to/uhash-core"
[features]
default = [
"std",
"parallel",
]
parallel = ["rayon"]
std = ["blake3/std"]
[lib]
name = "uhash_core"
crate-type = [
"lib",
"staticlib",
"cdylib",
]
path = "src/lib.rs"
[[bench]]
name = "uhash_bench"
path = "benches/uhash_bench.rs"
harness = false
[dependencies.aes]
version = "0.8"
[dependencies.blake3]
version = "1.5"
default-features = false
[dependencies.cipher]
version = "0.4"
[dependencies.sha2]
version = "0.10"
features = ["compress"]
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.hex]
version = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.cpufeatures]
version = "0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10"
optional = true
[profile.bench]
lto = "fat"
codegen-units = 1
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"