From c8ece4c62b6f8b5165de4d9d38a467bbc1e94a53 Mon Sep 17 00:00:00 2001 From: "1992414357@qq.com" <1992414357@qq.com> Date: Mon, 9 Jun 2025 10:29:05 +0800 Subject: 修改了导出脚本 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/examples/connect.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/examples') diff --git a/core/examples/connect.rs b/core/examples/connect.rs index c367787..1fd9bca 100644 --- a/core/examples/connect.rs +++ b/core/examples/connect.rs @@ -4,6 +4,7 @@ use nogamepads::logger_utils::logger_build; use nogamepads_core::data::controller::structs::ControllerData; use nogamepads_core::data::player::structs::Player; use nogamepads_core::service::tcp_network::pad_client::structs::PadClientNetwork; +use nogamepads_core::service::tcp_network::utils::tokio_utils::build_tokio_runtime; fn main () { logger_build(Trace); @@ -21,5 +22,7 @@ fn main () { let runtime = controller.runtime(); let client = PadClientNetwork::build(Arc::clone(&runtime)); - client.connect(); + // client.connect(); + // or + build_tokio_runtime("Tokio Runtime".to_string()).block_on(client.build_entry()) } \ No newline at end of file -- cgit