| Crates.io | mockforge-plugin-sdk |
| lib.rs | mockforge-plugin-sdk |
| version | 0.3.31 |
| created_at | 2025-10-16 20:04:00.13392+00 |
| updated_at | 2026-01-04 23:21:14.538078+00 |
| description | Official SDK for developing MockForge plugins with helper macros and testing utilities |
| homepage | https://mockforge.dev |
| repository | https://github.com/SaaSy-Solutions/mockforge |
| max_upload_size | |
| id | 1886693 |
| size | 130,280 |
Official SDK for developing MockForge plugins with ease.
Add to your Cargo.toml:
[dependencies]
mockforge-plugin-sdk = "0.1"
[lib]
crate-type = ["cdylib"]
Create your plugin:
use mockforge_plugin_sdk::prelude::*;
#[derive(Debug)]
pub struct MyAuthPlugin;
#[async_trait]
impl AuthPlugin for MyAuthPlugin {
async fn authenticate(
&self,
context: &PluginContext,
credentials: &AuthCredentials,
) -> PluginResult<AuthResult> {
// Your authentication logic
Ok(AuthResult::authenticated("user123"))
}
}
// Export plugin
export_plugin!(MyAuthPlugin);
export_plugin!, plugin_config!cargo build --target wasm32-wasi --release
MIT OR Apache-2.0