Skip to content

Commit

Permalink
Remove deprecated features
Browse files Browse the repository at this point in the history
These feature were deprecated in v0.7.6 and merged into new features or
simply enabled by default.
  • Loading branch information
Thomasdezeeuw committed Jan 5, 2021
1 parent 4523245 commit 105f8f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ os-ext = ["os-poll"]
# Enables `mio::net` module containing networking primitives.
net = []

# Deprecated features, will be removed in a future version.
extra-docs = [] # Docs are now always present.
tcp = ["net"] # Replaced with "net" feature.
udp = ["net"] # Replaced with "net" feature.
uds = ["net"] # Replaced with "net" feature.
pipe = ["os-ext"] # Replaced with "os-ext" feature.
os-util = ["os-ext"]# Replaced with "os-ext" feature.

[dependencies]
log = "0.4.8"

Expand Down Expand Up @@ -81,7 +73,6 @@ targets = [
"x86_64-unknown-openbsd",
]


[package.metadata.playground]
features = ["os-poll", "os-ext", "net"]

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ test:
# Test everything for the current OS/architecture and check all targets in
# $TARGETS.
test_all: check_all_targets
cargo hack test --feature-powerset --skip guide,extra-docs,tcp,udp,uds,pipe,os-util
cargo hack test --feature-powerset --skip guide,extra-docs,tcp,udp,uds,pipe,os-util --release
cargo hack test --feature-powerset
cargo hack test --feature-powerset --release

# Check all targets using all features.
check_all_targets: $(TARGETS)
$(TARGETS):
cargo hack check --target $@ --feature-powerset --skip guide,extra-docs,tcp,udp,uds,pipe,os-util
cargo hack check --target $@ --feature-powerset

# Installs all required targets for `check_all_targets`.
install_targets:
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-test-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- ${{ if eq(parameters.cmd, 'test') }}:
- script: |
cargo install cargo-hack
cargo hack check --feature-powerset --skip guide,extra-docs,tcp,udp,uds,pipe,os-util
cargo hack check --feature-powerset
displayName: Check feature powerset
- script: cargo ${{ parameters.cmd }} --all-features
Expand Down

0 comments on commit 105f8f2

Please sign in to comment.