forked from alttch/rmodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (69 loc) · 1.91 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
81
[package]
name = "rmodbus"
version = "0.8.0"
authors = ["Serhij S. <div@altertech.com>"]
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/alttch/rmodbus"
description = "Fast and platform-independent Modbus server framework"
readme = "README.md"
keywords = ["modbus", "server", "hardware", "nostd"]
autoexamples = false
[package.metadata.docs.rs]
features = []
[package.metadata.playground]
features = []
[lib]
name = "rmodbus"
path = "src/lib.rs"
[dependencies]
ieee754 = "0.2.6"
fixedvec = { version = "0.2.4", optional = true }
heapless = { version = "0.8.0", optional = true }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
serde_arrays = { version = "0.1.0", optional = true }
bincode = { version = "2.0.0-rc.2", optional = true }
defmt = { version = "0.3.0", optional = true }
[features]
default = ["std"]
std = []
with_serde = ["serde", "serde_arrays"]
with_bincode = ["bincode"]
# Provide impls for types in the Rust core allocation and collections library
# including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may
# be enabled without depending on all of std.
alloc = []
defmt = ["dep:defmt"]
[dev-dependencies]
rand = "0.7.3"
crc16 = "0.4.0"
serial = "0.4.0"
lazy_static = { version = "1.4.0", features = [
"spin_no_std",
], default-features = false }
fixedvec = "0.2.4"
spin = "0.5.2"
[[example]]
name = "app"
path = "examples/app.rs"
required-features = ["std", "with_bincode"]
[[example]]
name = "tcpserver"
path = "examples/tcpserver.rs"
required-features = ["std"]
[[example]]
name = "udpserver"
path = "examples/udpserver.rs"
required-features = ["std"]
[[example]]
name = "rtuserver"
path = "examples/rtuserver.rs"
required-features = ["std"]
[[example]]
name = "asciiserver"
path = "examples/asciiserver.rs"
required-features = ["std"]
[[example]]
name = "tcpclient"
path = "examples/tcpclient.rs"
required-features = ["std"]