File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 4
4
/// #\[cxx::bridge\] invocations, both for shared types defined in another bridge and external C++
5
5
/// definitions. This serves multiple related purposes.
6
6
///
7
- /// TODO: These docs aren't discoverable. Add a link to here from the main crate docs.
8
- ///
9
7
/// <br>
10
8
///
11
9
/// ## Safely unifying occurrences of the same extern C++ type
Original file line number Diff line number Diff line change 346
346
//! <tr><td><sup><i>tbd</i></sup></td><td>std::shared_ptr<T></td></tr>
347
347
//! </table>
348
348
//!
349
+ //! <br>
350
+ //!
351
+ //! # Working with multiple bridge modules
352
+ //!
353
+ //! Multiple cxx::bridge modules can coexist in the same project. There are multiple reasons for
354
+ //! wanting to do so, such as for code organization reasons or to share a common library of FFI
355
+ //! types across many different bridges. Type aliases can be used inside the cxx::bridge to safely
356
+ //! unify the same opaque C++ type across multiple bridges or to reuse a shared type declared in
357
+ //! another bridge.
358
+ //
359
+ //! See the [documentation for the ExternType trait](trait.ExternType.html) for more information
360
+ //! and examples.
361
+ //!
362
+ //!
363
+ //! [ExternType trait]: trait.ExternType.html
349
364
//! [https://github.com/dtolnay/cxx]: https://github.com/dtolnay/cxx
350
365
351
366
#![ no_std]
You can’t perform that action at this time.
0 commit comments