You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analogous to #[serde(crate = "...")], it'd be great to have a #[postcard(crate = ...)] for #[derive(Schema)] to make it possible to re-export postcard derives from another crate without needing an additional direct dependency on postcard or postcard_schema.
Parsing could likely be handled similarly to #154, although it'd be nice to support #[postcard(crate = postcard)] instead of requiring a string literal like #[postcard(crate = "postcard")] (IIRC, the reason serde uses string literals is for backwards-compatibility).
The text was updated successfully, but these errors were encountered:
Analogous to
#[serde(crate = "...")]
, it'd be great to have a#[postcard(crate = ...)]
for#[derive(Schema)]
to make it possible to re-export postcard derives from another crate without needing an additional direct dependency onpostcard
orpostcard_schema
.This
postcard/source/postcard-derive/src/schema.rs
Lines 22 to 24 in 7011177
would have to become something like
Parsing could likely be handled similarly to #154, although it'd be nice to support
#[postcard(crate = postcard)]
instead of requiring a string literal like#[postcard(crate = "postcard")]
(IIRC, the reason serde uses string literals is for backwards-compatibility).The text was updated successfully, but these errors were encountered: