You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases (such as python), the generated bindings make use of local variables such as "i", "len", and "base". If you use these names in your WIT file as arguments, then you get an error. For example, consider the following WIT file:
power-of: func(base: s32, exp: s32) -> s32
Then try to generate bindings like this and notice the output:
% wit-bindgen wasmtime-py --import power.wit
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "name `base` already defined"', crates/gen-wasmtime-py/src/lib.rs:868:34
The generated code should use more obfuscated names to reduce the potential for this kind of naming collision.
Activity
Delete `wasmtime.loader` and `wasmtime.bindgen`
Delete `wasmtime.loader` and `wasmtime.bindgen` (bytecodealliance#310)