Creating code to be run through macro but not directly

I suppose if you were really concerned, you could use some proc-macro trickery to change the name of the secret function on each build. That should prevent any unscrupulous users from trying to use this undocumented and secret API... But it would also seem like a nice idea for the language to have a mechanism to do this for us.

1 Like