Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb55dab

Browse files
committed
Avoid building neli when not building for linux
1 parent902befb commiteb55dab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ thiserror = "2"
4848
socket2 = {version ="0.5",features = ["all"] }
4949
clap = {version ="3.2",optional =true }
5050
anyhow = {version ="1",optional =true }
51-
neli = {version ="0.6",optional =true }
5251
tokio = {version ="1",features = ["net"],optional =true }
5352
mio = {version ="1",features = ["os-ext"],optional =true }
5453
futures = {version ="0.3",optional =true }
@@ -57,6 +56,12 @@ smol = { version = "1.3", optional = true }
5756
async-std = {version ="1.12",optional =true }
5857
libudev = {version ="0.3",optional =true }
5958

59+
# This hack avoids building neli on non-linux platforms, which
60+
# avoids a ton of compile errors. Worthwhile together with the
61+
# build.rs script to error early when building for non-linux
62+
[target.'cfg(target_os="linux")'.dependencies]
63+
neli = {version ="0.6",optional =true }
64+
6065
[dev-dependencies]
6166
anyhow ="1.0"
6267
ctrlc ="3.2.2"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp