-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bincode
breaks Enums
#12
Comments
You are correct, bincode has some weird restrictions as it is a self-describing format and thus can't work with things like that. I do consider the use of bincode in that context sub-par, but couldn't find a suitable one. I am open for suggestions! |
I don't know whether this is a limitation of |
Yes, as it is able to differentiate the two. As you can see in this issue, this problem is known and probably will not be fixed: bincode-org/bincode#272 (comment) I am open for alternate defaults. I plan on adding compile-time picking of encoding scheme, but did not get around to do that yet. |
I have a rough compile-time encoding scheme plan in my fork, I need to get it into a better place though before I do and then I'll submit a PR for it, been kicking the tires on it with this server mmo project and I've made way to many other changes that I should roll into a separate performance PR |
The change from
JSON
tobincode
introduced here breaks Enum transmissions. Upon receiving one gets the errorI set up a small example for verification here.
Reproduce
run
run
click on the grey
server
bevy app. Every click broadcasts anMyEnum::A
wich cannot be parsed from the client.The text was updated successfully, but these errors were encountered: