21 releases

Uses new Rust 2021

0.2.3 Sep 12, 2022
0.2.2 Aug 30, 2022
0.1.19 Aug 10, 2022
0.1.7 Jul 28, 2022
0.1.2 Jan 9, 2022

#126 in Game dev

Download history 24/week @ 2022-10-07 2/week @ 2022-10-14 27/week @ 2022-10-21 7/week @ 2022-10-28 37/week @ 2022-11-04 35/week @ 2022-11-11 36/week @ 2022-11-18 4/week @ 2022-11-25 7/week @ 2022-12-02 10/week @ 2022-12-09 7/week @ 2022-12-16 31/week @ 2022-12-23 10/week @ 2022-12-30 14/week @ 2023-01-06 23/week @ 2023-01-13 14/week @ 2023-01-20

64 downloads per month
Used in crossbundle

MIT/Apache

78KB
1K SLoC

Rust 1K SLoC // 0.0% comments Kotlin 215 SLoC // 0.3% comments Shell 41 SLoC // 0.1% comments

Crossbow Splash Image

CI Info Crate Info Documentation Crossbundle Crate MIT/Apache 2.0 FOSSA Status GitHub Stars

What is Crossbow?

The crossbow project aims to provide a complete toolkit for cross-platform game development in Rust - from project creation to publishing. In addition, the project simplifies the creation, packaging, and signing of Android and iOS applications. We want to make most of our tools - engine agnostic to help rust game developers integrate them into their engines or games.

Why Crossbow?

There are already cargo-apk, cargo-mobile, cargo-xcode, etc. - why do I need another packaging tool?

Project crossbow is not only a packaging tool for Android and iOS - it's cross-platform build tools, plugins, and toolkit for Rust! With crossbundle you can create native .apk/.aab without any Java or setup Gradle project with fancy Crossbow Android plugins (iOS in near future); with crossbundle-tools you can customize and create new commands; with crossbow-android you can write your own Android plugins in Java/Kotlin.

A lot of functionality was inspired by Godot, Xamarin, and cargo-apk.

Design Goals

  • Customizable: Create new commands with available tools.
  • Simple: Easy to install and start hacking but also pretty flexible for strong devs.
  • Flexible: It's possible to build plain .apk/.aab or .app/.ipa; or with help of Gradle/XCode.
  • Rust: Don't leave your Rust code - everything can be configured from Cargo.toml.
  • Plugins: Godot-like plugins for Android (and iOS in future) with Rust wrapper!

Documentation

Now we would recommend you to read crossbow's documentation. Over there you will find how to set up development environment, install needed crates and how to use the tools.

Project structure

Crossbundle crates:

Name Description Status
crossbundle Command-line tool for building and running applications.
crossbundle-tools Toolkit used in crossbundle to build/pack/sign bundles.

Crossbow Platform crates:

Name Description Status
crossbow-android Crossbow Android Platform implementation. 🆗
crossbow-ios Crossbow iOS Platform implementation. 🛠

Crossbow Plugins:

Name Description Status
admob-android Google AdMob Plugin for Android. 🆗
play-games-services Google Play Games Services Plugin for Android. 🆗
play-billing Google Play Billing Plugin for Android. 🆗
play-core Google Play Core Plugin for Android. 📝

Helper crates:

Name Description Status
android-tools-rs Android-related tools for building and developing application.
android-manifest-rs AndroidManifest serializer and deserializer for Rust.
apple-bundle-rs AppleBundleResources serializer and deserializer for Rust.

✅ = Works and tested — 🆗 = Works but may contain bugs — 🛠 = Under development — 📝 = Planned

Special Thanks

Also, this project initially funded by Web3 Foundation Grants Program. Big shout-out to them!

W3F Grants Badge

License

Licensed under either of:

at your option.

FOSSA Status

Dependencies

~0.4–6MB
~108K SLoC