forked from rpm-rs/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
73 lines (65 loc) · 2.04 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
[package]
name = "rpm"
version = "0.9.0"
authors = [
"René Richter <[email protected]>",
"Bernhard Schuster <[email protected]>",
"Max Dymond <[email protected]>",
"Daniel Alley <[email protected]>"
]
edition = "2021"
license = "Apache-2.0 OR MIT"
description = "A pure rust library for building and parsing RPMs"
homepage = "https://github.com/rpm-rs/rpm"
repository = "https://github.com/rpm-rs/rpm"
readme = "README.md"
keywords = ["RPM", "packaging"]
categories = ["parsing", "development-tools"]
rust-version = "1.63.0"
[lib]
name = "rpm"
[dependencies]
thiserror = "1"
nom = "7"
num-traits = "0.2"
num-derive = "0.3"
num = "0.4"
enum-primitive-derive = "0.2"
enum-display-derive = "0.1"
cpio = "0.2"
# consider migrating to flate2
libflate = "1"
sha2 = "0.10.2"
md-5 = "0.10"
sha1 = "0.10"
rand = { version = "0.8" }
pgp = { version="0.9", optional = true }
chrono = "0.4"
log = "0.4"
itertools = "0.10"
hex = { version = "0.4", features = ["std"] }
zstd = "0.12.0"
futures = { version = "0.3.25", optional = true }
# Libraries required for with_file_async() implementations
async-std = { version = "1.12.0", optional = true }
tokio = {version = "1", optional = true}
tokio-util = { version = "0.7.4", features = ["compat"], optional = true}
[dev-dependencies]
rsa = { version = "0.8" }
rsa-der = { version = "^0.3.0" }
env_logger = "0.10.0"
serial_test = "1.0"
reqwest = { version = "0.11.10", features = ["blocking"] }
# Use for testing async files when async-futures enabled
tokio = {version = "1", features = ["full"]}
tokio-util = { version = "0.7.4", features = ["compat"]}
[features]
default = ["signature-pgp", "async-futures", "with-file-async-tokio"]
signature-pgp = ["signature-meta", "pgp"]
signature-meta = []
async-futures = ["futures"]
# The use of these features implies that async-futures are being used -
# explicitly define this feature.
test-with-podman = ["async-futures", "signature-meta", "tokio-util"]
with-file-async-tokio = ["async-futures", "tokio/fs", "tokio-util"]
with-file-async-async-std = ["async-futures", "async-std"]