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/10/21 04:33:28 UTC
Re: [I] [Rust] Register must be called in a specific order [fory]
urlyy commented on issue #2794:
URL: https://github.com/apache/fory/issues/2794#issuecomment-3424633045
Currently has a usage limitation: register must be called in a specific order — field type must be registered first.
This is because `register()` creates `type_info`, and if `TypeA` contains a field of type `TypeB`, then calling `register(TypeA)` before `TypeB ` will cause an error, since the `type_resolver` won’t be able to find the `type_info` for `TypeB ` in `TypeInfo::new::< TypeA >`.
--
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