https://github.com/extism/f-sharp-pdk-template
https://github.com/extism/f-sharp-pdk-template
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/extism/f-sharp-pdk-template
- Owner: extism
- Created: 2024-04-24T18:15:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T18:23:06.000Z (over 2 years ago)
- Last Synced: 2025-04-28T11:16:27.739Z (over 1 year ago)
- Language: F#
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extism F# PDK Plugin
See more documentation at https://github.com/extism/dotnet-pdk and
[join us on Discord](https://extism.org/discord) for more help.
## Build and run
```
dotnet build ./Plugin.fsproj
extism call ./bin/Debug/net8.0/wasi-wasm/AppBundle/Plugin.wasm greet --wasi --input="Steve"
# => Hello, Steve!
extism call ./bin/Debug/net8.0/wasi-wasm/AppBundle/Plugin.wasm add --wasi --input='{"a": 20, "b": 21}'
# => {"Result":41}
```
## Publish
```
dotnet publish ./Plugin.fsproj
```
Now you can find a trimmed `Plugin.wasm` file in `bin/Release/net8.0/wasi-wasm/AppBundle`