File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 58
58
//!
59
59
//! ### 3) Generate and include component scaffolding from the UDL file
60
60
//!
61
- //! First you will need to install `uniffi-bindgen` on your system using `cargo install uniffi_bindgen`.
62
- //! Then add to your crate `uniffi_build` under `[build-dependencies]`.
63
- //! Finally, add a `build.rs` script to your crate and have it call `uniffi_build::generate_scaffolding`
61
+ //! Add to your crate `uniffi_build` under `[build-dependencies]`,
62
+ //! then add a `build.rs` script to your crate and have it call `uniffi_build::generate_scaffolding`
64
63
//! to process your `.udl` file. This will generate some Rust code to be included in the top-level source
65
64
//! code of your crate. If your UDL file is named `example.udl`, then your build script would call:
66
65
//!
77
76
//!
78
77
//! ### 4) Generate foreign language bindings for the library
79
78
//!
80
- //! The `uniffi-bindgen` utility provides a command-line tool that can produce code to
79
+ //! You will need ensure a local `uniffi-bindgen` - see <https://mozilla.github.io/uniffi-rs/tutorial/foreign_language_bindings.html>
80
+ //! This utility provides a command-line tool that can produce code to
81
81
//! consume the Rust library in any of several supported languages.
82
82
//! It is done by calling (in kotlin for example):
83
83
//!
84
84
//! ```text
85
- //! uniffi-bindgen --language kotlin ./src/example.udl
85
+ //! cargo run --bin -p uniffi-bindgen --language kotlin ./src/example.udl
86
86
//! ```
87
87
//!
88
88
//! This will produce a file `example.kt` in the same directory as the .udl file, containing kotlin bindings
You can’t perform that action at this time.
0 commit comments