Function kjp_generator::processors::create_processor_generators
source · [−]pub fn create_processor_generators<P: AsRef<Path>>(
generators_path: P
) -> Result<HashMap<String, PathBuf>, Box<dyn Error>>
Expand description
Creates a map of code generators from given path.
This creates a dictionary of all available processor types. Each generator is a program that generates a processor function body, which will be used for processing JSON messages in a given stream.
This function will scan given path for files. Each file will be treated as a separate generator. Each generator will have the name of corresponding file, but without extension. In case of name conflict, last found generator will overwrite previous ones.
Please be careful what directory you use, as the generation process runs executables from the directory.