Skip to content

refactor(bevy_inventory): rename plugin and feature-gate snapshot#7907

Merged
h0lybyte merged 1 commit intodevfrom
trunk/bevy-inventory-1773270550
Mar 12, 2026
Merged

refactor(bevy_inventory): rename plugin and feature-gate snapshot#7907
h0lybyte merged 1 commit intodevfrom
trunk/bevy-inventory-1773270550

Conversation

@h0lybyte
Copy link
Member

Summary

  • Rename directory bevy_kbve_inventorybevy_inventory for standalone crates.io readiness
  • Feature-gate the JSON snapshot system behind optional snapshot feature (enabled by default)
  • Consumers can use default-features = false to drop serde_json if they don't need cross-boundary reads
  • All 83 tests pass, compiles with and without snapshot feature

Test plan

  • cargo check -p bevy_inventory (with default features)
  • cargo check -p bevy_inventory --no-default-features (without snapshot)
  • cargo test -p bevy_inventory (69 unit + 14 doc tests)
  • cargo check -p isometric-game (workspace still compiles)

…apshot

Rename bevy_kbve_inventory -> bevy_inventory directory for standalone
crates.io readiness. Gate the JSON snapshot system behind an optional
`snapshot` feature (enabled by default) so consumers who don't need
cross-boundary reads can drop the serde_json dependency.
@github-actions
Copy link
Contributor

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 3 package(s) with unknown licenses.
See the Details below.

License Issues

packages/rust/bevy/bevy_inventory/Cargo.toml

PackageVersionLicenseIssue Type
bevy>= 0.18.0, < 0.19.0NullUnknown License
serde>= 1.0.0, < 2.0.0NullUnknown License
serde_json>= 1.0.0, < 2.0.0NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
cargo/bevy >= 0.18.0, < 0.19.0 UnknownUnknown
cargo/serde >= 1.0.0, < 2.0.0 UnknownUnknown
cargo/serde_json >= 1.0.0, < 2.0.0 UnknownUnknown

Scanned Files

  • packages/rust/bevy/bevy_inventory/Cargo.toml
  • packages/rust/bevy/bevy_kbve_inventory/Cargo.toml

@h0lybyte h0lybyte merged commit 14cfdbd into dev Mar 12, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/bevy-inventory-1773270550 branch March 12, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant