alexcrichton opened PR #2472 from module-linking-c-api
to main
:
This commit does everything necessary (ideally) to support the module
linking proposal in the C API. The changes here are:
- New
wasm_{module,instance}type_t
types and accessors- New
wasm_{module,instance}_type
functionsConversions between
wasm_extern_t
andwasm_{instance,module}_t
, as
well aswasm_externtype_t
and the new types.Addition of
WASM_EXTERN_{MODULE,INSTANCE}
constants- New
wasm_config_t
modifier to enable/disable module linkingWith these functions it should be possible to pass instances/modules to
instances and also acquire them from exports. Altogether this should
enable everything for module linking.An important point for this is that I've opted to add all these items
under thewasm_*
name prefix instead ofwasmtime_*
. I've done this
since they're all following the idioms of existing APIs and while not
standard the intention would be to standardize them (unlike many other
Wasmtime-specific APIs).cc #2094
alexcrichton requested peterhuene for a review on PR #2472.
alexcrichton updated PR #2472 from module-linking-c-api
to main
:
This commit does everything necessary (ideally) to support the module
linking proposal in the C API. The changes here are:
- New
wasm_{module,instance}type_t
types and accessors- New
wasm_{module,instance}_type
functionsConversions between
wasm_extern_t
andwasm_{instance,module}_t
, as
well aswasm_externtype_t
and the new types.Addition of
WASM_EXTERN_{MODULE,INSTANCE}
constants- New
wasm_config_t
modifier to enable/disable module linkingWith these functions it should be possible to pass instances/modules to
instances and also acquire them from exports. Altogether this should
enable everything for module linking.An important point for this is that I've opted to add all these items
under thewasm_*
name prefix instead ofwasmtime_*
. I've done this
since they're all following the idioms of existing APIs and while not
standard the intention would be to standardize them (unlike many other
Wasmtime-specific APIs).cc #2094
alexcrichton updated PR #2472 from module-linking-c-api
to main
:
This commit does everything necessary (ideally) to support the module
linking proposal in the C API. The changes here are:
- New
wasm_{module,instance}type_t
types and accessors- New
wasm_{module,instance}_type
functionsConversions between
wasm_extern_t
andwasm_{instance,module}_t
, as
well aswasm_externtype_t
and the new types.Addition of
WASM_EXTERN_{MODULE,INSTANCE}
constants- New
wasm_config_t
modifier to enable/disable module linkingWith these functions it should be possible to pass instances/modules to
instances and also acquire them from exports. Altogether this should
enable everything for module linking.An important point for this is that I've opted to add all these items
under thewasm_*
name prefix instead ofwasmtime_*
. I've done this
since they're all following the idioms of existing APIs and while not
standard the intention would be to standardize them (unlike many other
Wasmtime-specific APIs).cc #2094
peterhuene submitted PR Review.
alexcrichton merged PR #2472.
Last updated: Nov 22 2024 at 17:03 UTC