Skip to main content

Crate cujson_sys

Crate cujson_sys 

Source
Expand description

Raw FFI bindings to cuJSON.

Mirrors crates/cujson-sys/cuda/cujson_capi.h field-for-field and function-for-function. #![no_std]-compatible: everything here is #[repr(C)] primitives and raw pointers, no allocation.

Structs§

cujson_tape
Mirrors cujson_tape (cujson_capi.h). Layout verified against a C compile of the header by tests/layout.rs (tier 1, no nvcc needed).

Constants§

CUJSON_ERR_CUDA
CUJSON_ERR_EMPTY_INPUT
CUJSON_ERR_INPUT_TOO_LARGE
CUJSON_ERR_INTERNAL
CUJSON_ERR_UNBALANCED
CUJSON_ERR_UTF8
CUJSON_OK

Type Aliases§

cujson_status
Mirrors cujson_status (cujson_capi.h). A plain i32, not a Rust enum, because the value comes from C and an out-of-range value from a future header change must not be undefined behavior to hold.