-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
114 lines (104 loc) · 2.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[package]
name = "cddl"
description = "Parser for the Concise data definition language (CDDL)"
repository = "https://github.com/anweiss/cddl"
homepage = "https://cddl.anweiss.tech"
categories = ["parser-implementations", "encoding", "development-tools", "wasm"]
license = "MIT"
version = "0.9.4"
authors = ["Andrew Weiss <andrew.weiss@outlook.com>"]
readme = "README.md"
edition = "2018"
exclude = [
"cddl-lsp/**/*",
"www/**/*",
".github/**/*",
".devcontainer/**/*",
"pkg/**/*",
".dockerignore",
"Dockerfile",
"tests/**/*",
]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
base16 = { version = "0.2.1", default-features = false }
# base64 = { version = "0.21.0", default-features = false }
data-encoding = { version = "2.3.3", default-features = false }
chrono = { version = "0.4.19", optional = true }
clap = { version = "3.2.23", optional = true, features = ["derive"] }
codespan-reporting = "0.11.1"
hexf-parse = "0.2.1"
itertools = "0.11.0"
lexical-core = "0.8.3"
regex = { version = "1.5.4", default-features = false, features = [
"std",
"unicode-perl",
] }
regex-syntax = { version = "0.7.1", optional = true }
serde = { version = "1.0.127", optional = true, features = ["derive"] }
ciborium = { version = "0.2.0", optional = true }
serde_json = { version = "1.0.66", optional = true, default-features = false, features = [
"std",
] }
uriparse = { version = "0.6.3", optional = true }
base64-url = { version = "2.0.0", optional = true }
abnf_to_pest = "0.5.1"
pest_meta = "2.1.3"
pest_vm = "2.1.0"
displaydoc = { version = "0.2.3", default-features = false }
log = "0.4.14"
simplelog = "0.12.1"
[dev-dependencies]
indoc = "2.0.1"
pretty_assertions = "1.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
crossterm = { version = "0.27.0", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
serde-wasm-bindgen = { version = "0.5.0", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.25"
[features]
default = [
"std",
"ast-span",
"ast-comments",
"json",
"cbor",
"additional-controls",
"ast-parent",
]
std = [
"base16/alloc",
"data-encoding/alloc",
"serde_json",
"ciborium",
"serde",
"chrono",
"wasm-bindgen",
"serde-wasm-bindgen",
"clap",
"crossterm",
"uriparse",
"base64-url",
"regex-syntax",
]
lsp = ["std"]
additional-controls = []
ast-span = []
ast-comments = []
ast-parent = []
json = ["std"]
cbor = ["std"]
[[bin]]
name = "cddl"
required-features = ["std", "json", "cbor"]
path = "src/bin/cli.rs"
test = false
[profile.release]
opt-level = "s"
lto = true
[badges]
maintenance = { status = "actively-developed" }