-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
51 lines (41 loc) · 1.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
[package]
name = "apksig"
version = "0.3.0"
edition = "2021"
description = "Decoding the APK Signing Block"
documentation = "https://docs.rs/apksig"
license = "MIT"
readme = "./README.md"
repository = "https://github.com/Its-Just-Nans/apksig"
keywords = ["apk", "android", "signing", "signature", "apksig"]
categories = ["api-bindings", "command-line-utilities"]
exclude = ["tests/", "web_demo/"]
[dependencies]
serde = { version = "1.0.217", features = ["derive"], optional = true }
md5 = { version = "0.7.0", optional = true }
sha1 = { version = "0.10.6", optional = true }
sha2 = { version = "0.10.8", optional = true }
rsa = { version = "0.9.7", features = ["sha2"], optional = true }
[dev-dependencies]
# test serialization (note that serialization is used in web_demo)
serde_json = "1.0.138"
# test main.rs
assert_cmd = "2.0.16"
predicates = "3.1.3"
# private key generation for testing
rand = "0.8.0"
# test issuer
x509-parser = { version = "0.17.0" }
[features]
# by default, very opinionated features are enabled
# used mostly for main.rs
default = ["directprint", "serde", "hash", "signing"]
# verify the APK Signing Block
signing = ["hash", "dep:rsa"]
# allows to serialize and deserialize structs with serde
serde = ["dep:serde"]
# print the APK Signing Block while parsing
directprint = []
# allows to calculate the hash of Certificate
# provides the functions sha1_cert(), sha256_cert(), md5_cert() for the Certificate struct
hash = ["dep:md5", "dep:sha1", "dep:sha2"]