The workspace feature would allow for supporting non standard libraries in languages like Rust. The workflow would be:
Edit sol.rs
clash run
cp {config['rust']['code_origin']} CONFIG_FOLDER/workspaces/{config['rust']['workspace']}/{config['rust']['code_destination']},
i. e. cp sol.rs CONFIG_FOLDER/workspaces/rust/src/main.rs
{config['rust']['run']},
i. e. cargo run --release
It would be great if there was a lookup table with language names and the build & run commands that the tool automatically searches for. Some ideas:
Ideally there would be a config file in
$XDG_CONFIG_HOME/clash
for Linux and%Appdata%/whatever
for Windows like:The workspace feature would allow for supporting non standard libraries in languages like Rust. The workflow would be:
sol.rs
clash run
cp {config['rust']['code_origin']} CONFIG_FOLDER/workspaces/{config['rust']['workspace']}/{config['rust']['code_destination']}
, i. e.cp sol.rs CONFIG_FOLDER/workspaces/rust/src/main.rs
{config['rust']['run']}
, i. e.cargo run --release