buttplug_core 10.0.1

Buttplug Intimate Hardware Control Library - Core Library
// Buttplug Rust Source Code File - See https://buttplug.io for more info.
//
// Copyright 2016-2026 Nonpolynomial Labs LLC. All rights reserved.
//
// Licensed under the BSD 3-Clause license. See LICENSE file in the project root
// for full license information.

cfg_if::cfg_if! {
  if #[cfg(feature = "wasm")] {
    mod wasm_bindgen;
    pub use self::wasm_bindgen::{WasmBindgenAsyncManager as AsyncManager, spawn, spawn_with_handle};
  } else if #[cfg(feature = "tokio-runtime")] {
    mod tokio;
    pub use self::tokio::{TokioAsyncManager as AsyncManager, spawn, spawn_with_handle};
  } else {
    mod dummy;
    pub use dummy::{DummyAsyncManager as AsyncManager, spawn, spawn_with_handle};
    //std::compile_error!("Please choose a runtime feature: tokio-runtime, wasm-bindgen-runtime, dummy-runtime");
  }
}