uniffi-rs-fullstack-examples/hello
imWildCat 74b0cab9b5 use record exported types 2023-10-21 06:16:07 -04:00
..
misc/apple Add apple platform demo 2022-01-08 21:47:11 +08:00
platforms use record exported types 2023-10-21 06:16:07 -04:00
src use record exported types 2023-10-21 06:16:07 -04:00
.gitignore Android example (#2) 2022-03-16 08:40:51 +08:00
Cargo.toml Use new macros system of Uniffi (#11) 2023-09-20 21:35:44 -07:00
Makefile Use new macros system of Uniffi (#11) 2023-09-20 21:35:44 -07:00
README.md Update README.md of hello 2022-03-22 23:07:33 +08:00
build.rs Upgrade to latest uniffi (0.23.0) (#7) 2023-06-08 22:59:42 -07:00

README.md

Hello example (minimal)

A shared library for the todo list application, which can be used for Android, iOS and other platforms.

Prerequisites

Please refer to the root README.md.

Binary Size

iOS

  • Generate binaries, xcframework and Swift binding: make apple

With Rust binary: 503K

# ls -lh
total 536K
drwxr-xr-x 4 _installd _installd  128 Jan  9 09:52 Base.lproj/
-rwxr-xr-x 1 _installd _installd 503K Jan  9 09:52 HelloAppleDemoApp*
-rw-r--r-- 1 _installd _installd 1.5K Jan  9 09:52 Info.plist
drwxr-xr-x 2 _installd _installd   64 Jan  9 09:52 META-INF/
-rw-r--r-- 1 _installd _installd    8 Jan  9 09:52 PkgInfo
drwxr-xr-x 3 _installd _installd   96 Jan  9 09:52 _CodeSignature/
-rw-r--r-- 1 _installd _installd  21K Jan  9 09:52 embedded.mobileprovision

Without Rust binary: 147K

# ls -lh
total 180K
drwxr-xr-x 4 _installd _installd  128 Jan  9 09:57 Base.lproj/
-rwxr-xr-x 1 _installd _installd 147K Jan  9 09:57 HelloAppleDemoApp*
-rw-r--r-- 1 _installd _installd 1.5K Jan  9 09:57 Info.plist
drwxr-xr-x 2 _installd _installd   64 Jan  9 09:57 META-INF/
-rw-r--r-- 1 _installd _installd    8 Jan  9 09:57 PkgInfo
drwxr-xr-x 3 _installd _installd   96 Jan  9 09:57 _CodeSignature/
-rw-r--r-- 1 _installd _installd  21K Jan  9 09:52 embedded.mobileprovision