You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by "urlyy (via GitHub)" <gi...@apache.org> on 2025/09/23 18:29:58 UTC

[I] [Rust] Extract as much compile-time code as possible into functions, and call them via inlining [fory]

urlyy opened a new issue, #2653:
URL: https://github.com/apache/fory/issues/2653

   ### Feature Request
   
   The `se/de` code for Rust `struct` and `enum` is expanded at compile time. Right now, all related methods are placed inside `quote!{}`, including some functions that don’t actually depend on compile-time variables. This makes IDE hints and debugging quite inconvenient. We should extract part of the code out and mark it with `#[inline(always)]` for inlining.
   
   ### Is your feature request related to a problem? Please describe
   
   _No response_
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org


Re: [I] [Rust] Extract as much compile-time code as possible into functions, and call them via inlining [fory]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang closed issue #2653: [Rust] Extract as much compile-time code as possible into functions, and call them via inlining
URL: https://github.com/apache/fory/issues/2653


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org