Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a "deprecated" attribute that generates #[deprecated] in rust source. #38

Open
lzrd opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@lzrd
Copy link

lzrd commented Dec 12, 2023

It is probably necessary to use some #[allow(deprecated)] in the generated code so that a well behaved user is not getting spurious warnings. How do we eventually evict a deprecated entry and maintain the serialization that has been established for the remaining entries?

diff --git a/idl/sprot.idol b/idl/sprot.idol
index 0a0e1dd1..21921eaa 100644
--- a/idl/sprot.idol
+++ b/idl/sprot.idol
@@ -22,7 +22,8 @@ Interface(
idempotent: true,
),
"rot_state": (

  •        doc: "Return boot-time info about the RoT (deprecated)",
    
  •       deprecated: true,
    
  •       doc: "Return boot-time info about the RoT",
           reply: Result(
               ok: "RotState",
               err: Complex("SprotError"),
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant