/* Ċ Ġ* ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠMIT Ġlicense Ġthat Ġcan Ġbe Ċ Ġ* Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ Ġ*/ Ċ Ċ package Ġorg . rust . cargo . run config . was mp ack Ċ Ċ import Ġcom . intellij . execution . configurations . Configuration Factory Ċ import Ġcom . intellij . execution . configurations . Configuration Type Base Ċ import Ġcom . intellij . execution . configurations . Configuration Type Util Ċ import Ġcom . intellij . execution . configurations . Run Configuration Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġorg . rust . ide . icons . Rs Icons Ċ Ċ class ĠW asm Pack Command Configuration Type Ġ: ĠConfiguration Type Base ( ĊĠĠĠ Ġ" W asm Pack Command Run Configuration ", ĊĠĠĠ Ġ" wasm - pack ", ĊĠĠĠ Ġ" wasm - pack Ġcommand Ġrun Ġconfiguration ", ĊĠĠĠ ĠRs Icons . W ASM _ PACK Ċ ) Ġ{ ĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġadd Factory ( W asm Pack Configuration Factory ( this )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġfactory : ĠConfiguration Factory Ġget () Ġ= Ġconfiguration Factories . single () ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun ĠgetInstance (): ĠW asm Pack Command Configuration Type Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠConfiguration Type Util . find Configuration Type ( W asm Pack Command Configuration Type :: class . java ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠW asm Pack Configuration Factory ( type : ĠW asm Pack Command Configuration Type ) Ġ: ĠConfiguration Factory ( type ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetId (): ĠString Ġ= ĠID ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Template Configuration ( project : ĠProject ): ĠRun Configuration Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠW asm Pack Command Configuration ( project , Ġ" wasm - pack ", Ġthis ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠID : ĠString Ġ= Ġ" wasm - pack " ĊĠĠĠ Ġ} Ċ } Ċ