0.1.21 • Published 4 years ago

hero_core-wasm v0.1.21

Weekly downloads
66
License
-
Repository
-
Last release
4 years ago

Android

To Build the Android Library

  • Ensure cargo.toml uses lib crate-type = "cdylib"
  • Type: . ./scripts/build_ios.sh

iOS

To Build the iOS Library

  • 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

To Use the iOS Library

The library is already set up for use in the xcode project. Just open /ios/hero-designer-ios/hero-designer-ios.xcodeproj in xcode.

NPM ===

To Build the WASM Package:

To Publish the WASM Package to NPM:

  • 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

Examples

To Build the Examples

  • Ensure the lib section of cargo.toml has all entries commented out
  • Type: cargo run --example example_name

Deploy To Heroku

To deploy

  • 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

Resources

Android Resources

iOS Resources

Rust Resources

Add examples to your Rust libraries Heroku buildpack for Rust How to publish packages to npm (the way the industry does things)

  • WASM Resources

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago