-
Notifications
You must be signed in to change notification settings - Fork 152
/
Cargo.toml
80 lines (72 loc) · 1.95 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
[package]
edition = "2021"
authors = [
"The ToolsTeam <[email protected]>",
"Jorge Aparicio <[email protected]>",
]
build = "build.rs"
categories = [
"command-line-utilities",
"embedded",
"hardware-support",
"no-std",
]
description = "Generate Rust register maps (`struct`s) from SVD files"
documentation = "https://docs.rs/svd2rust"
keywords = ["svd", "embedded", "register", "map", "generator"]
license = "MIT OR Apache-2.0"
name = "svd2rust"
repository = "https://github.com/rust-embedded/svd2rust/"
version = "0.35.0"
readme = "README.md"
rust-version = "1.74"
[package.metadata.deb]
section = "rust"
[[bin]]
doc = false
name = "svd2rust"
path = "src/main.rs"
required-features = ["bin"]
[features]
default = ["bin", "json", "yaml"]
bin = ["dep:clap", "dep:env_logger", "serde", "dep:irx-config"]
json = ["dep:serde_json"]
yaml = ["dep:serde_yaml"]
[dependencies]
clap = { version = "4.0", optional = true }
irx-config = { version = "=3.3.0", features = [
"cmd",
"toml-parser",
"yaml",
], optional = true }
env_logger = { version = "0.11", optional = true }
inflections = "1.1"
log = { version = "~0.4", features = ["std"] }
quote = "1.0"
proc-macro2 = "1.0"
anyhow = "1.0"
thiserror = "1.0"
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0.85", optional = true }
serde_yaml = { version = "0.9.11", optional = true }
regex = "1.10.0"
url = { version = "2.5", features = ["serde"] }
[dependencies.svd-parser]
features = ["expand"]
version = "0.14.7"
[dependencies.svd-rs]
features = ["serde"]
version = "0.14.9"
[dependencies.syn]
version = "2.0"
features = ["full", "extra-traits"]
[workspace]
members = ["ci/svd2rust-regress"]
default-members = ["."]
exclude = [
"output",
# workaround for https://github.com/rust-lang/cargo/pull/12779, doesn't work for output though
# see https://github.com/rust-lang/cargo/issues/6009#issuecomment-1925445245
"output/baseline/**",
"output/current/**",
]