https://github.com/extism/d-sdk
Host SDK for the D Language
https://github.com/extism/d-sdk
Last synced: 7 months ago
JSON representation
Host SDK for the D Language
- Host: GitHub
- URL: https://github.com/extism/d-sdk
- Owner: extism
- License: bsd-3-clause
- Created: 2023-10-23T21:06:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T23:55:00.000Z (almost 3 years ago)
- Last Synced: 2025-04-28T12:20:00.942Z (over 1 year ago)
- Language: D
- Size: 21.5 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Extism D SDK
D bindings to the Extism host SDK.
## Development
1. Ensure a [D compiler](https://dlang.org/download) is installed and available in your `PATH`.
> Note: The compiler's frontend must be at least version `2.102`.
2. Ensure the extism shared library is installed *before* running tests or examples:
See [Installing Extism](https://extism.org/docs/install) documentation.
```sh
extism lib install latest
```
> Note: The `extism install` command may require `sudo`.
### Lint Sources
```sh
dub lint
```
> Note: Until [dlang/dub#2700](https://github.com/dlang/dub/issues/2700) is fixed, ensure all non-D sources (e.g. intermediate `*.d` files in `targets`) are cleaned from the repo.
>
> Run `cargo clean` to avoid seeing many invalid lint issues.
### Running Tests
```sh
dub test
```
## Examples
### Hello World
```sh
dub run extism:hello
```