[][src]Module fm_plugin::post_build

Controls bundling of the plug-in after build. Utilizes the cargo-post crate. Requires settings to configured in config.toml.

Example

Cargo.toml

[package.metadata.cargo-post.dependencies]
directories = "*"
toml = "*"
serde = { version = "1.0", features = ["derive"] }
fm_plugin = "*"

config.toml

[filemaker]
ext_path = "/path/to/Extentions"
bin_path = "/Applications/FileMaker Pro.app"

[plugin]
name = "plugin name"

post_build.rs

#[cfg(any(target_os = "windows", target_os = "macos"))]
fn main() -> Result<(), Box<dyn std::error::Error>> {
    fm_plugin::post_build::bundle_plugin()?;
    Ok(())
}

Functions

bundle_plugin

Handles bundling, renaming, and moving of the lib after build.