Skip to content

0.1.46

Compare
Choose a tag to compare
@chinedufn chinedufn released this 19 Jan 16:26
· 86 commits to master since this release
c0d6a1b
  • Support generating a Swift Equatable implementation for Rust types that implement PartialEq. #139 (thanks @NiwakaDev)

     // For example, the following is now possible:
    
     #[swift_bridge::bridge]
     mod ffi {
         extern "Rust" {
             #[swift_bridge(Equatable)]
             type SomeType;
         }
     }
    
     #[derive(PartialEq)]
     struct SomeType;
  • Support generating a Swift Hashable implementation for Rust types that implement Hash. #140 (thanks @NiwakaDev)

     // For example, the following is now possible:
    
     #[swift_bridge::bridge]
     mod ffi {
         extern "Rust" {
             #[swift_bridge(Hashable, Equatable)]
             type SomeType;
         }
     }
    
     #[derive(Hash, PartialEq)]
     struct SomeType;