bytestring-net / bevy_lunex

Blazingly fast path based retained layout engine for Bevy entities, built around vanilla Bevy ECS.
https://bytestring-net.github.io/bevy_lunex/
Apache License 2.0
597 stars 24 forks source link

Examples do not compile #77

Closed Rynibami closed 2 months ago

Rynibami commented 2 months ago

I'm trying your examples standalone, but they won't compile properly. I've tried multiple ones, but they all seem to be unable to find types that should be in the prelude. I used the smallest example below (Mesh2D).

# Cargo.toml
[dependencies]
bevy_lunex  = { version = "0.2", features = ["debug"] }
bevy        = { version = "0.14", default-features = false, features = [
    "bevy_asset",
    "bevy_gilrs",
    "bevy_winit",
    "bevy_core_pipeline",
    "bevy_pbr",
    "bevy_render",
    "bevy_sprite",
    "bevy_text",
    "multi_threaded",
    "png",
    "x11",
]}
// main.rs
use bevy::prelude::*;
use bevy_lunex::prelude::*;
error[E0425]: cannot find value `UiMinimalPlugins` in this scope
   --> src/main.rs:6:39
    |
6   |         .add_plugins((DefaultPlugins, UiMinimalPlugins))
    |                                       ^^^^^^^^^^^^^^^^ help: a unit struct with a similar name exists: `MinimalPlugins`
    |
   ::: /Users/ryan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_internal-0.14.2/src/default_plugins.rs:199:1
    |
199 | pub struct MinimalPlugins;
    | ------------------------- similarly named unit struct `MinimalPlugins` defined here

error[E0425]: cannot find value `SourceFromCamera` in this scope
  --> src/main.rs:28:9
   |
28 |         SourceFromCamera,
   |         ^^^^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
IDEDARY commented 2 months ago

The examples from git main require git main version of bevy_lunex, which was ahead of crates.io latest release (0.2.3). The book is also tracking git main. This should be fixed now with the latest crates.io release I just published (0.2.4)