Skip to main content

zerodds_lang_render/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 ZeroDDS Contributors
3//! Crate `zerodds-lang-render`. Safety classification: **SAFE**.
4//!
5//! A language CST goes in, text comes out. Nothing is decided here.
6//!
7//! The renderer must not consult the common AST, must not branch on
8//! anything but the CST node in hand, and must not insert a construct
9//! that is not in the tree. A renderer that decided anything would put
10//! that decision where no rule diff can see it.
11//!
12//! ## Spec
13//!
14//! - `docs/specs/zerodds-lang-cst-1.0.md` §5.
15//!
16//! ## Layer position
17//!
18//! Layer 1 of the backend arc — over `zerodds-lang-cst` and nothing else.
19#![no_std]
20#![forbid(unsafe_code)]
21
22extern crate alloc;
23
24#[cfg(test)]
25extern crate std;
26
27pub mod ada;
28pub mod ada83;
29pub mod c;
30pub mod cpp;
31pub mod csharp;
32pub mod d;
33pub mod elixir;
34pub mod fsharp;
35pub mod go;
36pub mod java;
37pub mod julia;
38pub mod kotlin;
39pub mod lua;
40pub mod nim;
41pub mod node;
42pub mod ocaml;
43pub mod python;
44pub mod rust;
45pub mod swift;
46pub mod typescript;
47pub mod writer;
48pub mod zig;
49
50pub use writer::Writer;