public class RustOutputManager extends Object implements OutputManager
OutputManager for managing the creation of Rust source files as the target of code generation.
The character encoding for the Writer is UTF-8.| Constructor and Description |
|---|
RustOutputManager(String baseDirName,
String packageName)
Create a new
OutputManager for generating rust source files into a given module. |
| Modifier and Type | Method and Description |
|---|---|
Writer |
createCargoToml()
Creates a new Cargo.toml file.
|
Writer |
createOutput(String name)
Create a new output which will be a rust source file in the given module.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithOutputpublic RustOutputManager(String baseDirName, String packageName)
OutputManager for generating rust source files into a given module.baseDirName - for the generated source code.packageName - for the generated source code relative to the baseDirName.public Writer createOutput(String name) throws IOException
The Writer should be closed once the caller has finished with it. The Writer is
buffered for efficient IO operations.
createOutput in interface OutputManagername - the name of the rust struct.Writer to which the source code should be written.IOException - if an issue occurs when creating the file.public Writer createCargoToml() throws IOException
Writer to which the crate definition should be written.IOException - if an issue occurs when creating the file.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.