anchao commented on PR #13245: URL: https://github.com/apache/nuttx/pull/13245#issuecomment-2321645836
> > Why not generate structure code dynamically, but bind statically? > > Please see #12960, generate structure code dynamically is OK on technical, but binary compatibility cannot be guaranteed. > > Thus the libc/libstd of Rust can not be built without NuttX develop enviroment, if you want to use them, you must use the nighlty toolchain of Rust instead of stable toolchain. > > Consider in Rust, the direct use of structs from libc is not very common, so there is an opportunity to implement binary compatibility for these structs. libc/libstd definitely needs the participation of nuttx to be compiled, similar to the WAMR glue code we did before, which allows rust to be bound to a certain configuration to avoid doing these meaningless work. It is a common practice for different nuttx header files to generate different lib/libstd. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
