cabish

Crates.iocabish
lib.rscabish
version0.2.0
sourcesrc
created_at2024-09-20 13:15:33.656912
updated_at2024-09-24 13:31:33.705603
descriptionComponent model ABI-ish for native code
homepagehttps://github.com/wasmCloud/cabish
repositoryhttps://github.com/wasmCloud/cabish
max_upload_size
id1381239
size33,573
Roman Volosatovs (rvolosatovs)

documentation

README

What?

Cabish is kind of, sort of like Wasm component model ABI with native endian and pointer size, it's cabi-ish.

How?

Essentially it's just direct implementation of Wasm component model ABI, but alignment and size of values depends on the platform and may not correspond to the spec, for example, alignment of string type will generally be 8 on a 64-bit system as opposed to 4 used by 32-bit Wasm.

Why?

Cabish allows reuse of existing tooling targeting canonical ABI in native code, for example, west replaces Go Wasm imports generated by wit-bindgen-go by calls to an embedded Wasmtime instance via Rust FFI in native code and uses cabish to read and write values.

Commit count: 9

cargo fmt