-
Notifications
You must be signed in to change notification settings - Fork 51
/
Cargo.toml
49 lines (40 loc) · 1.23 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
[package]
name = "schemafy"
version = "0.6.0" # VERSION_TAG
authors = ["Markus Westerlind <marwes91@gmail.com>"]
edition = "2018"
description = "Generates serializable Rust types from a json schema"
license = "MIT"
keywords = ["json-schema", "code-generation"]
repository = "https://github.com/Marwes/schemafy"
documentation = "https://docs.rs/schemafy"
[lib]
proc-macro = true
[[bin]]
name = "generate-tests"
path = "src/generate_tests.rs"
required-features = ["generate-tests"]
[[bin]]
name = "schemafy"
path = "src/main.rs"
required-features = ["tool"]
[workspace]
[dependencies]
anyhow = { version = "1", optional = true }
schemafy_core = { version = "0.6.0", path = "schemafy_core" } # VERSION_TAG
schemafy_lib = { version = "0.6.0", path = "schemafy_lib" } # VERSION_TAG
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
serde_repr = "0.1.7"
structopt = { version = "0.3", optional = true }
syn = "1.0"
tempfile = { version = "3", optional = true }
Inflector = "0.11"
[build-dependencies]
schemafy_core = { version = "0.6.0", path = "schemafy_core" } # VERSION_TAG
schemafy_lib = { version = "0.6.0", path = "schemafy_lib" } # VERSION_TAG
[features]
internal-regenerate = []
generate-tests = []
tool = ["anyhow", "structopt", "tempfile"]