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.
- Host: GitHub
- URL: https://github.com/niwakadev/shared_enum_with_associated_data_between_rust_and_swift
- Owner: NiwakaDev
- License: mit
- Created: 2023-02-19T16:08:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T16:34:23.000Z (over 3 years ago)
- Last Synced: 2025-06-12T11:03:02.815Z (about 1 year ago)
- Topics: rust, swift
- Language: Shell
- Homepage:
- Size: 662 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)