Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

broccoli-server-sdk

SDK for building Broccoli online judge WASM plugins (backend).

Feature flags

Feature Default Description
guest off Enables host function wrappers (db, evaluator, host) and the WasmHost runtime for use inside WASM plugins

Without guest, only shared types, traits, and error definitions are available (useful for host-side code that needs the same type definitions).

Usage

Add the dependency with the guest feature in your plugin's Cargo.toml:

[dependencies]
broccoli-server-sdk = { version = "0.1", features = ["guest"] }

Then import the prelude:

use broccoli_server_sdk::prelude::*;

License

MIT