1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Designed to be used as a build-dependency. Used to generate plugin descriptors

use std::path::PathBuf;

pub mod function_finder;
pub mod plugin_function;

/// Creates plugin descriptor information by finding `#[plugin]` attributes
pub fn generate_plugin_metadata() -> Result<(), ()> {
    let lib_file = PathBuf::from_iter(&[
        &std::env::var("CARGO_MANIFEST_DIR").unwrap(),
        "src",
        "lib.rs",
    ]);

    println!("cargo:warning={:?}", lib_file);

    Ok(())
}