Reorganize move-native #223
Comments
Remove |
Hopefully this will address the code around |
This comment is a bit misleading as std is only linked in when running move-native's own tests. This is not an uncommon arrangement to be no_std in production, but link to std in tests. Still I am thinking of deleting the drop bomb code as it is pretty confusing. It was helpful during initial testing.
I believe there were other linkage problems. Dealing with the panic handler is something I would have known how to do. In what other scenarios does move-native need to link to std? At the moment the panic handler is only configured when targeting solana. If we decide the solana target should use std and/or solana_program we will need to delete or rework the panic handler and global allocator. |
Fair enough-- but it does seem awkward-- even if "everyone is doing it", and even if it is conditional.
Seems reasonable. One similar guard-rail feature that I would still find useful today (would have saved me twice) is storing "magic numbers" in each of the descriptors (
That was the scenario I was thinking of. I'm sure there are others I could dream up, but like you say, let's burn the bridge when we get there. |
It is getting pretty unwieldy and I'm starting to get frustrated finding the routines I'm looking for. Some things to change:
rt
andstd
rt
module intostd
- instead have both of them call into a lower-level moduleThe text was updated successfully, but these errors were encountered: