Skip to content

Export Rust deprecated parameter #32

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

Closed
oscartbeaumont opened this issue Feb 15, 2023 · 2 comments
Closed

Export Rust deprecated parameter #32

oscartbeaumont opened this issue Feb 15, 2023 · 2 comments
Labels
breaking change This will probs end up in the next major version.

Comments

@oscartbeaumont
Copy link
Member

oscartbeaumont commented Feb 15, 2023

Not working in the macro. Gonna have to open an issue in syn or Rust.

As a workaround you can use the doc comment exporting:

/// Some comments
///
/// @deprecated I hate this type
#[derive(Type)]
pub struct MyType(String);
@oscartbeaumont
Copy link
Member Author

oscartbeaumont commented Aug 19, 2023

This is now #[specta(deprecated)] or #[specta(deprecated = "todo")]. It would be nice if we can pick up the official deprecated attribute but I can work out how. Tracking this on #108.

@oscartbeaumont oscartbeaumont added the breaking change This will probs end up in the next major version. label Aug 20, 2023
@oscartbeaumont
Copy link
Member Author

  • Ensure it also works on fields and variants.

@oscartbeaumont oscartbeaumont linked a pull request Sep 21, 2023 that will close this issue
2 tasks
@oscartbeaumont oscartbeaumont mentioned this issue Jul 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
breaking change This will probs end up in the next major version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant