bevyengine / bevyengine/bevy

Errors when re-exporting bevy in a different crate

Open
#22,237 4 comments 0 reactions 0 assignees View on GitHub
A-ECS A-Reflection C-Bug D-Macros S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.