File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,21 @@ The WASM API consists of these main components:
8
8
9
9
1 . ** Provider (` provider/ ` )**
10
10
- Implements low-level WASM operations for:
11
- - Memory management and allocation
12
- - Input/output serialization
13
- - Context lifecycle management
14
- - Used by the API layer for high-level operations
15
- - Integrates with trampoline for WASM module linking
11
+ - Reading function input
12
+ - Serializing the function output
16
13
17
14
2 . ** Core (` core/ ` )**
18
- - Defines fundamental types and interfaces
19
- - Used by both API and provider layers
15
+ - Defines common types used by the ` providers ` and ` api `
20
16
21
17
3 . ** API (` api/ ` )**
22
- - High-level Rust interface for writing Shopify Functions
18
+ - Provides a high-level interface for interacting with the provider
19
+ - Abstracts away low-level WASM details
23
20
- Includes examples and documentation
24
21
25
22
4 . ** Trampoline (` trampoline/ ` )**
26
- - Bridges communication between WASM modules
23
+ - CLI tool that augments WASM modules to interface with the provider
24
+ - Handles memory sharing between guest and provider modules
25
+ - Creates the necessary WASM imports/exports
27
26
28
27
## Getting Started
29
28
You can’t perform that action at this time.
0 commit comments