Skip to content

Commit ac44392

Browse files
committed
Remove unnecessary smoltcp features
1 parent 1265eb9 commit ac44392

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ matrix:
2020
- rust: nightly
2121
env: FEATURES='stm32f429' ARGS="--release --target=thumbv7em-none-eabihf --example=pktgen"
2222
- rust: nightly
23-
env: FEATURES='stm32f429 smoltcp-phy smoltcp-log smoltcp-verbose' ARGS="--release --target=thumbv7em-none-eabihf --example=ip"
23+
env: FEATURES='stm32f429 smoltcp-phy log smoltcp/socket-tcp smoltcp/socket-icmp smoltcp/log smoltcp/verbose' ARGS="--release --target=thumbv7em-none-eabihf --example=ip"
2424
- rust: nightly
2525
env: FEATURES='stm32f745'
2626
- rust: nightly

Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ aligned = "0.3"
2323
stm32f7xx-hal = {version = "0.2.0", optional = true}
2424
stm32f4xx-hal = {version = "0.8.3", optional = true}
2525
cortex-m = "0.6.2"
26-
27-
smoltcp = { version = "0.6.0", default-features = false, features = ["proto-ipv4", "proto-ipv6", "socket-icmp", "socket-udp", "socket-tcp", "ethernet"], optional = true }
2826
log = { version = "0.4", optional = true }
2927

28+
[dependencies.smoltcp]
29+
version = "0.6.0"
30+
default-features = false
31+
features = ["ethernet", "proto-ipv4"]
32+
optional = true
33+
3034
[features]
3135
device-selected = []
3236
fence = []
@@ -51,8 +55,6 @@ stm32f778 = ["stm32f7xx-hal/stm32f778", "device-selected", "fence"]
5155
stm32f779 = ["stm32f7xx-hal/stm32f779", "device-selected", "fence"]
5256

5357
smoltcp-phy = ["smoltcp"]
54-
smoltcp-log = ["log", "smoltcp/log"]
55-
smoltcp-verbose = ["smoltcp/verbose"]
5658

5759
[dev-dependencies]
5860
cortex-m = "0.6.2"
@@ -67,7 +69,10 @@ required-features = ["stm32f429"]
6769

6870
[[example]]
6971
name = "ip"
70-
required-features = ["stm32f429", "smoltcp-phy", "smoltcp-log", "smoltcp-verbose"]
72+
required-features = [
73+
"stm32f429", "smoltcp-phy", "log", "smoltcp/socket-tcp", "smoltcp/socket-icmp",
74+
"smoltcp/log", "smoltcp/verbose"
75+
]
7176

7277
[profile.release]
7378
debug = 2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Please send pull requests.
1212
## Building Examples
1313
```
1414
cargo build --example="pktgen" --features="stm32f429"
15-
cargo build --example="ip" --features="stm32f429" --features="smoltcp-phy smoltcp-log smoltcp-verbose"
15+
cargo build --example="ip" --features="stm32f429 smoltcp-phy log smoltcp/socket-tcp smoltcp/socket-icmp smoltcp/log smoltcp/verbose"
1616
```
1717

1818
## Usage

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [[ "$EXAMPLE" = "" ]]; then
1313
fi
1414

1515
cargo build --target=thumbv7em-none-eabihf --release \
16-
--features="stm32f429 smoltcp-phy smoltcp-log smoltcp-verbose" \
16+
--features="stm32f429 smoltcp-phy log smoltcp/socket-tcp smoltcp/socket-icmp smoltcp/log smoltcp/verbose" \
1717
--example=$EXAMPLE \
1818
|| exit 1
1919

0 commit comments

Comments
 (0)