Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

glam crate is giving corrupt number when serialized via serde #547

@cybersoulK

Description

@cybersoulK

bincode 1.3.3 is fine
bincode2 (forked) is fine

image

first value is original,
second is bind code 1.3.3 or bincode2,
third is bincode v.2

the third value can output NaN sometimes.

I tried different settings in the config. and I tried to serialize my own struct of floats, and it works.
no idea why it doesn't work for glam::Vec3

serde is latest version, tried with multiple versions.
serde has field default-features = false

serde::encode_to_vec
serde::decode_from_slice

are side to side and there are no other factors involved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions