implements PLN-0008

This commit is contained in:
2026-03-27 18:23:20 +00:00
parent d28916578b
commit b75b2a5825
19 changed files with 444 additions and 18 deletions
@@ -214,7 +214,8 @@ or:
declare host LowAssets {
[Host(module = "asset", name = "load", version = 1)]
[Capability(name = "asset")]
fn load(asset_id: int, slot: int) -> (status: int, loading_handle: int);
[AssetLowering(param = 0)]
fn load(addressable: Addressable, slot: int) -> (status: int, loading_handle: int);
}
```
@@ -228,8 +229,8 @@ Rules:
- stdlib line `1` MUST expose the low-level asset interface module at `@sdk:asset`,
- that module MUST declare `LowAssets`,
- that module MUST use runtime module `asset` and capability `asset`,
- that module MUST use the runtime-aligned signatures:
- `load(asset_id: int, slot: int) -> (status: int, loading_handle: int)`
- that module MUST use the runtime-aligned signatures and reserved lowering metadata:
- `load(addressable: Addressable, slot: int) -> (status: int, loading_handle: int)` together with `[AssetLowering(param = 0)]`
- `status(loading_handle: int) -> int`
- `commit(loading_handle: int) -> int`
- `cancel(loading_handle: int) -> int`