Skip to content

Commit 814ecbe

Browse files
committed
update readme v2
1 parent cf262b8 commit 814ecbe

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@ The WASM API consists of these main components:
88

99
1. **Provider (`provider/`)**
1010
- 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
1613

1714
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`
2016

2117
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
2320
- Includes examples and documentation
2421

2522
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
2726

2827
## Getting Started
2928

0 commit comments

Comments
 (0)