Commit 11eab07
committed
fix: resolve user_service compilation errors in deterministic UUID generation
Fixed compilation issues after eliminating wit-bindgen-rt version conflicts:
1. Removed conflicting Guest trait import that shadowed glob re-export
2. Fixed UUID Builder move semantics by using direct byte manipulation
3. Simplified UUID generation to use Uuid::from_bytes() with manual bit setting
4. Set proper UUID v4 version bits (0100) and RFC4122 variant bits (10)
The deterministic UUID generation now:
- Uses timestamp + counter for uniqueness without getrandom dependency
- Properly formats UUIDs with correct version and variant bits
- Avoids all Rust ownership/borrowing issues with Builder pattern
- Maintains compatibility with existing UUID::to_string() usage
Next: Address any remaining WIT binding export issues.1 parent 0e96528 commit 11eab07
File tree
1 file changed
+7
-9
lines changed- examples/cpp_component/multi_component_system/components
1 file changed
+7
-9
lines changedLines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
0 commit comments