integral_codegen/lib.rs
1//! `integral-codegen` — pure-Rust build-time generation.
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//! This crate currently exposes a minimal placeholder API.
9
10#![forbid(unsafe_code)]
11
12/// Placeholder generator entry point.
13#[must_use]
14pub fn generated_header() -> String {
15 "// generated by integral-codegen\n".to_string()
16}
17
18#[cfg(test)]
19mod tests {
20 use super::*;
21
22 #[test]
23 fn header_is_nonempty() {
24 assert!(generated_header().starts_with("// generated"));
25 }
26}