-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
46 lines (39 loc) · 1.76 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[package]
name = "chksum-sha2"
version = "0.1.0"
authors = ["Konrad Goławski <[email protected]>"]
edition = "2021"
rust-version = "1.74.0"
description = "An implementation of SHA-2 hash functions with a straightforward interface for computing digests of bytes, files, directories, and more."
readme = ".cargo/README.md"
repository = "https://github.com/chksum-rs/sha2"
license = "MIT"
keywords = ["checksum", "digest", "hash", "sha2", "sha-2"]
categories = ["algorithms", "cryptography", "filesystem"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
chksum-core = "0.1.0"
chksum-hash-sha2 = { version = "0.0.1", default-features = false }
chksum-sha2-224 = { version = "0.1.0", optional = true }
chksum-sha2-256 = { version = "0.1.0", optional = true }
chksum-sha2-384 = { version = "0.1.0", optional = true }
chksum-sha2-512 = { version = "0.1.0", optional = true }
[dev-dependencies]
tokio = { version = "1.37.0", features = ["macros", "rt", "rt-multi-thread"] }
[features]
default = [
# algorithms
"224", "256", "384", "512",
]
# algorithms
224 = ["chksum-sha2-224", "chksum-hash-sha2/224"]
256 = ["chksum-sha2-256", "chksum-hash-sha2/256"]
384 = ["chksum-sha2-384", "chksum-hash-sha2/384"]
512 = ["chksum-sha2-512", "chksum-hash-sha2/512"]
# extra options
reader = ["chksum-sha2-224?/reader", "chksum-sha2-256?/reader", "chksum-sha2-384?/reader", "chksum-sha2-512?/reader"]
writer = ["chksum-sha2-224?/writer", "chksum-sha2-256?/writer", "chksum-sha2-384?/writer", "chksum-sha2-512?/writer"]
# async runtimes
async-runtime-tokio = ["chksum-core/async-runtime-tokio", "chksum-sha2-224?/async-runtime-tokio", "chksum-sha2-256?/async-runtime-tokio", "chksum-sha2-384?/async-runtime-tokio", "chksum-sha2-512?/async-runtime-tokio"]