Skip to main content

Module code_utils

Module code_utils 

Source
Expand description

This module contains hacks for Rust nightly syntax to make it compatible with syn

Functionsยง

post_process_rust_code
The inverse of pre_process_rust_code()
pre_process_rust_code
Replace bits of Rust nightly syntax with something that is technically valid in stable Rust, so syn can parse it