-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
54 lines (45 loc) · 1.54 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
[package]
name = "profirust"
version = "0.2.0"
edition = "2021"
description = "PROFIBUS-DP compatible communication stack in pure Rust"
categories = ["no-std", "embedded", "science::robotics" ]
keywords = ["profibus", "profibus-dp", "fieldbus", "siemens"]
authors = ["Rahix <[email protected]>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rahix/profirust"
[features]
phy-linux = ["rs485", "libc", "std"]
phy-simulator = ["std"]
phy-rp2040 = ["rp2040-hal", "fugit", "embedded-hal", "nb", "cortex-m"]
std = ["managed/std"]
alloc = ["managed/alloc"]
default = ["std", "phy-linux", "phy-simulator"]
[dependencies]
bitflags = "2.3.3"
bitvec = { version = "1.0.1", default-features = false }
cortex-m = { version = "0.7.7", optional = true }
embedded-hal = { version = "0.2.7", optional = true }
fugit = { version = "0.3.7", optional = true }
libc = { version = "0.2.139", optional = true }
log = "0.4.17"
managed = { version = "0.8.0", default-features = false, features = ["map"] }
nb = { version = "1.1.0", optional = true }
rp2040-hal = { version = "0.9.0", optional = true }
rs485 = { version = "0.1.0", optional = true }
[workspace]
members = [
"gsd-parser/",
"gsdtool/",
]
[dev-dependencies]
env_logger = "0.10.0"
process-image = "0.2.0"
proptest = "1.2.0"
proptest-derive = "0.3.0"
rstest = { version = "0.18.2", default-features = false }
rustyline = "14.0.0"
[patch.crates-io]
rp2040-hal = { git = "https://github.com/rahix/rp-hal.git", rev = "6baaf07b0ac2017dbbea1ba8cf5986b74cd81104" }
[package.metadata.docs.rs]
all-features = true