-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (64 loc) · 1.93 KB
/
Cargo.toml
File metadata and controls
79 lines (64 loc) · 1.93 KB
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
75
76
77
78
79
[package]
name = "abootimg-oxide"
version.workspace = true
authors.workspace = true
edition = "2021"
rust-version = "1.86.0" # Same as Nixpkgs 25.05, a sane default
description = "Android boot image (boot.img) parser"
readme = "README.md"
repository.workspace = true
license.workspace = true
categories = ["parser-implementations", "no-std"]
[dependencies]
binrw = { version = "0.15.0", default-features = false, features = ["verbose-backtrace"] }
document-features = "0.2.12"
digest = { version = "0.10.7", optional = true }
[dev-dependencies]
expect-test-bytes = "0.1.0"
sha1.workspace = true
sha2.workspace = true
hex_fmt.workspace = true
[lints]
workspace = true
[features]
default = ["std"]
## Enables [`binrw`](mod@binrw)'s `std` feature. See its documentation for more. Disabling this feature will make this crate `no_std`-compatible, while still requiring `alloc`.
std = ["binrw/std"]
## Provide the [`HeaderV0::compute_hash_digest`] helper
hash = ["dep:digest"]
[package.metadata.docs.rs]
all-features = true
cargo-args = [
# enable unstable features in the documentation
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
]
[[example]]
name = "extract-kernel"
required-features = ["std"]
[[example]]
name = "compute-hash-digest"
required-features = ["std", "hash"]
doc-scrape-examples = true # Make sure that the examples are scraped
[workspace]
members = ["mkbootimg", "unpack_bootimg"]
resolver = "2"
[workspace.package]
version = "0.3.1"
authors = ["Axel Karjalainen <axel@axka.fi>"]
repository = "https://github.com/axelkar/abootimg-oxide"
license = "MIT OR Apache-2.0"
[workspace.dependencies]
clap = { version = "4.5.16", features = ["derive"] }
hex_fmt = "0.3.0"
sha1 = "0.10.6"
sha2 = "0.10.9"
[workspace.lints.rust]
missing_docs = "warn"
[workspace.lints.clippy]
pedantic = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
should_panic_without_expect = "warn"
str_to_string = "warn"
implicit_clone = "warn"