bevyengine / bevyengine/bevy

Reflection Issue with petgraph::graph::DiGraph

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

Description

## Bevy version

0.15.0

## What you did

I'm working on implementing scripting support using bevy\_reflect.

## What went wrong

There's something weird going on with `petgraph::graph::DiGraph`:

```rs
OpaqueInfo {
ty: petgraph::graph::DiGraph,
generics: Generics(
[],
),
docs: None,
}
```

This type clearly has generic parameters, but the generics field is empty.

## Additional information

The reflection is implemented using the macro `impl_reflect_opaque!`, maybe something there goes wrong.

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.