Skip to content

Commit 9281a01

Browse files
authored
add libc dependency to workspace dependencies (#4710)
2 parents 6b9afb9 + 3294041 commit 9281a01

File tree

13 files changed

+113
-106
lines changed

13 files changed

+113
-106
lines changed

Cargo.lock

Lines changed: 101 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ memmap2 = { version = "0.6.2" }
105105
toml = {version = "0.5.9", features = ["preserve_order"]}
106106
indexmap = "2"
107107
serde_yaml = "0.9.34"
108+
libc = { version = "^0.2", default-features = false }
108109

109110
[build-dependencies]
110111
test-generator = { path = "tests/lib/test-generator" }

lib/c-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ virtual-fs = { version = "0.11.4", path = "../virtual-fs", optional = true, defa
3838
enumset.workspace = true
3939
cfg-if = "1.0"
4040
lazy_static = "1.4"
41-
libc = { version = "^0.2", default-features = false }
41+
libc.workspace = true
4242
thiserror = "1"
4343
typetag = { version = "0.1", optional = true }
4444
paste = "1.0"

lib/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ walkdir = "2.3.2"
178178
regex = "1.6.0"
179179
toml.workspace = true
180180
url = "2.3.1"
181-
libc = { version = "^0.2", default-features = false }
181+
libc.workspace = true
182182
parking_lot = "0.12"
183183
dialoguer = "0.11.0"
184184
tldextract = "0.6.0"

lib/compiler-llvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ wasmer-types = { path = "../types", version = "=4.3.0" }
2222
target-lexicon = { version = "0.12.2", default-features = false }
2323
smallvec = "1.6"
2424
object = { version = "0.28.3", default-features = false, features = ["read"] }
25-
libc = { version = "^0.2", default-features = false }
25+
libc.workspace = true
2626
byteorder = "1"
2727
itertools = "0.10"
2828
rayon = "1.5"

lib/emscripten/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ version.workspace = true
1515
[dependencies]
1616
byteorder = "1.3"
1717
lazy_static = "1.4"
18-
libc = "^0.2"
18+
libc = { workspace = true, default-features = true }
1919
log = "0.4"
2020
time = { version = "0.3", features = ["std", "formatting"] }
2121
wasmer = { path = "../api", version = "=4.3.0", default-features = false }

lib/sys-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ region = { version = "3.0" }
1919
tracing = "0.1.37"
2020

2121
[target.'cfg(unix)'.dependencies]
22-
libc = { version = "^0.2", default-features = false }
22+
libc.workspace = true
2323

2424
[dev-dependencies]
2525
wasmer-wasix.workspace = true

lib/types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ hex = { version = "^0.4" }
3131
# `rand` uses `getrandom` transitively, and to be able to
3232
# compile the project for `js`, we need to enable this feature
3333
[dependencies.getrandom]
34-
version = "0.2.15"
34+
version = "0.2.14"
3535
features = ["js"]
3636

3737
[dev-dependencies]

lib/virtual-fs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fs_extra = { version = "1.2.0", optional = true }
1919
futures = { version = "0.3" }
2020
indexmap = "1.9.2"
2121
lazy_static = "1.4"
22-
libc = { version = "^0.2", default-features = false, optional = true }
22+
libc = { workspace = true, optional = true }
2323
pin-project-lite = "0.2.9"
2424
replace_with = "0.1.7"
2525
shared-buffer = { workspace = true }

lib/virtual-net/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bytes = "1.1"
1515
async-trait = { version = "^0.1" }
1616
tracing = "0.1"
1717
tokio = { version = "1", default_features = false, features = ["io-util"] }
18-
libc = { version = "0.2.139", optional = true }
18+
libc = { workspace = true, optional = true }
1919
mio = { version = "0.8", optional = true }
2020
socket2 = { version = "0.4", optional = true }
2121
derivative = { version = "^2" }

0 commit comments

Comments
 (0)