-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
50 lines (41 loc) · 1.09 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
[workspace]
members = [".", "examples/serialport"]
[package]
name = "sml-rs"
version = "0.4.0"
authors = ["Felix Wirth <felix@wirth.one>"]
description = "Smart Message Language (SML) parser written in Rust"
repository = "https://github.com/felixwrt/sml-rs"
license = "MIT OR Apache-2.0"
edition = "2021"
[features]
default = ["std"]
std = ["alloc"]
alloc = []
embedded_hal = ["nb", "embedded-hal"]
[dependencies]
crc = "3.0.0"
embedded-hal = { version = "0.2.7", optional = true }
nb = { version = "1.1.0", optional = true }
[dev-dependencies]
insta = { version = "1.21.0", features = ["yaml", "glob"] }
hex-literal = "0.4.1"
hex = "0.4.3"
# docs.rs-specific configuration
[package.metadata.docs.rs]
# document all features
all-features = true
# defines the configuration attribute `docsrs`
rustdoc-args = ["--cfg", "docsrs"]
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3
[[example]]
name = "decoder"
path = "examples/decoder.rs"
required-features = ["std"]
[[example]]
name = "decoder-streaming"
path = "examples/decoder_streaming.rs"
required-features = ["std"]