Skip to content

Commit

Permalink
Remove unused default dependee features.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleonhard committed Nov 7, 2024
1 parent 9cc46a8 commit 93b7d92
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 33 deletions.
33 changes: 16 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,28 @@ default = []
json = ["serde", "serde_json"]
urlencoded = ["serde", "serde_urlencoded"]

# TODO: Don't include default features.
[dependencies]
async-fs = "2"
async-net = "2"
fixed-buffer = { version = "1", features = ["futures-io"] }
futures-io = "0.3"
futures-lite = "2"
async-fs = { version = "2", default-features = false, features = [] }
async-net = { version = "2", default-features = false, features = [] }
fixed-buffer = { version = "1", default-features = false, features = ["futures-io"] }
futures-io = { version = "0.3", default-features = false, features = [] }
futures-lite = { version = "2", default-features = false, features = [] }
include_dir = { version = "0.7", optional = true }
#libflate = "1"
permit = "^0.2"
rand = { version = "0.8", features = ["small_rng"] }
safe-regex = "0.3"
safina = { version = "0.6", path = "../safina-rs/safina", features = ["executor", "sync", "timer"] }
serde = { version = "1", optional = true, features = ["derive"] }
permit = { version = "^0.2", default-features = false, features = [] }
rand = { version = "0.8", default-features = false, features = ["getrandom", "small_rng"] }
safe-regex = { version = "0.3", default-features = false, features = [] }
safina = { version = "0.6", path = "../safina-rs/safina", default-features = false, features = ["executor", "sync", "threadpool", "timer"] }
serde = { version = "1", optional = true, default-features = false, features = ["derive"] }
# TODO: Prevent these deps from appearing as features.
serde_json = { version = "1", optional = true }
serde_urlencoded = { version = "0.7", optional = true }
temp-dir = "0.1"
temp-file = "0.1"
url = "2"
serde_json = { version = "1", optional = true, default-features = false, features = ["std"] }
serde_urlencoded = { version = "0.7", optional = true, default-features = false, features = [] }
temp-dir = { version = "0.1", default-features = false, features = [] }
temp-file = { version = "0.1", default-features = false, features = [] }
url = { version = "2", default-features = false, features = [] }

[dev-dependencies]
safina = { version = "0.6", path = "../safina-rs/safina", features = ["async_test"] }
safina = { version = "0.6", path = "../safina-rs/safina", default-features = false, features = ["async_test"] }

[[example]]
name = "html_form"
Expand Down
22 changes: 6 additions & 16 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,13 @@ Functions Expressions Impls Traits Methods Dependency
0/0 15/15 0/0 0/0 3/3 ☢️ │ ├── proc-macro2 1.0.88
0/0 0/0 0/0 0/0 0/0 ❓ │ └── quote 1.0.37
0/0 0/0 0/0 0/0 0/0 🔒 ├── permit 0.2.1
0/0 32/32 0/0 0/0 0/0 ☢️ ├── rand 0.8.5
0/0 12/32 0/0 0/0 0/0 ☢️ ├── rand 0.8.5
1/90 10/596 0/2 0/0 5/69 ☢️ │ ├── libc 0.2.161
0/0 0/0 0/0 0/0 0/0 ❓ │ ├── rand_chacha 0.3.1
2/2 632/680 0/0 0/0 17/25 ☢️ │ │ ├── ppv-lite86 0.2.20
2/2 116/116 7/7 8/8 8/8 ☢️ │ │ │ └── zerocopy 0.7.35
0/1 162/179 0/0 0/0 0/0 ☢️ │ │ │ ├── byteorder 1.5.0
0/0 0/0 0/0 0/0 0/0 ❓ │ │ │ └── zerocopy-derive 0.7.35
0/0 15/15 0/0 0/0 3/3 ☢️ │ │ │ ├── proc-macro2 1.0.88
0/0 0/0 0/0 0/0 0/0 ❓ │ │ │ ├── quote 1.0.37
0/0 88/88 3/3 0/0 2/2 ☢️ │ │ │ └── syn 2.0.82
0/0 2/2 0/0 0/0 0/0 ☢️ │ │ ├── rand_core 0.6.4
3/6 51/192 0/1 0/0 1/3 ☢️ │ │ │ ├── getrandom 0.2.15
0/0 0/0 0/0 0/0 0/0 ❓ │ │ │ │ ├── cfg-if 1.0.0
1/90 10/596 0/2 0/0 5/69 ☢️ │ │ │ │ └── libc 0.2.161
0/0 5/5 0/0 0/0 0/0 ☢️ │ │ │ └── serde 1.0.210
0/0 5/5 0/0 0/0 0/0 ☢️ │ │ └── serde 1.0.210
0/0 2/2 0/0 0/0 0/0 ☢️ │ ├── rand_core 0.6.4
3/6 51/192 0/1 0/0 1/3 ☢️ │ │ ├── getrandom 0.2.15
0/0 0/0 0/0 0/0 0/0 ❓ │ │ │ ├── cfg-if 1.0.0
1/90 10/596 0/2 0/0 5/69 ☢️ │ │ │ └── libc 0.2.161
0/0 5/5 0/0 0/0 0/0 ☢️ │ │ └── serde 1.0.210
0/0 5/5 0/0 0/0 0/0 ☢️ │ └── serde 1.0.210
0/0 0/0 0/0 0/0 0/0 🔒 ├── safe-regex 0.3.0
0/0 0/0 0/0 0/0 0/0 🔒 │ └── safe-regex-macro 0.3.0
Expand Down Expand Up @@ -236,7 +226,7 @@ Functions Expressions Impls Traits Methods Dependency
0/0 8/8 0/0 0/0 0/0 ☢️ ├── percent-encoding 2.3.1
0/0 5/5 0/0 0/0 0/0 ☢️ └── serde 1.0.210
105/552 7996/14853 112/151 11/14 212/355
101/547 7066/13878 105/144 3/6 187/322
```
# Alternatives
Expand Down

0 comments on commit 93b7d92

Please sign in to comment.