forked from kellerkindt/asn1rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
66 lines (55 loc) · 1.75 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
[package]
name = "asn1rs"
version = "0.3.1"
authors = ["Michael Watzko <[email protected]>"]
edition = "2018"
description = "ASN.1 to Rust, Protobuf and SQL compiler/code generator. Supports ASN.1 UPER"
keywords = ["asn1", "uper", "protobuf", "sql", "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"]
[dependencies]
backtrace = "0.3.9"
clap = "2.32.0"
codegen = "0.1.1"
byteorder = "1.2.4"
serde = "1.0.115"
serde_derive = "1.0.115"
# feature postgres
postgres = { version = "0.19.1", optional = true }
# feature async-psql
tokio = { version = "1.8.1", optional = true, features = ["macros"] }
tokio-postgres = { version = "0.7.2", optional = true }
futures = { version = "0.3.4", optional = true }
bytes = { version = "1.0", optional = true }
# feature asn1rs-*
asn1rs-model = { version = "0.3.0", path = "asn1rs-model", optional = true }
asn1rs-macros = { version = "0.3.1", path = "asn1rs-macros", optional = true }
[dev-dependencies]
syn = {version = "1.0.109", features = ["full", "visit", "extra-traits"] }
quote = "1.0.3"
proc-macro2 = "1.0.10"
[features]
default = ["macros", "model"]
psql = ["asn1rs-model/psql", "postgres", "bytes"]
async-psql = ["asn1rs-model/async-psql", "tokio", "tokio-postgres", "futures", "bytes"]
protobuf = ["asn1rs-model/protobuf"]
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