| 1 |
[package] |
| 2 |
name = "adler32" |
| 3 |
version = "1.2.0" |
| 4 |
authors = ["Remi Rampin <[email protected]>"] |
| 5 |
edition = "2018" |
| 6 |
description = "Minimal Adler32 implementation for Rust." |
| 7 |
documentation = "https://docs.rs/adler32/" |
| 8 |
repository = "https://github.com/remram44/adler32-rs" |
| 9 |
readme = "README.md" |
| 10 |
keywords = ["adler32", "hash", "rolling"] |
| 11 |
license = "Zlib" |
| 12 |
|
| 13 |
[dependencies] |
| 14 |
# Internal features, only used when building as part of libstd, not part of the |
| 15 |
# stable interface of this crate. |
| 16 |
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' } |
| 17 |
compiler_builtins = { version = '0.1.2', optional = true } |
| 18 |
|
| 19 |
[features] |
| 20 |
default = ['std'] |
| 21 |
std = [] |
| 22 |
|
| 23 |
# Internal feature, only used when building as part of libstd, not part of the |
| 24 |
# stable interface of this crate. |
| 25 |
rustc-dep-of-std = ['core', 'compiler_builtins'] |
| 26 |
|
| 27 |
[dev-dependencies] |
| 28 |
# The lines marked 'benchmark only' get removed on CI for platforms/versions |
| 29 |
# where we don't run the benchmarks (e.g. versions not supported by criterion) |
| 30 |
criterion = "0.3" # benchmark only |
| 31 |
humansize = "1.1" # benchmark only |
| 32 |
rand = "0.7" |
| 33 |
getrandom = { version = "0.1", features = ["wasm-bindgen"] } |
| 34 |
|
| 35 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
| 36 |
wasm-bindgen = "0.2.63" |
| 37 |
wasm-bindgen-test = "0.3" |
| 38 |
|
| 39 |
[[bench]] |
| 40 |
path = "src/bench.rs" |
| 41 |
name = "bench" |
| 42 |
harness = false |
| 43 |
|
| 44 |
[lib] |
| 45 |
# Disable `libtest` so Criterion-only parameters like `--save-baseline` work. |
| 46 |
# See https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options |
| 47 |
bench = false |