[][src]Crate syn_inline_mod

Utility to traverse the file-system and inline modules that are declared as references to other Rust files.

Structs

InlineError

An error that happened while attempting to inline a module.

InlinerBuilder

A builder that can configure how to inline modules.

InliningResult

The result of a best-effort attempt at inlining. This struct guarantees that the origin file was readable and valid Rust source code, but errors must be inspected to check if everything was inlined successfully.

Enums

Error

An error that was encountered while reading, parsing or inlining a module.

Functions

parse_and_inline_modules

Parse the source code in src_file and return a syn::File that has all modules recursively inlined.