-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCargo.toml
90 lines (78 loc) · 2.91 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
[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.0-beta.1"
authors = ["Andrew Weiss <[email protected]>"]
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.13.0", default-features = false }
chrono = { version = "0.4.19", optional = true }
clap = { version = "2.33.3", optional = true }
codespan-reporting = "0.11.1"
hexf-parse = "0.2.1"
itertools = "0.10.1"
lexical-core = "0.7.6"
regex = { version = "1.5.4", default-features = false, features = ["std"] }
regex-syntax = { version = "0.6.25", optional = true }
serde = { version = "1.0.127", optional = true, features = ["derive"] }
ciborium = { git = "https://github.com/enarx/ciborium", branch = "main", optional = true }
serde_json = { version = "1.0.66", optional = true, default-features = false }
uriparse = { version = "0.6.3", optional = true }
base64-url = { version = "1.4.10", optional = true }
abnf_to_pest = "0.5.0"
pest_meta = "2.1.3"
pest_vm = "2.1.0"
displaydoc = { version = "0.2.3", default-features = false }
log = "0.4.14"
simplelog = "0.10.0"
fake = { version = "2.4.0", optional = true, features = ["derive", "chrono"] }
rand = { version = "0.8.0", optional = true }
getrandom = { version = "0.2.3", features = ["js"] }
[dev-dependencies]
indoc = "1.0.3"
pretty_assertions = "0.7.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
crossterm = { version = "0.21.0", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
wasm-bindgen = { version = "0.2.75", features = ["serde-serialize"], optional = true }
wee_alloc = { version = "0.4.5", 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"]
std = ["base16/alloc", "base64/alloc", "serde_json", "ciborium", "serde", "chrono", "wasm-bindgen", "clap", "crossterm", "uriparse", "base64-url", "regex-syntax", "fake", "rand"]
lsp = ["std"]
additional-controls = []
ast-span = []
ast-comments = []
json = ["std"]
cbor = ["std"]
[[bin]]
name = "cddl"
required-features = ["std", "json", "cbor"]
path = "src/bin/cli.rs"
test = false
[[bin]]
name = "repl"
required-features = ["std"]
path = "src/bin/repl.rs"
test = false
[[test]]
name = "cddl"
required-features = ["std", "ast-span", "ast-comments", "json", "cbor"]
path = "tests/cddl.rs"
[profile.release]
opt-level = "s"
lto = true
[badges]
maintenance = { status = "actively-developed" }