-
Notifications
You must be signed in to change notification settings - Fork 26
/
Cargo.toml
54 lines (46 loc) · 1.25 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
[package]
name = "askalono"
version = "0.5.0"
edition = "2021"
description = "a library to detect the contents of license files"
license = "Apache-2.0"
repository = "https://github.com/jpeddicord/askalono"
authors = ["Jacob Peddicord <jacob@peddicord.net>"]
readme = "README.md"
include = [
"/Cargo.toml",
"/examples/**/*",
"/LICENSE",
"/NOTICE",
"/README.md",
"/src/**/*",
]
[dependencies]
anyhow = "1.0.44"
lazy_static = "1.3.0"
log = "0.4.6"
regex = "1.1.7"
rmp-serde = "1.1.1"
serde = { version = "1.0.92", features = ["derive"] }
unicode-normalization = "0.1.8"
# spdx deps
serde_json = { version = "1.0.39", optional = true }
# gzip via flate2 is available via feature flag if you prefer that over
# zstd. it's also enabled for wasm32 builds, as zstd doesn't yet compile for
# that target. in order to build a gzip cache, you'll need the flag enabled
# on your build machine too.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rayon = "1.2"
zstd = "0.13"
flate2 = { version = "1.0.14", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
flate2 = "1.0.14"
[dev-dependencies]
env_logger = "0.11"
[lib]
name = "askalono"
path = "src/lib.rs"
[features]
default = ["spdx"]
gzip = ["flate2"]
spdx = ["serde_json"]