1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /// Reexport items from other uniffi creates
6 pub use uniffi_core::*;
7 pub use uniffi_macros::*;
8 #[cfg(feature = "cli")]
10 #[cfg(feature = "bindgen-tests")]
11 pub use uniffi_bindgen::bindings::kotlin::run_test as kotlin_run_test;
12 #[cfg(feature = "bindgen-tests")]
13 pub use uniffi_bindgen::bindings::python::run_test as python_run_test;
14 #[cfg(feature = "bindgen-tests")]
15 pub use uniffi_bindgen::bindings::ruby::run_test as ruby_run_test;
16 #[cfg(feature = "bindgen-tests")]
17 pub use uniffi_bindgen::bindings::swift::run_test as swift_run_test;
18 #[cfg(feature = "bindgen")]
19 pub use uniffi_bindgen::{
20 bindings::TargetLanguage, generate_bindings, generate_component_scaffolding,
21 generate_component_scaffolding_for_crate, print_repr,
23 #[cfg(feature = "build")]
24 pub use uniffi_build::{generate_scaffolding, generate_scaffolding_for_crate};
25 #[cfg(feature = "bindgen-tests")]
26 pub use uniffi_macros::build_foreign_language_testcases;
28 #[cfg(feature = "cli")]
29 pub fn uniffi_bindgen_main() {
30 cli::run_main().unwrap();
36 fn trybuild_ui_tests() {
37 let t = trybuild::TestCases::new();
38 t.compile_fail("tests/ui/*.rs");