planus-codegen 1.3.0

Internal codegen library for planus.
Documentation
{%- if info.name.is_empty() -%}

pub use root::*;

const _: () = ::planus::check_version_compatibility("planus-1.3.0");

{% for docstring in docstrings.iter_strings() %}
/// {{ docstring }}
{%- endfor %}
#[no_implicit_prelude]
#[allow(clippy::needless_lifetimes)]
mod root {
{%- else -%}
{% for docstring in docstrings.iter_strings() %}
/// {{ docstring }}
{%- endfor %}
pub mod {{info.name}} {
{%- endif -%}
    {%- for child in children -%}
        {{- Namespace(child)|safe -}}

    {% endfor -%}
    {%- for child in declarations -%}
        {%- match child -%}
            {%- when BackendDeclaration::Struct(inner) -%}{{- Struct(inner) }}
            {%- when BackendDeclaration::Table(inner) -%}{{- Table(inner) }}
            {%- when BackendDeclaration::Enum(inner) -%}{{- Enum(inner) }}
            {%- when BackendDeclaration::Union(inner) -%}{{- Union(inner) }}
            {%- when BackendDeclaration::RpcService(inner) -%}{{- RpcService(inner) }}
        {% endmatch %}

    {% endfor -%}
}