Lokathor / bytemuck

A crate for mucking around with piles of bytes
https://docs.rs/bytemuck
Apache License 2.0
697 stars 77 forks source link

Derive macro doesn't work when exported #192

Closed crlf0710 closed 1 year ago

crlf0710 commented 1 year ago

Currently if the derive macro is reexport in another crate, it doesn't work, because the crate using it won't have ::bytemuck point to this crate. serde's solution is to provide an explicit serde(crate = "...") attribute. Maybe consider support it in the same way.

As a temporary workaround i'll add bytemuck dep to the usage site too. Might contribute if i've got time.

notgull commented 1 year ago

Duplicate of #93