-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
46 lines (41 loc) · 1.63 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
[package]
name = "automotive_diag"
version = "0.1.9"
description = "Core definitions for various Automotive ECU Diagnostics such as UDS ISO-14229, KWP2000, OBD-II, etc."
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>", "Ashcon Mohseninia <ashconm@outlook.com>"]
repository = "https://github.com/nyurik/automotive_diag"
edition = "2021"
license = "MIT OR Apache-2.0"
keywords = ["uds", "kwp2000", "obd", "automotive", "no_std"]
categories = ["embedded", "no-std", "encoding", "parsing"]
rust-version = "1.63.0"
[features]
default = ["std", "iter", "display", "with-kwp2000", "with-obd2", "with-uds"]
# Include support for std library. Without this feature, uses `no_std` attribute
std = []
# Add Enum::iter() implementation for all enums
iter = []
# Add Display implementation for all enums, using doc comments as display strings
display = ["dep:displaydoc"]
# Include support for Keyword protocol 2000 - ISO142330
with-kwp2000 = []
# Include support for On-board diagnostics
with-obd2 = []
# Include support for Unified Diagnostic Services
with-uds = []
# Include support for serde serialization
serde = ["dep:serde"]
[dependencies]
displaydoc = { version = "0.2", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
strum = { version = "0.26.3", features = ["derive"] }
[dev-dependencies]
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
serde_json = { version = "1", features = ["preserve_order"] }
[lints.rust]
unsafe_code = "forbid"
unused_qualifications = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow"
module_name_repetitions = "allow"