├── .clang-format ├── .clangd ├── .github ├── CODEOWNERS ├── actions │ └── libextism │ │ └── action.yml └── workflows │ └── ci.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── examples ├── allocations │ ├── Makefile │ └── allocations.c ├── count-vowels │ ├── Makefile │ └── count-vowels.c ├── globals │ ├── Makefile │ └── globals.c ├── host-functions │ ├── Makefile │ └── host-functions.c └── infinite-loop │ ├── Makefile │ ├── infinite-loop.c │ └── manifest.json ├── extism-pdk.h ├── install-wasi-sdk.sh └── tests ├── Makefile ├── alloc.c ├── alloc_buf_from_sz.c ├── cplusplus.cpp ├── fail.c ├── hello.c ├── implementation.c ├── load_input_bounds_checks.c ├── strlen.c ├── use_libc.c └── util.h /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | IndentWidth: 2 3 | -------------------------------------------------------------------------------- /.clangd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/.clangd -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @zshipko @G4Vi 2 | -------------------------------------------------------------------------------- /.github/actions/libextism/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/.github/actions/libextism/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.wasm 2 | *.o 3 | wasi-sdk 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/README.md -------------------------------------------------------------------------------- /examples/allocations/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/allocations/Makefile -------------------------------------------------------------------------------- /examples/allocations/allocations.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/allocations/allocations.c -------------------------------------------------------------------------------- /examples/count-vowels/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/count-vowels/Makefile -------------------------------------------------------------------------------- /examples/count-vowels/count-vowels.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/count-vowels/count-vowels.c -------------------------------------------------------------------------------- /examples/globals/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/globals/Makefile -------------------------------------------------------------------------------- /examples/globals/globals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/globals/globals.c -------------------------------------------------------------------------------- /examples/host-functions/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/host-functions/Makefile -------------------------------------------------------------------------------- /examples/host-functions/host-functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/host-functions/host-functions.c -------------------------------------------------------------------------------- /examples/infinite-loop/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/infinite-loop/Makefile -------------------------------------------------------------------------------- /examples/infinite-loop/infinite-loop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/infinite-loop/infinite-loop.c -------------------------------------------------------------------------------- /examples/infinite-loop/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/examples/infinite-loop/manifest.json -------------------------------------------------------------------------------- /extism-pdk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/extism-pdk.h -------------------------------------------------------------------------------- /install-wasi-sdk.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/install-wasi-sdk.sh -------------------------------------------------------------------------------- /tests/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/Makefile -------------------------------------------------------------------------------- /tests/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/alloc.c -------------------------------------------------------------------------------- /tests/alloc_buf_from_sz.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/alloc_buf_from_sz.c -------------------------------------------------------------------------------- /tests/cplusplus.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/cplusplus.cpp -------------------------------------------------------------------------------- /tests/fail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/fail.c -------------------------------------------------------------------------------- /tests/hello.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/hello.c -------------------------------------------------------------------------------- /tests/implementation.c: -------------------------------------------------------------------------------- 1 | #define EXTISM_IMPLEMENTATION 2 | #include "../extism-pdk.h" 3 | -------------------------------------------------------------------------------- /tests/load_input_bounds_checks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/load_input_bounds_checks.c -------------------------------------------------------------------------------- /tests/strlen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/strlen.c -------------------------------------------------------------------------------- /tests/use_libc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/use_libc.c -------------------------------------------------------------------------------- /tests/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/c-pdk/HEAD/tests/util.h --------------------------------------------------------------------------------