Skip to content

[Merged by Bors] - add serialize feature to bevy_transform#6379

Closed
amiani wants to merge 1 commit intobevyengine:mainfrom
amiani:serialize-transform
Closed

[Merged by Bors] - add serialize feature to bevy_transform#6379
amiani wants to merge 1 commit intobevyengine:mainfrom
amiani:serialize-transform

Conversation

@amiani
Copy link
Contributor

@amiani amiani commented Oct 26, 2022

Objective

Fixes #6378
bevy_transform is missing a feature corresponding to the serialize feature on the bevy crate.

Solution

Adds a serialize feature to bevy_transform.
Derives serde::Serialize and Deserialize when feature is enabled.

@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use A-Transform Translations, rotations and scales labels Oct 26, 2022
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this feature needs to be enabled under the bevy_internal feature flag that controls serialization support. See https://github.com/bevyengine/bevy/pull/6248/files#diff-b2ad530faa17948b982fc4e56a12e98206873a4ca7b115552df4ad2b299f83f0R48

@amiani amiani force-pushed the serialize-transform branch 4 times, most recently from 875272e to 5771cf3 Compare October 27, 2022 10:51
@amiani amiani force-pushed the serialize-transform branch 3 times, most recently from ec2594f to 1d43590 Compare October 27, 2022 13:31
Copy link
Member

@mockersf mockersf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few missing newlines, and then LGTM

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Oct 30, 2022
@amiani amiani force-pushed the serialize-transform branch from 1d43590 to 76cbcba Compare October 31, 2022 11:24
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot pushed a commit that referenced this pull request Oct 31, 2022
# Objective
Fixes #6378 
`bevy_transform` is missing a feature corresponding to the `serialize` feature on the `bevy` crate.

## Solution

Adds a `serialize` feature to `bevy_transform`.
Derives `serde::Serialize` and `Deserialize` when feature is enabled.
@bors bors bot changed the title add serialize feature to bevy_transform [Merged by Bors] - add serialize feature to bevy_transform Oct 31, 2022
@bors bors bot closed this Oct 31, 2022
bors bot pushed a commit that referenced this pull request Oct 31, 2022
# Objective

`bevy_core` is missing a feature corresponding to the `serialize` feature on the `bevy` crate. Similar to #6378 and #6379 to serialize `Name` easily.

## Solution

Add this feature and hand-written serialization for `Name` (to avoid storing `hash` field).

---

## Changelog

### Added

* `Serialize` and `Deserialize` derives for `Name` under `serialize` feature.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective
Fixes bevyengine#6378 
`bevy_transform` is missing a feature corresponding to the `serialize` feature on the `bevy` crate.

## Solution

Adds a `serialize` feature to `bevy_transform`.
Derives `serde::Serialize` and `Deserialize` when feature is enabled.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

`bevy_core` is missing a feature corresponding to the `serialize` feature on the `bevy` crate. Similar to bevyengine#6378 and bevyengine#6379 to serialize `Name` easily.

## Solution

Add this feature and hand-written serialization for `Name` (to avoid storing `hash` field).

---

## Changelog

### Added

* `Serialize` and `Deserialize` derives for `Name` under `serialize` feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Transform Translations, rotations and scales C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add serialize feature to bevy_transform

5 participants