pub fn build_bytecode(source: String, filename: &str) -> Result<Vec<u8>, String>Expand description
Compiles a .cdl source string to a .cdlb bytecode artifact.
The artifact captures the whole program: every imported workspace .cdl
module is linked into the single serialized image, so the resulting .cdlb
runs under candela-vm with no source tree present. Dynamic-library imports
and host blocks are captured as recipes (logical name + symbol +
signature) that the VM re-binds by name at load time, never as embedded
binary bytes.
ยงErrors
Returns an error string if serialization fails.