bindings: a C ABI and an npm package alongside the wheel

This commit is contained in:
funkpower
2026-09-19 18:40:08 -04:00
parent cf126dddc3
commit 48600bd90c
16 changed files with 1221 additions and 10 deletions
+8
View File
@@ -18,6 +18,14 @@
#[cfg(feature = "python")]
mod python;
#[cfg(feature = "capi")]
pub mod capi;
// Only ever compiled for a wasm32 target. The feature can be on elsewhere —
// `--all-features` turns everything on — and there it compiles to nothing.
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub mod wasm;
use corpus_core::{Chunk, Doc, Hit};
use cuekit::Cue;