Stream: wit-bindgen

Topic: Change trait name Guest for generate! trait


view this post on Zulip benwis (Jul 15 2024 at 04:13):

I was wondering if there was a way to change the trait name generate!() uses(Guest) to something else? I don't see that in the list of options

view this post on Zulip Joel Dice (Jul 15 2024 at 13:37):

I don't know of such an option, but you can always rename it using as in a use statement or create a type alias.

view this post on Zulip Alex Crichton (Jul 15 2024 at 16:09):

Right now there's no option to change the name of the generated trait, no. Adding such an option I think would be reasonable though


Last updated: Oct 23 2024 at 20:03 UTC