Skip to content

Commit a8089ce

Browse files
committed
deps and ffi
1 parent 0832933 commit a8089ce

2 files changed

Lines changed: 1 addition & 34 deletions

File tree

c/sedona-extension/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rust-version.workspace = true
2929

3030
[features]
3131
default = []
32-
async = ["dep:datafusion-execution", "dep:futures", "dep:tokio"]
32+
async = ["dep:datafusion-execution", "dep:futures"]
3333

3434
[dependencies]
3535
arrow-array = { workspace = true, features = ["ffi"]}
@@ -43,7 +43,6 @@ sedona-common = { workspace = true }
4343
sedona-expr = { workspace = true }
4444
sedona-schema = { workspace = true }
4545
sedona-testing = { path = "../../rust/sedona-testing" }
46-
tokio = { workspace = true, optional = true }
4746

4847
[dev-dependencies]
4948
tokio = { workspace = true, features = ["rt", "macros"] }

c/sedona-extension/src/extension_ffi.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -173,38 +173,6 @@ impl From<FFI_ArrowArray> for FFI_ArrowDeviceArray {
173173
}
174174
}
175175

176-
/// FFI representation of the ArrowDeviceArrayStream from the Arrow C Device Data Interface
177-
///
178-
/// See: https://arrow.apache.org/docs/format/CDeviceDataInterface.html
179-
#[repr(C)]
180-
pub struct FFI_ArrowDeviceArrayStream {
181-
pub device_type: i32,
182-
pub get_schema: Option<
183-
unsafe extern "C" fn(
184-
self_: *mut FFI_ArrowDeviceArrayStream,
185-
out: *mut FFI_ArrowSchema,
186-
) -> c_int,
187-
>,
188-
pub get_next: Option<
189-
unsafe extern "C" fn(
190-
self_: *mut FFI_ArrowDeviceArrayStream,
191-
out: *mut FFI_ArrowDeviceArray,
192-
) -> c_int,
193-
>,
194-
pub get_last_error:
195-
Option<unsafe extern "C" fn(self_: *mut FFI_ArrowDeviceArrayStream) -> *const c_char>,
196-
pub release: Option<unsafe extern "C" fn(self_: *mut FFI_ArrowDeviceArrayStream)>,
197-
pub private_data: *mut c_void,
198-
}
199-
200-
impl Drop for FFI_ArrowDeviceArrayStream {
201-
fn drop(&mut self) {
202-
if let Some(releaser) = self.release {
203-
unsafe { releaser(self) };
204-
}
205-
}
206-
}
207-
208176
/// FFI representation of the ArrowAsyncProducer from the Arrow C Device Data Interface.
209177
///
210178
/// This producer-managed object allows consumers to control flow via back-pressure

0 commit comments

Comments
 (0)