Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add #[postcard(crate = ...)] attribute for derive(Schema) #186

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

max-heller
Copy link
Collaborator

Closes #183

This only applies to #[derive(Schema)] (and not #[derive(MaxSize)]) because MaxSize seems likely to disappear soon (#179) and its trait lives in a different crate (postcard::experimental::max_size vs postcard_schema). If MaxSize ends up remaining as a derive macro and is moved to postcard_schema, this attribute can work with it as well.

The syn upgrade makes it possible to use parse_nested_meta() for parsing attributes using the conventional structure of builtin attributes and is broken out into #185.

Copy link

netlify bot commented Nov 23, 2024

Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
🔨 Latest commit 94dd9d3
🔍 Latest deploy log https://app.netlify.com/sites/cute-starship-2d9c9b/deploys/6741efe847475d0008609c7e

@jamesmunns jamesmunns merged commit bcbb917 into jamesmunns:main Nov 27, 2024
5 checks passed
@max-heller max-heller deleted the postcard-crate branch December 22, 2024 20:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#[postcard(crate = ...)] analogous to #[serde(crate = "...")]
2 participants