Skip to content

Errors when re-exporting bevy in a different crate #22237

@AwfulToTheEar

Description

@AwfulToTheEar

Bevy 0.17.3

Tried re-exporting bevy in a different crate

I re-exported bevy in my own "game_core" crate like so:
pub extern crate bevy;

What went wrong

when I tried using the re-exported bevy in other crates it threw errors saying it couldn't resolve bevy sub crates
failed to resolve: use of unresolved module or unlinked crate 'bevy_ecs'

usage example:

use game_core::bevy::prelude::*;

#[derive(Component, Default, Debug, Reflect)]
#[reflect(Component, Default)]
pub struct CanPush;

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsA-ReflectionRuntime information about typesC-BugAn unexpected or incorrect behaviorD-MacrosCode that generates Rust codeS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions