integral_codegen/lib.rs
1//! `integral-codegen` — pure-Rust build-time generation (see `ARCHITECTURE.md`).
2//!
3//! Invoked from `build.rs` scripts to emit specialized per-angular-momentum
4//! kernels and coefficient tables (e.g. Boys Chebyshev tables) as plain Rust
5//! source — keeping all build-time code generation in one language rather than a
6//! separate external generator toolchain.
7//!
8//! Currently a stub; the first real generator (Boys interpolation tables) will
9//! land when the const-generic kernel path is optimized.
10
11#![forbid(unsafe_code)]
12
13/// Placeholder generator entry point, exercised by a unit test so the crate is
14/// wired into the build from the start.
15#[must_use]
16pub fn generated_header() -> String {
17 "// generated by integral-codegen\n".to_string()
18}
19
20#[cfg(test)]
21mod tests {
22 use super::*;
23
24 #[test]
25 fn header_is_nonempty() {
26 assert!(generated_header().starts_with("// generated"));
27 }
28}