-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
74 lines (61 loc) · 2.46 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[package]
name = "chksum"
version = "0.4.0"
authors = ["Konrad Goławski <konrad@golawski.it>"]
edition = "2021"
rust-version = "1.74.0"
description = "An implementation of 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/lib"
license = "MIT"
keywords = ["checksum", "hash", "directory-checksum", "file-checksum", "stdin-checksum"]
categories = ["algorithms", "cryptography", "filesystem"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
chksum-core = "0.1.0"
chksum-hash = { version = "0.5.0", default-features = false }
chksum-md5 = { version = "0.1.0", optional = true }
chksum-sha1 = { version = "0.1.0", optional = true }
chksum-sha2 = { version = "0.1.0", default-features = false, optional = true }
chksum-reader = { version = "0.1.0", optional = true }
chksum-writer = { version = "0.1.0", optional = true }
[dev-dependencies]
tokio = { version = "1.37.0", features = ["macros", "rt", "rt-multi-thread"] }
[features]
default = [
# algorithms
"md5", "sha1", "sha2",
]
# algorithms
md5 = ["chksum-md5", "chksum-hash/md5"]
sha1 = ["chksum-sha1", "chksum-hash/sha1"]
sha2 = ["sha2-224", "sha2-256", "sha2-384", "sha2-512", "chksum-hash/sha2"]
sha2-224 = ["chksum-sha2/224", "chksum-hash/sha2-224"]
sha2-256 = ["chksum-sha2/256", "chksum-hash/sha2-256"]
sha2-384 = ["chksum-sha2/384", "chksum-hash/sha2-384"]
sha2-512 = ["chksum-sha2/512", "chksum-hash/sha2-512"]
# extra options
reader = ["chksum-reader", "chksum-md5?/reader", "chksum-sha1?/reader", "chksum-sha2?/reader"]
writer = ["chksum-writer", "chksum-md5?/writer", "chksum-sha1?/writer", "chksum-sha2?/writer"]
# async runtimes
async-runtime-tokio = ["chksum-core/async-runtime-tokio", "chksum-md5?/async-runtime-tokio", "chksum-sha1?/async-runtime-tokio", "chksum-sha2?/async-runtime-tokio"]
[[example]]
name = "md5-async-runtime-tokio"
required-features = ["md5", "async-runtime-tokio"]
[[example]]
name = "sha1-async-runtime-tokio"
required-features = ["async-runtime-tokio"]
[[example]]
name = "sha2-224-async-runtime-tokio"
required-features = ["async-runtime-tokio"]
[[example]]
name = "sha2-256-async-runtime-tokio"
required-features = ["async-runtime-tokio"]
[[example]]
name = "sha2-384-async-runtime-tokio"
required-features = ["async-runtime-tokio"]
[[example]]
name = "sha2-512-async-runtime-tokio"
required-features = ["async-runtime-tokio"]