Commit 5068b3a
authored
Calculate sizes, alignment and offsets for both wasm32 and wasm64 (#1711)
* implement architecture adaptible data layout
* make add_assign and align_to_arch available
* conversion function from alignment
* new method to quickly add some bytes to it
* implementing Display takes care of many errors in wit-bindgen
* more compatibility tweaks
* simplify code generation
* more nice formatting, minor rename
* shorten code by new()
* fix logic error
* document and introduce compatibility to previous versions
* remove merge artifact
* make code compatible with 1.76.0
* fix the fuzzer (resource returned different MAX value)
* correct addition, simplify align, new test
* add documentation
* remove compatibility type alias
* Add SizeAlign comparison fuzzer
* run rustfmt, use old wit-smith version
* use pointers and bytes as separate entities
* add new testcase (found in fuzzing) and correct ptr to 8 byte alignment logic
* correct empty logic after pointer separation1 parent 7f6386a commit 5068b3a
6 files changed
Lines changed: 714 additions & 87 deletions
File tree
- crates/wit-parser/src
- fuzz
- fuzz_targets
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments