Skip to content
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

Project does not compile with serde enabled as a feature #159

Open
RyanDeivert555 opened this issue Jun 14, 2023 · 1 comment
Open

Project does not compile with serde enabled as a feature #159

RyanDeivert555 opened this issue Jun 14, 2023 · 1 comment

Comments

@RyanDeivert555
Copy link

When having raylib = { version = "3.7.0", features = ["with_serde"]} in the Cargo.toml file in order to use serde on Raylib's structs (through the optional_serde_struct macro, the project will not compile. The compiler states that both Serialize and Deserialize are not in scope in the files of the library. Is this an oversight or is there something else I have to do for the program to compile? The files I added are screenshots of the error.

Screenshot 2023-06-14 102410
image

@RMcTn
Copy link

RMcTn commented Oct 18, 2023

Incase anyone comes across this issue as well, it was fixed in #117. The fix isn't in the latest release 3.7.0, so I've had to add this dependency through git

cargo add --git https://github.com/deltaphc/raylib-rs.git --rev 03240d0 raylib

The revision used here is the commit that introduced the fix. Feel free to use a more up to date revision

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

No branches or pull requests

2 participants