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

cbindgen makes serde panic on "proc-macro derive" #195

Closed
ralfbiedert opened this issue Aug 17, 2018 · 1 comment
Closed

cbindgen makes serde panic on "proc-macro derive" #195

ralfbiedert opened this issue Aug 17, 2018 · 1 comment

Comments

@ralfbiedert
Copy link
Contributor

Overview:

As summarized by @dtolnay:

Thanks! It looks like cbindgen currently disallows using any newer version of serde_derive than one from 9 months ago (which was before crate visibility was supported) because their Cargo.toml contains:

serde_derive = "=1.0.21"

I am closing this issue because this is something you would need to sort out with the cbindgen folks. If there is anything Serde can do to unblock cbindgen in using our new releases then we can follow up about that.

Which causes compilations errors like

error: proc-macro derive panicked
 --> src/main.rs:9:30
  |
9 | #[derive(Debug, Clone, Copy, Serialize)]
  |                              ^^^^^^^^^
  |
  = help: message: called `Result::unwrap()` on an `Err` value: "failed to parse derive input: \"#[repr(C)]\\npub struct Matrix4f32 {\\n    crate data: [f32; 16],\\n}\""

Issue details are in Serde #1357

Link to repository that reproduces problem.

@eqrion
Copy link
Collaborator

eqrion commented Oct 16, 2018

I'm going to mark this a duplicate of #203. This is a known, unfortunate, issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants