MCPcopy Index your code
hub / github.com/dodorare/crossbow

github.com/dodorare/crossbow @v0.2.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.3 ↗ · + Follow
759 symbols 1,471 edges 173 files 239 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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:

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

FOSSA Status

Extension points exported contracts — how you extend this code

CrossbowPlugin (Interface)
(no doc) [4 implementers]
platform/android/src/plugin/mod.rs
CommandExt (Interface)
Extension trait for [`Command`] that helps to wrap output and print logs from command execution. [`Command`]: std::proc [1 …
crossbundle/tools/src/error.rs
AchievementsListener (Interface)
(no doc)
plugins/play-games-services/android/src/com/crossbow/play_games_services/achievements/AchievementsListener.kt
CrossbowHost (Interface)
* Denotate a component (e.g: Activity, Fragment) that hosts the [Crossbow] fragment. */
platform/android/java/lib/src/com/crossbow/library/CrossbowHost.kt
IntoRustTriple (Interface)
(no doc) [2 implementers]
crossbundle/tools/src/types/common/target.rs
PlayerInfoListener (Interface)
(no doc)
plugins/play-games-services/android/src/com/crossbow/play_games_services/accountinfo/PlayerInfoListener.kt
CrossbowPluginInfoProvider (Interface)
* Provides the set of information expected from a Crossbow plugin. */
platform/android/java/lib/src/com/crossbow/library/plugin/CrossbowPluginInfoProvider.kt
EventsListener (Interface)
(no doc)
plugins/play-games-services/android/src/com/crossbow/play_games_services/events/EventsListener.kt

Core symbols most depended-on inside this repo

into
called by 114
platform/ios/src/permission/types.rs
call_method
called by 60
platform/android/src/plugin/jni_singleton.rs
request_permission
called by 42
platform/ios/src/permission/mod.rs
to_string
called by 30
plugins/admob-android/src/lib.rs
status
called by 24
crossbundle/tools/src/types/common/shell.rs
isConnected
called by 20
plugins/play-games-services/android/src/com/crossbow/play_games_services/ConnectionController.kt
to_string
called by 19
crossbundle/tools/src/types/common/profile.rs
run
called by 18
crossbundle/cli/src/commands/run/apple.rs

Shape

Method 496
Function 151
Class 63
Enum 37
Interface 12

Languages

Rust62%
Kotlin38%

Modules by API surface

plugins/play-games-services/android/src/com/crossbow/play_games_services/CrossbowPlayGamesServices.kt55 symbols
crossbundle/tools/src/types/common/shell.rs41 symbols
plugins/admob-android/android/src/com/crossbow/admob/CrossbowAdMob.kt36 symbols
plugins/admob-android/src/lib.rs28 symbols
plugins/play-games-services/src/lib.rs26 symbols
platform/android/java/lib/src/com/crossbow/library/plugin/CrossbowPlugin.kt25 symbols
plugins/play-billing/android/src/com/crossbow/play_billing/CrossbowPlayBilling.kt18 symbols
platform/android/src/plugin/jni_rust_type.rs18 symbols
plugins/play-billing/src/lib.rs17 symbols
platform/android/java/lib/src/com/crossbow/library/Crossbow.kt17 symbols
crossbundle/cli/src/commands/install/sdkmanager.rs17 symbols
crossbundle/tools/src/types/android/android_ndk.rs16 symbols

For agents

$ claude mcp add crossbow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact