-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
61 lines (56 loc) · 1.44 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
[package]
authors = ["Jonas Bushart"]
description = "A small collection of convenient and utility functions developed for personal use."
documentation = "https://docs.rs/misc_utils/"
edition = "2021"
keywords = ["misc", "utils", "convenience"]
license = "Unlicense"
name = "misc_utils"
readme = "README.md"
repository = "https://github.com/jonasbb/rust_misc_utils"
version = "4.3.0"
[lib]
name = "misc_utils"
path = "src/lib.rs"
[features]
async-fs = [
"tokio",
"tokio/fs",
"tokio/rt",
]
default = [
"file-gz",
"file-xz",
"jsonl",
]
file-bz2 = ["bzip2"]
file-gz = ["flate2"]
file-xz = ["xz2"]
# A nice multi-threaded JSONL iterator which puts file reading and JSON parsing into its own
# threads.
jsonl = ["serde", "serde_json"]
[dependencies]
bzip2 = {version = "0.4.1", optional = true}
flate2 = {version = "1.0", optional = true}
log = "0.4"
num-traits = "0.2.6"
serde = {version = "1.0", optional = true}
serde_json = {version = "1.0", optional = true}
thiserror = "2.0.3"
tokio.default-features = false
tokio.optional = true
tokio.version = "1.17"
xz2 = {version = "0.1", optional = true}
[dev-dependencies]
anyhow = "1.0.34"
expect-test = "1.2.2"
pretty_assertions = "1.0"
# Optional dev-dependencies are not a thing :(
serde.features = ["derive"]
serde.version = "1.0"
tempfile = "3.0"
version-sync = "0.9.2"
[package.metadata.docs.rs]
# https://github.com/onur/docs.rs/pull/131
all-features = true
default-target = "x86_64-unknown-linux-gnu"