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.
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 explicitserde(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.