You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Evaluate solution
The text was updated successfully, but these errors were encountered:
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:
# changes the default language to C clash language c
clash run # runs `sol.{language_file_ext}` with default language
clash run --language rust clash run -l rust # runs sol.rs with rust
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
The text was updated successfully, but these errors were encountered: