Commit 9ef6717
authored
Canonical ABI name mangling (#309)
* Rename `canonical_abi_realloc` to `cabi_realloc`.
This follows the current Canonical ABI. This doesn't rename
`canonical_abi_free`, as that's expected to be removed when post-return
functions are implemented.
* Rename the "expected" type to "result".
This follows the current Canonical ABI.
* Implement function and value type name mangling.
This implements the name-mangling scheme in the current canonical ABI,
with the modification proposed in WebAssembly/component-model#104,
though that can be easily removed if the proposal is declined.
* Use name mangling in the bindings generators.
* Use the export base name rather than the mangled name for python identifiers.1 parent 3cdaefa commit 9ef6717
File tree
68 files changed
+965
-392
lines changed- crates
- bindgen-core/src
- gen-guest-c/src
- gen-guest-rust/src
- gen-guest-spidermonkey-js
- spidermonkey-wasm
- src
- gen-host-js/src
- gen-host-wasmtime-py/src
- gen-host-wasmtime-rust
- src
- tests
- gen-markdown/src
- gen-rust-lib/src
- guest-rust/src
- test-helpers/src
- wit-bindgen-demo
- wit-component
- src
- tests
- components
- ensure-default-type-exports
- exports
- import-conflict
- import-export
- imports
- lift-options
- lower-options
- simple
- interfaces/variants
- wit-parser
- src
- ast
- tests
- ui
- tests
- codegen
- runtime
- flavorful
- handles
- invalid
- lists
- variants
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+965
-392
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments