bundle_bundle 0.1.1

bundle bundles in a chain
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 87.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 480.23 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 10s Average build duration of successful builds.
  • all releases: 1m 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ickshonpe/bundle_bundle
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ickshonpe

bundle_bundle

Extension trait for Bundle with one method bundle that provides an alternative to tuples for building anonymous bundles.

Supports Bevy 0.9

Usage

Add to your project with:

cargo add bundle_bundle

Now where you used a tuple struct:

commands.spawn((
    Text2dBundle::from_section("message", text_style),
    Background(Color::NAVY),
    MessageMarkerComponent,
));

You can instead use:

use bundle_bundle::BundleBundleExt;

commands.spawn(
    Text2dBundle::from_section("message", text_style)
    .bundle(BackgroundColor(Color::NAVY))
    .bundle(MessageMarkerComponent)
);

Examples

cargo run --example hello_world