Skip to content

Commit 26cf3b2

Browse files
committed
Fix feature flag usage in Cargo.toml files
1 parent 43919c5 commit 26cf3b2

15 files changed

Lines changed: 24 additions & 24 deletions

File tree

crates/buttplug_client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ doctest = true
1919
doc = true
2020

2121
[dependencies]
22-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
22+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
2323
futures = "0.3.31"
2424
thiserror = "2.0.18"
2525
log = "0.4.29"

crates/buttplug_client_in_process/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ websocket-manager=["buttplug_server_hwmgr_websocket"]
3030
xinput-manager=["buttplug_server_hwmgr_xinput"]
3131

3232
[dependencies]
33-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
33+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
3434
buttplug_client = { version = "10.0.0", path = "../buttplug_client" }
3535
buttplug_server = { version = "10.0.0", path = "../buttplug_server" }
3636
buttplug_server_device_config = { version = "10.0.0", path = "../buttplug_server_device_config" }
37-
buttplug_server_hwmgr_btleplug = { version = "10.0.0", path = "../buttplug_server_hwmgr_btleplug", optional = true}
38-
buttplug_server_hwmgr_hid = { version = "10.0.0", path = "../buttplug_server_hwmgr_hid", optional = true}
39-
buttplug_server_hwmgr_lovense_connect = { version = "10.0.0", path = "../buttplug_server_hwmgr_lovense_connect", optional = true}
40-
buttplug_server_hwmgr_lovense_dongle = { version = "10.0.0", path = "../buttplug_server_hwmgr_lovense_dongle", optional = true}
41-
buttplug_server_hwmgr_serial = { version = "10.0.0", path = "../buttplug_server_hwmgr_serial", optional = true}
42-
buttplug_server_hwmgr_websocket = { version = "10.0.0", path = "../buttplug_server_hwmgr_websocket", optional = true}
43-
buttplug_server_hwmgr_xinput = { version = "10.0.0", path = "../buttplug_server_hwmgr_xinput", optional = true}
37+
buttplug_server_hwmgr_btleplug = { version = "10.0.0", path = "../buttplug_server_hwmgr_btleplug", optional = true }
38+
buttplug_server_hwmgr_hid = { version = "10.0.0", path = "../buttplug_server_hwmgr_hid", optional = true }
39+
buttplug_server_hwmgr_lovense_connect = { version = "10.0.0", path = "../buttplug_server_hwmgr_lovense_connect", optional = true }
40+
buttplug_server_hwmgr_lovense_dongle = { version = "10.0.0", path = "../buttplug_server_hwmgr_lovense_dongle", optional = true }
41+
buttplug_server_hwmgr_serial = { version = "10.0.0", path = "../buttplug_server_hwmgr_serial", optional = true }
42+
buttplug_server_hwmgr_websocket = { version = "10.0.0", path = "../buttplug_server_hwmgr_websocket", optional = true }
43+
buttplug_server_hwmgr_xinput = { version = "10.0.0", path = "../buttplug_server_hwmgr_xinput", optional = true }
4444
futures = "0.3.31"
4545
futures-util = "0.3.31"
4646
thiserror = "2.0.18"

crates/buttplug_core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ doc = true
2020

2121
[features]
2222
default=["tokio-runtime"]
23-
tokio-runtime=["tokio/rt"]
23+
tokio-runtime=["tokio/rt", "tokio/time"]
2424
wasm=[]
2525

2626
# Only build docs on one platform (linux)
@@ -46,7 +46,7 @@ log = "0.4.29"
4646
getset = "0.1.6"
4747
jsonschema = { version = "0.38.1", default-features = false }
4848
cfg-if = "1.0.4"
49-
tokio = { version = "1.49.0", features = ["sync", "time", "macros"] }
49+
tokio = { version = "1.49.0", features = ["sync", "macros"] }
5050
async-stream = "0.3.6"
5151
strum_macros = "0.27.2"
5252
strum = "0.27.2"

crates/buttplug_core/src/util/async_manager/dummy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct DummyAsyncManager {}
1313

1414
#[async_trait]
1515
impl super::AsyncManager for DummyAsyncManager {
16-
fn spawn(&self, _future: FutureObj<'static, ()>) {
16+
fn spawn(&self, _future: FutureObj<'static, ()>, _span: tracing::Span) {
1717
unimplemented!(
1818
"No async runtime available. Please set a global async manager using set_global_async_manager or enable tokio-runtime or wasm feature"
1919
);

crates/buttplug_core/src/util/async_manager/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct WasmAsyncManager {}
1616

1717
#[async_trait]
1818
impl super::AsyncManager for WasmAsyncManager {
19-
fn spawn(&self, future: FutureObj<'static, ()>) {
19+
fn spawn(&self, future: FutureObj<'static, ()>, _span: tracing::Span) {
2020
spawn_local(future);
2121
}
2222

crates/buttplug_server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ default=[]
2424
wasm=["uuid/js"]
2525

2626
[dependencies]
27-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
27+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
2828
buttplug_server_device_config = { version = "10.0.0", path = "../buttplug_server_device_config" }
2929
futures = "0.3.31"
3030
futures-util = "0.3.31"

crates/buttplug_server_device_config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ doctest = true
1919
doc = true
2020

2121
[dependencies]
22-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
22+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
2323
futures = "0.3.31"
2424
futures-util = "0.3.31"
2525
serde = { version = "1.0.228", features = ["derive"] }
@@ -42,7 +42,7 @@ enumflags2 = "0.7.12"
4242
serde_yaml = "0.9.34"
4343
serde_json = "1.0.149"
4444
serde = { version = "1.0.228", features = ["derive"] }
45-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
45+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
4646

4747
[dev-dependencies]
4848
test-case = "3.3.1"

crates/buttplug_server_hwmgr_btleplug/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ doc = true
2020

2121

2222
[dependencies]
23-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
23+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
2424
buttplug_server = { version = "10.0.0", path = "../buttplug_server" }
2525
buttplug_server_device_config = { version = "10.0.0", path = "../buttplug_server_device_config" }
2626
futures = "0.3.31"

crates/buttplug_server_hwmgr_hid/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ doc = true
2020

2121

2222
[dependencies]
23-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
23+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
2424
buttplug_server = { version = "10.0.0", path = "../buttplug_server" }
2525
buttplug_server_device_config = { version = "10.0.0", path = "../buttplug_server_device_config" }
2626
futures = "0.3.31"

crates/buttplug_server_hwmgr_lovense_connect/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ targets = []
2727
features = ["default", "unstable"]
2828

2929
[dependencies]
30-
buttplug_core = { version = "10.0.0", path = "../buttplug_core" }
30+
buttplug_core = { version = "10.0.0", path = "../buttplug_core", default-features = false }
3131
buttplug_server = { version = "10.0.0", path = "../buttplug_server" }
3232
buttplug_server_device_config = { version = "10.0.0", path = "../buttplug_server_device_config" }
3333
futures = "0.3.31"

0 commit comments

Comments
 (0)