Skip to main content

pio_has_feature

Function pio_has_feature 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_has_feature( feature: *const c_char, ) -> i32
Expand description

Whether an optional build feature is compiled in: pass "arrow", "gridfm", "dist", or "pkg". Returns 1 if present, 0 otherwise (and 0 for a NULL or unknown name). The optional surfaces (pio_to_arrow, the pio_read_dir/ gridfm path, the pio_dist_* block, and the pio_package_* block) are only linked when their feature is built, so a consumer that loaded the library at runtime probes for them here instead of resolving symbols blind. Feature names are strings like format names, so a new feature never changes this signature. Infallible.