Skip to main content

compile_json

Function compile_json 

Source
pub fn compile_json(
    spec: &str,
    facts: &str,
    fonts: &[Arc<[u8]>],
) -> Result<String, ComposeError>
Expand description

compile across a JSON boundary. The result is {project, assets, loudness, warnings}.

§Errors

Returns where in the spec or facts, and why, they do not parse or compile.

§Panics

Never; a compiled project always serializes.