Skip to main content

openformula_kernel/
lib.rs

1//! Typed calculation semantics shared by Tanu Markdown, TSQ1, and Kitu.
2//!
3//! This crate implements a bounded OpenFormula 1.4 function-semantics subset.
4//! It deliberately does not parse formula source or resolve references.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![forbid(unsafe_code)]
8
9extern crate alloc;
10
11mod context;
12mod error;
13mod number;
14mod registry;
15mod value;
16
17/// Dependency-light example extensions used by Kitu integrations.
18pub mod extensions;
19
20pub use context::{EvalContext, PureContext};
21pub use error::{CalcError, CalcErrorKind, CalcResult};
22pub use number::Number;
23pub use registry::{
24    coerce_logical, coerce_number, CoercionPolicy, FunctionHandler, FunctionMetadata,
25    FunctionNamespace, FunctionRegistry,
26};
27pub use value::{Argument, Value};