Skip to main content

Crate nautilus_codegen

Crate nautilus_codegen 

Source
Expand description

Nautilus Codegen — library entry point.

Exposes generate_command, validate_command, and helpers so they can be called from nautilus-cli (the unified binary) as well as from the standalone nautilus-codegen binary.

Modules§

backend
Language-backend abstraction for Nautilus code generation.
composite_type_gen
Composite type code generator (Rust backend).
enum_gen
Enum code generator.
generator
Code generator for Nautilus models, delegates, and builders.
js
JavaScript/TypeScript code generator module.
python
Python code generator module.
type_helpers
Type mapping helpers for code generation.
writer
File writing utilities for generated code.

Structs§

GenerateOptions
Options controlling code generation behaviour.

Functions§

generate_command
Parse, validate, and if successful generate client code for the given schema.
parse_schema
resolve_schema_path
Auto-detect the first .nautilus file in the current directory, or return schema as-is if explicitly provided.
validate_command
Parse and validate the schema, printing a summary. Does not generate code.