Commit f86cca6
committed
fix(runtime): resolve critical compilation errors across core runtime infrastructure
This commit addresses a comprehensive set of compilation errors that were
preventing successful builds across the WRT runtime infrastructure. The changes
ensure compatibility across both std and no_std environments while maintaining
type safety and memory management principles.
Key Changes:
## Runtime Infrastructure (wrt-runtime)
- Fixed all String parameter conflicts with no_std type aliases
- Resolved BoundedVec iterator patterns and collection operations
- Added missing trait implementations (Checksummable, ToBytes, FromBytes)
- Implemented proper Arc<Memory> access patterns for thread-safe operations
- Added no_std versions of feature-gated methods (read_br_table, branch_table)
- Fixed BoundedVec to slice conversions with proper error handling
- Resolved memory adapter type mismatches and unsafe pointer operations
## Component Model Infrastructure (wrt-component)
- Comprehensive feature gating for std/no_std compatibility in async modules
- Fixed import resolution for threading, sync primitives, and task management
- Added placeholder implementations for missing component types
- Resolved module organization and visibility issues
- Fixed conditional compilation for async runtime features
## Build System Infrastructure
- Updated cargo-wrt and wrt-build-core to handle new error patterns
- Improved error handling in build matrix verification
- Enhanced diagnostic output formatting and error categorization
## Memory Management
- Unified memory provider patterns across all crates
- Proper capability-based allocation error handling
- Eliminated legacy memory allocation patterns
- Enhanced bounded collection usage with proper error propagation
## Type System Improvements
- Resolved mismatched type errors between bounded and standard collections
- Fixed iterator dereference patterns for different compilation modes
- Improved trait bound specifications for no_std compatibility
- Enhanced error type conversions and Result handling
## Impact
- All core runtime infrastructure crates now compile successfully
- Both std and no_std compilation modes are supported
- Memory safety and type safety maintained throughout
- Improved error handling and diagnostic capabilities
- Foundation prepared for continued development and testing
The changes maintain backward compatibility while establishing a solid
foundation for the WebAssembly runtime component model implementation.
All modifications follow established coding patterns and safety requirements.1 parent f3c478c commit f86cca6
File tree
67 files changed
+1861
-555
lines changed- cargo-wrt/src
- helpers
- wrt-build-core/src
- wrt-component/src
- async_
- canonical_abi
- components
- resources
- wrt-dagger/src/bin
- wrt-runtime/src
- stackless
- wrt-wasi/src/host_provider
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
67 files changed
+1861
-555
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | | - | |
| 1350 | + | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| |||
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | | - | |
| 1365 | + | |
1366 | 1366 | | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
1370 | | - | |
| 1370 | + | |
1371 | 1371 | | |
1372 | | - | |
| 1372 | + | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
| |||
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
| 1394 | + | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | | - | |
| 1409 | + | |
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | | - | |
| 1416 | + | |
1417 | 1417 | | |
1418 | | - | |
| 1418 | + | |
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | | - | |
| 1423 | + | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1431 | 1431 | | |
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
1435 | | - | |
| 1435 | + | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
| 1439 | + | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | 1442 | | |
| |||
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
1455 | | - | |
| 1455 | + | |
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | | - | |
| 1472 | + | |
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | | - | |
| 1479 | + | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| |||
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
1500 | | - | |
| 1500 | + | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
| 1515 | + | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
| |||
1540 | 1540 | | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | | - | |
| 1543 | + | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
| |||
1550 | 1550 | | |
1551 | 1551 | | |
1552 | 1552 | | |
1553 | | - | |
| 1553 | + | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | 1556 | | |
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
1573 | | - | |
| 1573 | + | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| |||
2823 | 2823 | | |
2824 | 2824 | | |
2825 | 2825 | | |
2826 | | - | |
| 2826 | + | |
2827 | 2827 | | |
2828 | 2828 | | |
2829 | 2829 | | |
| |||
2908 | 2908 | | |
2909 | 2909 | | |
2910 | 2910 | | |
2911 | | - | |
| 2911 | + | |
2912 | 2912 | | |
2913 | 2913 | | |
2914 | 2914 | | |
| |||
3098 | 3098 | | |
3099 | 3099 | | |
3100 | 3100 | | |
3101 | | - | |
| 3101 | + | |
3102 | 3102 | | |
3103 | 3103 | | |
3104 | 3104 | | |
| |||
3286 | 3286 | | |
3287 | 3287 | | |
3288 | 3288 | | |
3289 | | - | |
| 3289 | + | |
3290 | 3290 | | |
3291 | 3291 | | |
3292 | 3292 | | |
| |||
3668 | 3668 | | |
3669 | 3669 | | |
3670 | 3670 | | |
3671 | | - | |
| 3671 | + | |
3672 | 3672 | | |
3673 | 3673 | | |
3674 | 3674 | | |
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
3712 | | - | |
| 3712 | + | |
3713 | 3713 | | |
3714 | 3714 | | |
3715 | 3715 | | |
| |||
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
4096 | | - | |
| 4096 | + | |
4097 | 4097 | | |
4098 | 4098 | | |
4099 | 4099 | | |
| |||
4397 | 4397 | | |
4398 | 4398 | | |
4399 | 4399 | | |
4400 | | - | |
| 4400 | + | |
4401 | 4401 | | |
4402 | 4402 | | |
4403 | 4403 | | |
| |||
0 commit comments