summaryrefslogtreecommitdiffstats
path: root/third_party/rust/uniffi_bindgen/src/macro_metadata/mod.rs
blob: d303418eced550f20fc8d8124d3085e0bfa2a28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use super::ComponentInterface;
use camino::Utf8Path;

mod ci;
mod extract;

pub use ci::add_to_ci;
pub use extract::extract_from_library;

pub fn add_to_ci_from_library(
    iface: &mut ComponentInterface,
    library_path: &Utf8Path,
) -> anyhow::Result<()> {
    add_to_ci(iface, extract_from_library(library_path)?)
}