Skip to content

Commit

Permalink
Add hidden rust_links to CollatorBorrowed
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed Sep 11, 2024
1 parent 9e64309 commit adfce1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ffi/capi/src/collator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub mod ffi {

#[diplomat::opaque]
#[diplomat::rust_link(icu::collator::Collator, Struct)]
#[diplomat::rust_link(icu::collator::CollatorBorrowed, Struct, hidden)]
pub struct Collator(pub icu_collator::Collator);

#[diplomat::rust_link(icu::collator::CollatorOptions, Struct)]
Expand Down Expand Up @@ -109,6 +110,7 @@ pub mod ffi {
impl Collator {
/// Construct a new Collator instance.
#[diplomat::rust_link(icu::collator::Collator::try_new, FnInStruct)]
#[diplomat::rust_link(icu::collator::CollatorBorrowed::try_new, FnInStruct, hidden)]
#[diplomat::attr(supports = fallible_constructors, constructor)]
#[diplomat::attr(supports = non_exhaustive_structs, rename = "create")]
pub fn create_v1(
Expand Down

0 comments on commit adfce1e

Please sign in to comment.