bevy-stylus-plugin

Crates.iobevy-stylus-plugin
lib.rsbevy-stylus-plugin
version0.1.1
created_at2025-09-01 17:09:00.38427+00
updated_at2025-09-01 17:11:26.318688+00
descriptionA Bevy plugin for integrating with Stylus blockchain contracts
homepage
repositoryhttps://github.com/yourusername/bevy-stylus-plugin
max_upload_size
id1819917
size188,158
Ahmed Castro (Turupawn)

documentation

README

Bevy Stylus Plugin

A Bevy plugin for integrating with Stylus blockchain contracts.

Usage

Add to your Cargo.toml:

[dependencies]
bevy-stylus-plugin = { git = "https://github.com/yourusername/bevy-stylus-plugin" }

Then in your game:

use bevy::prelude::*;
use bevy_stylus_plugin::{BlockchainPlugin, BlockchainClient};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(BlockchainPlugin)
        .run();
}

fn my_system(blockchain_client: Res<BlockchainClient>) {
    // Use the blockchain client
}

Configuration

Create a Stylus.toml file in your project root and set the PRIVATE_KEY environment variable.

Commit count: 0

cargo fmt