-
Notifications
You must be signed in to change notification settings - Fork 48
/
Cargo.toml
143 lines (118 loc) · 4.35 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[package]
categories = ["embedded", "no-std", "hardware-support", "network-programming"]
name = "stm32-eth"
description = "Embedded Rust Ethernet driver for the STM32 MCU series"
license = "Apache-2.0"
authors = ["Astro <[email protected]>", "Johannes Draaijer <[email protected]>"]
version = "0.8.0"
keywords = ["ethernet", "eth", "stm32", "stm32f4", "stm32f7"]
repository = "https://github.com/stm32-rs/stm32-eth"
documentation = "https://docs.rs/stm32-eth/"
edition = "2018"
autoexamples = false
[badges]
travis-ci = { repository = "astro/stm32-eth", branch = "master" }
maintenance = { status = "experimental" }
[package.metadata.docs.rs]
features = ["smoltcp-phy", "stm32f429", "async-await"]
[dependencies]
volatile-register = "0.2"
aligned = "0.4"
stm32f7xx-hal = { version = "0.8", optional = true }
stm32f4xx-hal = { version = "0.21", optional = true }
stm32f4 = { version = "0.15", optional = true }
stm32f1xx-hal = { version = "0.10", optional = true }
ieee802_3_miim = "0.8"
cortex-m = "0.7"
log = { version = "0.4", optional = true }
defmt = { version = "0.3", optional = true }
futures = { version = "0.3", default-features = false, features = ["async-await"], optional = true }
[dependencies.smoltcp]
version = "0.12"
default-features = false
optional = true
[features]
default = [ "defmt", "ptp" ]
device-selected = []
fence = []
ptp = [ "smoltcp/packetmeta-id" ]
async-await = ["dep:futures"]
stm32f107 = ["stm32f1xx-hal/stm32f107", "device-selected"]
stm32f407 = ["stm32f4xx-hal/stm32f407", "stm32f4", "device-selected"]
stm32f417 = ["stm32f4xx-hal/stm32f417", "stm32f4", "device-selected"]
stm32f427 = ["stm32f4xx-hal/stm32f427", "stm32f4", "device-selected"]
stm32f429 = ["stm32f4xx-hal/stm32f429", "stm32f4", "device-selected"]
stm32f437 = ["stm32f4xx-hal/stm32f437", "stm32f4", "device-selected"]
stm32f439 = ["stm32f4xx-hal/stm32f439", "stm32f4", "device-selected"]
stm32f469 = ["stm32f4xx-hal/stm32f469", "stm32f4", "device-selected"]
stm32f479 = ["stm32f4xx-hal/stm32f479", "stm32f4", "device-selected"]
stm32f745 = ["stm32f7xx-hal/stm32f745", "device-selected", "fence"]
stm32f746 = ["stm32f7xx-hal/stm32f746", "device-selected", "fence"]
stm32f756 = ["stm32f7xx-hal/stm32f756", "device-selected", "fence"]
stm32f765 = ["stm32f7xx-hal/stm32f765", "device-selected", "fence"]
stm32f767 = ["stm32f7xx-hal/stm32f767", "device-selected", "fence"]
stm32f769 = ["stm32f7xx-hal/stm32f769", "device-selected", "fence"]
stm32f777 = ["stm32f7xx-hal/stm32f777", "device-selected", "fence"]
stm32f778 = ["stm32f7xx-hal/stm32f778", "device-selected", "fence"]
stm32f779 = ["stm32f7xx-hal/stm32f779", "device-selected", "fence"]
smoltcp-phy = ["smoltcp"]
[dev-dependencies]
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7"
fugit = "0.3"
defmt-rtt = "0.4"
panic-probe = { version = "0.3", features = [ "print-defmt" ] }
systick-monotonic = "1.0"
smoltcp = { version = "0.12", features = [ "medium-ethernet", "proto-ipv4", "socket-udp", "socket-tcp", "defmt" ], default-features = false }
[dev-dependencies.rtic]
package = "cortex-m-rtic"
version = "1.0"
[dev-dependencies.async-rtic]
package = "rtic"
version = "2"
features = [ "thumbv7-backend" ]
[dev-dependencies.rtic-sync]
package = "rtic-sync"
version = "1.3"
# This isn't an actual example. It just exists so we can easily
# test the common items :)
[[example]]
name = "common"
required-features = ["defmt", "smoltcp-phy", "ptp"]
[[example]]
name = "pktgen"
required-features = [ "defmt" ]
[[example]]
name = "ip"
required-features = [ "defmt", "smoltcp-phy" ]
[[example]]
name = "arp"
required-features = [ "defmt" ]
[[example]]
name = "rtic-echo"
required-features = [ "defmt" , "smoltcp-phy" ]
[[example]]
name = "rtic-timestamp"
required-features = [ "defmt", "ptp" ]
[[example]]
name = "smoltcp-client"
path = "./examples/smoltcp-timesync/client.rs"
required-features = [ "defmt", "ptp", "smoltcp-phy" ]
[[example]]
name = "smoltcp-server"
path = "./examples/smoltcp-timesync/server.rs"
required-features = [ "defmt", "ptp", "smoltcp-phy" ]
[[example]]
name = "timesync-client"
path = "./examples/timesync/client.rs"
required-features = [ "defmt", "ptp" ]
[[example]]
name = "timesync-server"
path = "./examples/timesync/server.rs"
required-features = [ "defmt", "ptp" ]
[[example]]
name = "async-rtic-timestamp"
required-features = [ "defmt", "ptp", "async-await" ]
[profile.release]
debug = 2
lto = true