-
Notifications
You must be signed in to change notification settings - Fork 20
/
Cargo.toml
57 lines (46 loc) · 1.38 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
[package]
name = "asn1rs"
version = "0.4.0"
authors = ["Michael Watzko <[email protected]>"]
edition = "2021"
description = "ASN.1 to Rust compiler with Protobuf code generator. Supports ASN.1 UPER"
keywords = ["asn1", "uper", "protobuf", "compiler"]
categories = ["encoding", "parsing"]
repository = "https://github.com/kellerkindt/asn1rs"
license = "MIT/Apache-2.0"
readme = "README.md"
[workspace]
members = [
"asn1rs-macros",
"asn1rs-model"
]
[lib]
name = "asn1rs"
path = "src/lib.rs"
[[bin]]
name = "asn1rs"
path = "src/main.rs"
required-features = ["model", "clap"]
[dependencies]
backtrace = "0.3.69"
# feature asn1rs-*
asn1rs-model = { version = "0.4.0", path = "asn1rs-model", optional = true }
asn1rs-macros = { version = "0.4.0", path = "asn1rs-macros", optional = true }
# feature protobuf
byteorder = { version = "1.5.0", optional = true }
# for binary only
clap = { version = "4.4.18", features = ["derive", "env"], optional = true }
[dev-dependencies]
syn = { version = "2.0.48", features = ["visit"] }
quote = "1.0.3"
proc-macro2 = "1.0.10"
codegen = "0.2.0"
[features]
default = ["macros", "model", "clap"]
protobuf = ["asn1rs-model/protobuf", "byteorder"]
macros = ["asn1rs-macros"]
model = ["asn1rs-model"]
debug-proc-macro = ["asn1rs-macros/debug-proc-macro", "asn1rs-model/debug-proc-macro"]
descriptive-deserialize-errors = []
[package.metadata.docs.rs]
all-features = true