lindera_binding_core/lib.rs
1//! FFI-independent helpers shared by the Lindera language bindings
2//! (`lindera-python`, `lindera-php`, `lindera-ruby`, `lindera-nodejs`,
3//! `lindera-wasm`).
4//!
5//! Each binding wraps the core `lindera` crate for its own FFI layer (PyO3,
6//! ext-php-rs, magnus, napi, wasm-bindgen) and historically reimplemented the
7//! same pure-Rust conversion logic. This crate holds that shared logic as
8//! plain Rust so it can be unit-tested without any FFI toolchain.
9
10pub mod error;
11pub mod metadata;
12pub mod schema;
13pub mod token;
14pub mod tokenizer;
15
16pub use error::{CoreError, CoreResult, ErrorKind};
17pub use metadata::CoreMetadata;
18pub use schema::{CoreFieldDefinition, CoreFieldType, CoreSchema};
19pub use token::TokenView;
20pub use tokenizer::{CoreTokenizer, CoreTokenizerBuilder};