# RustRover Module Builders / Project Wizards

**URL:** <https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625>\
**Category:** IntelliJ Platform\
**Created:** [February 20, 2025, 10:06am UTC](https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625 "2025-02-20T10:06:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![idoflax](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/idoflax/32/465_2.png) [@idoflax](https://platform.jetbrains.com/u/idoflax)\
**Post date:** [February 20, 2025, 10:06am UTC](https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625/1 "2025-02-20T10:06:38Z")

</div>

It seems that RustRover isn’t extendable in the same way other IDEs (or at least Intellij) are.

I’ve implemented a project wizard / module builder for the framework i’m supporting, and managed to get it up and running in Intellij+Rust Plugin.  
Using all three approaches works and they all displayed in the new project dialog.

 ![IJ new project](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/1X/565959ace6d2146800a6835abeea156b490c95d2.png)

But in Rust Rover, running the same plugin, none of them are picked up (I can only embedd one pic, so trust me when i say they are not there in the project wizard)

The documentation ([Frameworks | IntelliJ Platform Plugin SDK](https://plugins.jetbrains.com/docs/intellij/framework.html)) says that the Java plugin is needed only for the “Framework” feature, but no mention of it being needed for project wizards or module builders

Generally it seems like RR is in some different category than the other IDEs, for example it’s not mentioned here:

> **[Plugin Compatibility with IntelliJ Platform Products | IntelliJ Platform...](https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html)**

Am i missing something?

Please see code below (the repo isn’t public yet, but if need be ,i.e. if the answer is different than: “It’s not possible yet”, i can create a minimal reproduction)

Platform version: 2024.3.3

```xml
<idea-plugin allow-bundled-update="true">
    <depends>com.intellij.modules.platform</depends>
    <depends>com.intellij.modules.lang</depends>
    <depends>com.intellij.modules.rust-capable</depends>
    <depends>com.jetbrains.rust</depends>
    <resource-bundle>messages.FooBarPlugin</resource-bundle>

    <extensions defaultExtensionNs="com.intellij">

        <!-- Modules -->
        <moduleType id="FooBar_MODULE" implementationClass="io.github.flaxoos.FooBar.ide.module.FooBarModuleType"/>

        <!-- Only need one of the three below -->
        <!-- Module Builders / Project Wizards -->
        <moduleBuilder builderClass="io.github.flaxoos.FooBar.ide.module.FooBarModuleBuilder"/> 
        <newProjectWizard.generator implementation="io.github.flaxoos.FooBar.ide.newProject.FooBarGeneratorProjectWizard"/>
        <newProjectWizard.languageGenerator implementation="io.github.flaxoos.FooBar.ide.newProject.FooBarLanguageProjectWizard"/>

```

```kotlin
class FooBarModuleType : ModuleType<FooBarModuleBuilder>(ID) {
    companion object {
        const val ID = "FooBar_MODULE"
        val INSTANCE: FooBarModuleType = FooBarModuleType()
    }

    override fun getNodeIcon(isOpened: Boolean): Icon = FooBarIcons.Open.delegate
    override fun createModuleBuilder(): FooBarModuleBuilder = FooBarModuleBuilder()
    override fun getDescription(): String = "Module for developing FooBar-based blockchains."
    override fun getName(): String = "FooBar Module"
}

```

```kotlin
class FooBarModuleBuilder : GeneratorNewProjectWizardBuilderAdapter(FooBarGeneratorProjectWizard())

```

```kotlin
class FooBarGeneratorProjectWizard : GeneratorNewProjectWizard {
    private val coroutineScope = CoroutineScope(Dispatchers.Default)

    override val icon: Icon = FooBarIcons.Open.delegate

    override val id: @NonNls String = FacetNames.FooBar_FRAMEWORK_NAME
    override val name: @Nls(capitalization = Nls.Capitalization.Title) String = FacetNames.FooBar_FRAMEWORK_NAME
    override val ordinal: Int = 100

    override fun createStep(context: WizardContext): NewProjectWizardStep {
        val root = RootNewProjectWizardStep(context)
        val base = NewProjectWizardBaseStep(root)
        val rustModuleStep = RustStep(root, coroutineScope)
        val popStep = PopStep(rustModuleStep)
        return base.nextStep { root }.nextStep { rustModuleStep }.nextStep { popStep }
    }
}

```

````kotlin
class FooBarLanguageProjectWizard : LanguageGeneratorNewProjectWizard {
    private val coroutineScope = CoroutineScope(Dispatchers.Default)
    override val icon: Icon = FooBarIcons.Open.delegate
    override val name: @Nls(capitalization = Nls.Capitalization.Title) String = FacetNames.FooBar_FRAMEWORK_NAME
    override val ordinal: Int = 100
    override fun createStep(parent: NewProjectWizardStep): NewProjectWizardStep {
        // Ideally we want to break the RS step and only do the stuff we need from it, like setting up the cargo project/module, maybe we can use the RsNewProjectPanel
        val rustModuleStep = RustStep(parent, coroutineScope)
        val popStep = PopStep(parent)
        return parent.nextStep { rustModuleStep }.nextStep { popStep }
    }
}
```kotlin
````

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 20, 2025, 3:53pm UTC](https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625/4 "2025-02-20T15:53:27Z")

</div>

ProjectWizard works only in IntelliJ IDEA, but not in PyCharm/GoLand/RustRover/etc.  
You can use `com.intellij.directoryProjectGenerator` EP with a `com.intellij.ide.util.projectWizard.CustomStepProjectGenerator` implementation instead.

See [TeXiFy-IDEA/resources/META-INF/extensions/files-and-project.xml at master · Hannah-Sten/TeXiFy-IDEA · GitHub](https://github.com/Hannah-Sten/TeXiFy-IDEA/blob/master/resources/META-INF/extensions/files-and-project.xml#L12) as reference.

---

<div class="post-metadata">

**Author:** ![idoflax](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/idoflax/32/465_2.png) [@idoflax](https://platform.jetbrains.com/u/idoflax)\
**Post date:** [February 23, 2025, 12:20pm UTC](https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625/6 "2025-02-23T12:20:52Z")

</div>

@yann.cebron Thanks for your reply

May i suggest that the SDK docs would state this clearly? It’s not obvious from reading them, hence my confusion

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 24, 2025, 10:06am UTC](https://platform.jetbrains.com/t/rustrover-module-builders-project-wizards/625/7 "2025-02-24T10:06:26Z")

</div>

Thanks, yes we’re aware that this area needs rework.
