Debian Codegraph @

third_party/rust/uniffi/src/cli/mod.rs

raw
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/. */
4
5 mod swift;
6 mod uniffi_bindgen;
7
8 pub fn uniffi_bindgen_main() {
9 if let Err(e) = uniffi_bindgen::run_main() {
10 eprintln!("{e:?}");
11 std::process::exit(1);
12 }
13 }
14
15 pub fn uniffi_bindgen_swift() {
16 if let Err(e) = swift::run_main() {
17 eprintln!("{e:?}");
18 std::process::exit(1);
19 }
20 }