From c24314d1574c4459ed8fc44d8abd3c4ecdb19d35 Mon Sep 17 00:00:00 2001 From: Wesley Maa Date: Sun, 15 Dec 2024 16:42:15 -0800 Subject: [PATCH] update pyo3 --- actuator/bindings/Cargo.toml | 4 +--- actuator/bindings/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/actuator/bindings/Cargo.toml b/actuator/bindings/Cargo.toml index 318f8eb..c186bea 100644 --- a/actuator/bindings/Cargo.toml +++ b/actuator/bindings/Cargo.toml @@ -15,11 +15,9 @@ name = "bindings" crate-type = ["cdylib", "rlib"] [dependencies] - pyo3 = { version = ">= 0.21.0", features = ["extension-module"] } pyo3-stub-gen = ">= 0.6.0" - robstride = { path = "../robstride" } -tokio = { version = "1.0", features = ["rt", "sync", "time"] } +tokio = { version = "1.0", features = ["full"] } eyre = "0.6" tracing = "0.1" diff --git a/actuator/bindings/src/lib.rs b/actuator/bindings/src/lib.rs index 7586788..3b30fcb 100644 --- a/actuator/bindings/src/lib.rs +++ b/actuator/bindings/src/lib.rs @@ -1,5 +1,6 @@ use pyo3::prelude::*; -use robstride::{CH341Transport, ControlConfig, SocketCanTransport, Supervisor, TransportType}; +use pyo3_stub_gen::define_stub_info_gatherer; +use pyo3_stub_gen::derive::{gen_stub_pyclass, gen_stub_pyfunction, gen_stub_pymethods};use robstride::{CH341Transport, ControlConfig, SocketCanTransport, Supervisor, TransportType}; use std::sync::Arc; use tokio::sync::Mutex; use std::time::Duration;