kamasylvia / rust-mod-generator

Generate a rust module quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Mod Generator

Use this extension to generate a rust mod quickly.

Features

Create a rust module from the Explorer.

image image

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.

image

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.

About

Generate a rust module quickly.

License:MIT License


Languages

Language:TypeScript 100.0%