cudf-cxx 0.2.0

cxx-based FFI bridge between Rust and NVIDIA libcudf C++ API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cxx::bridge(namespace = "cudf_shims")]
pub mod ffi {
    unsafe extern "C++" {
        include!("io/avro_shim.h");
        include!("table_shim.h");
        type OwnedTable = crate::table::ffi::OwnedTable;
        type OwnedTableWithMetadata = crate::table::ffi::OwnedTableWithMetadata;

        fn read_avro(filepath: &str, columns: &[String]) -> Result<UniquePtr<OwnedTable>>;
        fn read_avro_with_metadata(
            filepath: &str,
            columns: &[String],
        ) -> Result<UniquePtr<OwnedTableWithMetadata>>;
    }
}