assemble_build/
lib.rs

1//! Designed to be used as a build-dependency. Used to generate plugin descriptors
2
3use std::path::PathBuf;
4
5pub mod function_finder;
6pub mod plugin_function;
7
8/// Creates plugin descriptor information by finding `#[plugin]` attributes
9pub fn generate_plugin_metadata() -> Result<(), ()> {
10    let lib_file = PathBuf::from_iter(&[
11        &std::env::var("CARGO_MANIFEST_DIR").unwrap(),
12        "src",
13        "lib.rs",
14    ]);
15
16    println!("cargo:warning={:?}", lib_file);
17
18    Ok(())
19}