Skip to content

Commit

Permalink
Hides FFIConverterTypes from cargo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarik Eshaq committed Nov 26, 2021
1 parent adfa195 commit c9a7d19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions uniffi_bindgen/src/scaffolding/templates/EnumTemplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// public so other crates can refer to it via an `[External='crate'] typedef`
#}
#[doc(hidden)]
pub struct {{ e.type_()|ffi_converter_name }};

#[doc(hidden)]
Expand Down
1 change: 1 addition & 0 deletions uniffi_bindgen/src/scaffolding/templates/ErrorTemplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// public so other crates can refer to it via an `[External='crate'] typedef`
#}
#[doc(hidden)]
pub struct {{ e.type_()|ffi_converter_name }};

#[doc(hidden)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trait UniffiCustomTypeWrapper {
{%- endif -%}

// Type `{{ name }}` wraps a `{{ prim.canonical_name() }}`
#[doc(hidden)]
pub struct FfiConverterType{{ name }};

unsafe impl uniffi::FfiConverter for FfiConverterType{{ name }} {
Expand Down
2 changes: 2 additions & 0 deletions uniffi_bindgen/src/scaffolding/templates/RecordTemplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// We define a unit-struct to implement the trait to sidestep Rust's orphan rule (ADR-0006). It's
// public so other crates can refer to it via an `[External='crate'] typedef`
#}
#[doc(hidden)]
pub struct {{ rec.type_()|ffi_converter_name }};

#[doc(hidden)]
Expand Down

0 comments on commit c9a7d19

Please sign in to comment.