cudf-cxx 0.3.1

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
16
#[cxx::bridge(namespace = "cudf_shims")]
pub mod ffi {
    unsafe extern "C++" {
        include!("io/json_shim.h");
        include!("table_shim.h");
        type OwnedTable = crate::table::ffi::OwnedTable;
        type OwnedTableWithMetadata = crate::table::ffi::OwnedTableWithMetadata;

        fn read_json(filepath: &str, lines: bool) -> Result<UniquePtr<OwnedTable>>;
        fn read_json_with_metadata(
            filepath: &str,
            lines: bool,
        ) -> Result<UniquePtr<OwnedTableWithMetadata>>;
        fn write_json(table: &OwnedTable, filepath: &str, lines: bool) -> Result<()>;
    }
}