public Writer createOutput(final String name) throws IOException
    {
        final String fileName = toLowerSnakeCase(name) + ".rs";
        final File targetFile = new File(srcDir, fileName);
        return Files.newBufferedWriter(targetFile.toPath(), UTF_8);
    }
Create a new output which will be a rust source file in the given module.
<p>
The {@link java.io.Writer} should be closed once the caller has finished with it. The Writer is
buffered for efficient IO operations.

@param name the name of the rust struct.
@return a {@link java.io.Writer} to which the source code should be written.
@throws IOException if an issue occurs when creating the file.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustOutputManager.java