File: world.wit

package info (click to toggle)
rust-wasmtime 26.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 48,492 kB
  • sloc: ansic: 4,003; sh: 561; javascript: 542; cpp: 254; asm: 175; ml: 96; makefile: 55
file content (26 lines) | stat: -rw-r--r-- 953 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package wasi:keyvalue@0.2.0-draft;

/// The `wasi:keyvalue/imports` world provides common APIs for interacting with key-value stores.
/// Components targeting this world will be able to do:
/// 
/// 1. CRUD (create, read, update, delete) operations on key-value stores.
/// 2. Atomic `increment` and CAS (compare-and-swap) operations.
/// 3. Batch operations that can reduce the number of round trips to the network.
world imports {
	/// The `store` capability allows the component to perform eventually consistent operations on
	/// the key-value store.
	import store;

	/// The `atomic` capability allows the component to perform atomic / `increment` and CAS
	/// (compare-and-swap) operations.
	import atomics;

	/// The `batch` capability allows the component to perform eventually consistent batch
	/// operations that can reduce the number of round trips to the network.
	import batch;
}

world watch-service {
	include imports;
	export watcher;
}