forked from vectorgrp/xcp-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (95 loc) · 2.91 KB
/
Cargo.toml
File metadata and controls
129 lines (95 loc) · 2.91 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[package]
name = "xcp_lite"
version = "1.1.0"
edition = "2024"
resolver = "2"
rust-version = "1.90.0"
authors = ["RainerZ"]
description = "Measurement and Calibration for Rust with XCP, based on XCPlite"
readme = "README.md"
keywords = ["XCP","Rust","Vector","ASAM","CANape","A2L"]
license = "MIT OR Apache-2.0"
homepage = "https://vector.com"
repository = "https://github.com/vectorgrp/xcp-lite"
categories = ["MC"]
[workspace]
members = [
"tools/xcp_client",
"xcp_type_description",
"xcp_idl_generator",
"examples/hello_xcp",
"examples/calibration_demo",
"examples/struct_measurement_demo",
"examples/single_thread_demo",
"examples/multi_thread_demo",
"examples/point_cloud_demo",
"examples/rayon_demo",
"examples/tokio_demo",
]
[workspace.package]
version = "1.1.0"
#--------------------------------------------------------------------------------------
[features]
default = ["c_cal"]
# Feature: Use XCPlite calibration segment management and lock/unlock
c_cal = []
# Feature a2l_reader using a2lfile
# Automatic check of the generated A2L file
a2l_reader = ["dep:a2lfile"]
#--------------------------------------------------------------------------------------
[dependencies]
# Error handling
thiserror = "1.0.69"
#thiserror = "2.0"
# Command line parser
clap = { version = "4.5.52", features = ["derive"] }
# A macro to generate structures which behave like bitflags
bitflags = "2.10.0"
# Logging
log = "0.4.28"
env_logger = "0.11.8"
# Alloc stats
stats_alloc = "0.1.10"
# Collects build-information of your Rust crate, used to generate EPK
build-info = "0.0.40"
# A macro for declaring lazily evaluated statics
lazy_static = "1.5"
# Single assignment cells
once_cell = "1.21.3"
static_cell = "2.1.1"
# More compact and efficient implementations of the standard synchronization primitives
parking_lot = "0.12.5"
# Regular expression matching for registry object search
regex = "1.12.2"
# A generic serialization/deserialization framework
# Used to handle json parameter files (optional)
serde = "1.0"
serde_json = "1.0"
# proc-macro A2L serializer for structs
xcp_type_description = { path = "./xcp_type_description/"}
xcp_type_description_derive = { path = "./xcp_type_description/xcp_type_description_derive/" }
# proc-macro CDR IDL generator for structs
xcp_idl_generator = { path = "./xcp_idl_generator/"}
xcp_idl_generator_derive = { path = "./xcp_idl_generator/xcp_idl_generator_derive/"}
# A2L checker (optional)
a2lfile = { version="3.3.0", optional = true}
anyhow = "1.0"
[dev-dependencies]
xcp_client = { path = "./tools/xcp_client" }
tokio = { version = "1.48.0", features = ["full"] }
[build-dependencies]
cc = "1.2"
build-info-build = "0.0.40"
bindgen = "0.71.1"
[profile.dev.package."*"]
debug = false
opt-level = 3
[profile.dev]
debug = true
opt-level = 0
debug-assertions = true
[profile.release]
panic = 'abort'
debug = true
lto = true
opt-level = 3