An open API service indexing awesome lists of open source software.

https://github.com/niwakadev/shared_enum_with_associated_data_between_rust_and_swift

This is an example of how to share enum with associated data between rust and swift.
https://github.com/niwakadev/shared_enum_with_associated_data_between_rust_and_swift

rust swift

Last synced: about 1 month ago
JSON representation

This is an example of how to share enum with associated data between rust and swift.

Awesome Lists containing this project

README

          

# shared_enum_with_associated_data_between_rust_and_swift
This is an example of how to share enum with associated data between rust and swift.

## Build

```
./build
```

## Run

```
./sample/main
```

## Resource

[Enums With Fields](https://doc.rust-lang.org/reference/type-layout.html#reprc-enums-with-fields)

[Using Imported C Structs and Unions in Swift](https://developer.apple.com/documentation/swift/using-imported-c-structs-and-unions-in-swift)

[Rustのデータ付きenumをSwift側で使いたい](https://qiita.com/niwaka_dev/items/ab4d79150ceac7c95676)