- Ensure cargo.toml uses [lib] crate-type = ["cdylib"]
- Type: . ./scripts/build_ios.sh
- Ensure cargo.toml uses [lib] crate-type = ["staticlib"]
- Open a terminal
- cd to the project root directory.
- First Time:
- Type: cbindgen src/lib.rs -l c > hero_corelib.h
- Currently, cbindgen will include some unneeded #defines. Open hero_corelib.h in the project root and delete ALL #defines. Do the same for ios/include/hero_corelib.h
- Every Time:
- Type: . ./scripts/build_ios.sh
The library is already set up for use in the xcode project. Just open /ios/hero-designer-ios/hero-designer-ios.xcodeproj in xcode.
- Ensure cargo.toml uses [lib] crate-type = ["cdylib", "rlib"]
- Type: wasm-pack build
- Open a terminal at the project root directory.
- Type: cd pkg
- Edit package.json, changing the package name to hero_core-wasm and bump the version number.
- https://www.npmjs.com/package/hero_core-wasm
- Type: npm login
- username: magicjava password: JazuTKPaaQV2ek+xAlRsub4iIYc= email: magicjtv@gmail.com
- Type: npm publish
- Ensure the [lib] section of cargo.toml has all entries commented out
- Type: cargo run --example [example_name]
- Ensure the [lib] section of cargo.toml has all entries commented out
- Ensure code is pushed to git
- Type: git push heroku master
- uscomics@protonmail.com
- heroku git:remote -a gentle-dusk-67062
- Rust on Android (blogpost)
- Rust once and share it with Android, iOS and Flutter (blogpost)
- An Overview of the Android Jetpack Navigation Architecture Component
- Jetpack Compose basics
- Pickers
- Rust once and share it with Android, iOS and Flutter (blogpost)
- Introduction to SwiftUI
- Human Interface Guidelines
Add examples to your Rust libraries Heroku buildpack for Rust How to publish packages to npm (the way the industry does things)
- WASM Resources