docs.rs failed to build miracle-plugin-0.0.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
miracle-plugin-0.0.1
miracle-plugin-rs
This package provides a pleasant API for writing plugins for miracle-wm. Miracle's plugin system uses WebAssembly
Setup
Building
Usage
First, make sure that you have the Mir and Rust dependencies installed:
Next, add miracle-plugin as a dependency of your crate:
Then, author your plugin (the following is a toy example):
// lib.rs
// First, declare your plugin.
;
// Then, register it with Miracle.
miracle_plugin!;
Next, build your plugin with:
# or
Finally, modify your Miracle config to load the plugin:
# ~/.config/miracle-wm/config.yaml
plugins:
- path: /path/to/myplugin.wasm