#command-line #run-command #compiler #wasi #c #cpp #clang-format

app snippet

Running c/c++/rust snippet from command line

7 releases

0.1.6 Sep 10, 2024
0.1.5 Sep 9, 2024

#450 in Command-line interface

Download history 298/week @ 2024-09-06 100/week @ 2024-09-13 16/week @ 2024-09-20 67/week @ 2024-09-27 9/week @ 2024-10-04

76 downloads per month

MPL-2.0 license

39KB
953 lines

snippet

Generate and run simple c/c++/rust code in the command line.

Usage

Install snippet

cargo install snippet

Install compiler and language plugin

snippet install snippet-compiler-c snippet install snippet-language-c

Run code

snippet c -e "printf(\"hello from wasip1\")" -p -fmt="clang-format=--style=GNU" -cat="bat=-l=C"

Dependencies

~46–62MB
~1M SLoC