[][src]Macro zathura_plugin::plugin_entry

macro_rules! plugin_entry {
    (
        $name:literal,
        $plugin_ty:ty,
        [
            $($mime:literal),+
            $(,)?
        ]
    ) => { ... };
}

Declares this library as a Zathura plugin.

A crate can only provide one Zathura plugin, so this macro may only be called once per crate.

For this to work, this crate must be built as a cdylib and the result put somewhere Zathura can find it. An easy way to iterate on a plugin is running this in the workspace root after any changes:

cargo build && zathura -p target/debug/ <file>

Examples

For a usage example of this macro, refer to the crate-level docs.