Rust Mod Generator
Use this extension to generate a rust mod quickly.
Features
Create a rust module from the Explorer.
Note: The target folder/directory has to contain either a "mod.rs" or a "lib.rs" file, and the workspace has to contain a Cargo.toml file.
Create a rust module from the command.
Note: A .rs file has to be focused on, such that the extension can determine the path of the new mod.
Requirements
None.
Extension Settings
This extension contributes the following settings:
rust-mod-generator.autoFocus : Enable to auto focus on the new created module.
rust-mod-generator.selectAccessModifier : Enable to set the access modifier when creating a new module.
rust-mod-generator.addModDeclaration : Enable to prepend <modifier> mod <mod_name>; to a resource file.
rust-mod-generator.enableFileMenuItem : Enable to show the context menu item on Rust files in addition to folders.
Known Issues
Welcome to post any issue.
| |