mockforge-plugin-sdk

Crates.iomockforge-plugin-sdk
lib.rsmockforge-plugin-sdk
version0.3.31
created_at2025-10-16 20:04:00.13392+00
updated_at2026-01-04 23:21:14.538078+00
descriptionOfficial SDK for developing MockForge plugins with helper macros and testing utilities
homepagehttps://mockforge.dev
repositoryhttps://github.com/SaaSy-Solutions/mockforge
max_upload_size
id1886693
size130,280
Ray Clanan (rclanan)

documentation

https://docs.rs/mockforge

README

MockForge Plugin SDK

Official SDK for developing MockForge plugins with ease.

🚀 Quick Start

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);

📚 Features

  • Helper Macros: Simplified plugin creation with export_plugin!, plugin_config!
  • Builder Patterns: Easy manifest creation
  • Testing Utilities: Mock contexts and test harnesses
  • Code Generation: Generate boilerplate automatically
  • Type Safety: Full Rust type system support

📖 Documentation

🔧 Building

cargo build --target wasm32-wasi --release

📄 License

MIT OR Apache-2.0

Commit count: 664

cargo fmt