2 releases

0.1.1 Jun 25, 2020
0.1.0 Jun 25, 2020

#1182 in WebAssembly

29 downloads per month

Apache-2.0 OR Zlib

41KB
826 lines

cala_core logo

Low-level platform glue for Cala

crates.io docs.rs tests Percentage of issues still open

Getting Started | Changelog | Cala Blog | GitHub

cala_core

This crate is used to make it easier to port to WASM, Android, etc.

Supports

  • Web: cargo-web/stdweb, wasm-pack/wasm-bindgen, cargo-cala backends for maximum interoperability

Targets

Targets that are marked are currently supported, the rest are planned. Targets in bold are preferred for that platform. Targets not listed are (mostly) similar to the ones listed, so bug reports and PRs can still be opened for them. This list is based on how cargo-cala builds distribution packages, so it may seem a little weird.

Android

  • APK / AAB (Android App Bundle)
    • aarch64-linux-android (APK: /lib/arm64-v8a/)
    • armv7-linux-androideabi, thumbv7neon-linux-androideabi (APK: /lib/armeabi-v7a/)
    • i686-linux-android (APK: /lib/x86/)
    • x86_64-linux-android (APK: /lib/x86_64/)

BSD Variants

  • i686-unknown-freebsd (32-bit FreeBSD App)
  • x86_64-unknown-freebsd (64-bit FreeBSD App)
  • x86_64-unknown-netbsd (64-bit NetBSD App)

Fuchsia

  • aarch64-fuchsia (Fuchsia for ARM App)
  • x86_64-fuchsia (Fuchsia for X86 App)

iOS

  • iOS App
    • aarch64-apple-ios
    • x86_64-apple-ios

Linux Variants

  • Flatpak
    • x86_64-unknown-linux-gnu (arch: /x86_64/)
    • i586-unknown-linux-gnu (arch: /i386/)
    • aarch64-unknown-linux-gnu (arch: /aarch64/, Raspberry Pi 4)
    • armv7-unknown-linux-gnueabihf, thumbv7neon-unknown-linux-gnueabihf (arch: /arm/, Raspberry Pi 2-3)
  • arm-unknown-linux-gnueabihf (Raspberry Pi Zero W Program)
  • riscv64gc-unknown-linux-gnu (Risc-V Linux Program)

MacOS

  • x86_64-apple-darwin (MacOS App)

Redox

  • x86_64-unknown-redox (Redox App)

Web

  • Static Web App
    • wasm32-unknown-emscripten, wasm32-unknown-unknown
    • asmjs-unknown-emscripten (fallback)
  • wasm32-wasi (WASI App)

Windows

  • i586-pc-windows-msvc, i686-pc-windows-msvc, i686-pc-windows-gnu (32-bit Windows App),
  • x86_64-pc-windows-gnu, x86_64-pc-windows-msvc (64-bit Windows App)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Contributors are always welcome (thank you for being interested!), whether it be a bug report, bug fix, feature request, feature implementation or whatever. Don't be shy about getting involved. I always make time to fix bugs, so usually a patched version of the library will be out a few days after a report. Features requests will not complete as fast. If you have any questions, design critques, or want me to find you something to work on based on your skill level, you can email me at jeronlau@plopgrizzly.com. Otherwise, here's a link to the issues on GitHub. Before contributing, check out the contribution guidelines, and, as always, make sure to follow the code of conduct.

Dependencies

~0–590KB
~11K SLoC