Skip to content

Commit

Permalink
Use trait indirection for Option FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
kuecks committed Jun 30, 2024
1 parent a597efe commit 7249c36
Show file tree
Hide file tree
Showing 11 changed files with 590 additions and 444 deletions.
130 changes: 77 additions & 53 deletions macro/src/expand.rs

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ pub use crate::cxx_vector::CxxVector;
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
pub use crate::exception::Exception;
pub use crate::extern_type::{kind, ExternType};
pub use crate::rust_option::RustOption;
pub use crate::shared_ptr::SharedPtr;
pub use crate::string::CxxString;
pub use crate::unique_ptr::UniquePtr;
Expand Down Expand Up @@ -513,8 +512,8 @@ pub mod private {
pub use crate::opaque::Opaque;
#[cfg(feature = "alloc")]
pub use crate::result::{r#try, Result};
pub use crate::rust_option::assert_option_safe;
pub use crate::rust_option::RustOption;
pub use crate::rust_option::OptionFfi;
pub use crate::rust_option::OptionFfiInverse;
pub use crate::rust_slice::RustSlice;
pub use crate::rust_str::RustStr;
#[cfg(feature = "alloc")]
Expand Down
Loading

0 comments on commit 7249c36

Please sign in to comment.