Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
f6ebd54
fix: resolve systematic no_std compilation errors in wrt-component
avrabe Jun 11, 2025
2bcfbf6
fix(memory): replace direct NoStdProvider usage with budget-aware fac…
avrabe Jun 12, 2025
951d9f8
feat(format): complete wrt-format clean architecture migration
avrabe Jun 14, 2025
4d22024
feat(architecture): implement comprehensive clean architecture migrat…
avrabe Jun 14, 2025
d2e436a
feat(architecture): complete clean architecture migration with final …
avrabe Jun 14, 2025
4e16f9c
fix(architecture): resolve provider type compatibility issues in reso…
avrabe Jun 14, 2025
02f953c
fix(wrtd): resolve binary execution issues and compilation errors
avrabe Jun 15, 2025
f7fda55
feat(foundation): add safe memory allocation API
avrabe Jun 15, 2025
993b6fe
refactor(runtime): migrate to safe memory allocation and fix type issues
avrabe Jun 15, 2025
ccc53bb
fix(foundation): resolve circular imports and logging issues
avrabe Jun 15, 2025
1ae87cd
feat(architecture): implement mixed std/no_std environment with safet…
avrabe Jun 15, 2025
a9caaa9
feat(asil): implement comprehensive safety-critical resource manageme…
avrabe Jun 16, 2025
532e716
feat(capability): implement capability-based functional safety system…
avrabe Jun 16, 2025
464601b
fix(architecture): resolve runtime build errors and legacy API issues
avrabe Jun 16, 2025
6aefb97
docs: eliminate false claims and implement comprehensive documentatio…
avrabe Jun 17, 2025
6964845
docs(architecture): update documentation to reflect actual implementa…
avrabe Jun 17, 2025
cea1f82
docs(installation): consolidate duplicate installation instructions
avrabe Jun 17, 2025
0ddbd4d
docs(guidelines): add documentation style guide and maintenance check…
avrabe Jun 17, 2025
3a154b0
docs(final-cleanup): remove remaining false implementation claims
avrabe Jun 17, 2025
ff94977
docs(cross-refs): fix critical broken documentation links
avrabe Jun 17, 2025
114ea4b
docs(cleanup): consolidate external documentation into docs/source
avrabe Jun 17, 2025
af256d7
docs(critical-fixes): remove false implementation claims and add prop…
avrabe Jun 17, 2025
2896d53
docs(comprehensive-cleanup): remove false claims and consolidate docu…
avrabe Jun 17, 2025
c500f24
feat(architecture): complete unified cargo-wrt build system migration
avrabe Jun 19, 2025
7e7745b
feat(ci): add code validation checks to cargo-wrt
avrabe Jun 19, 2025
38e8422
feat(dev): add pre-commit hooks and setup command to cargo-wrt
avrabe Jun 19, 2025
5d25771
feat(cleanup): remove all shell scripts - complete cargo-wrt migration
avrabe Jun 19, 2025
91ee771
feat(build): add comprehensive tool version management and Python iso…
avrabe Jun 19, 2025
213fe46
feat(build): replace grep with native Rust text search implementation
avrabe Jun 19, 2025
374b01b
feat(docs): implement multi-version documentation system with switche…
avrabe Jun 19, 2025
c08b6c8
docs: remove legacy architecture files and unused documentation scripts
avrabe Jun 19, 2025
a4538b4
feat(build): enhance build system with verification tools and platfor…
avrabe Jun 19, 2025
cd4af68
docs: update build tool references from xtask/justfile to cargo-wrt
avrabe Jun 19, 2025
0d54071
refactor(types): eliminate confusing Vec/String type aliases
avrabe Jun 20, 2025
a415e83
feat(verification): add comprehensive Kani formal verification proofs
avrabe Jun 20, 2025
85c7ef5
feat(asil): complete ASIL-D capability-based system implementation
avrabe Jun 20, 2025
67e2e06
docs: add compliance documentation and architecture diagrams
avrabe Jun 20, 2025
280f430
refactor(memory): eliminate legacy WRT_MEMORY_COORDINATOR in wrt-foun…
avrabe Jun 20, 2025
24f584d
feat(memory): migrate wrt-foundation to capability-based memory system
avrabe Jun 20, 2025
1215343
fix(decoder): add missing trait imports and fix method calls
avrabe Jun 20, 2025
b8871b9
feat(memory): complete Phase 2 legacy memory migration
avrabe Jun 20, 2025
a28bbd9
feat(tests): eliminate unsafe patterns from foundation test files
avrabe Jun 20, 2025
f522a17
feat(format): eliminate unsafe patterns from wrt-format test files
avrabe Jun 20, 2025
5a698df
feat(cleanup): eliminate ALL unsafe guard.release() patterns
avrabe Jun 20, 2025
e618f1f
fix(memory): eliminate remaining NoStdProvider::new() legacy patterns
avrabe Jun 20, 2025
152f655
docs: update documentation to reflect current memory system
avrabe Jun 20, 2025
4de5740
fix: complete elimination of all legacy memory patterns
avrabe Jun 20, 2025
2fb826d
docs: update CLAUDE.md to reflect completed memory system migration
avrabe Jun 20, 2025
44de576
feat(wrt-parser): complete unified WebAssembly parser implementation
avrabe Jun 20, 2025
60ba985
feat(wrt-build-core): implement unified diagnostic system with LSP co…
avrabe Jun 21, 2025
af5d04b
feat(wrt-build-core): add diagnostic caching and filtering system
avrabe Jun 21, 2025
ed35e3a
feat(wrt-build-core): integrate diagnostics into build operations
avrabe Jun 21, 2025
8facc33
feat(cargo-wrt): add comprehensive diagnostic CLI interface
avrabe Jun 21, 2025
169b52a
feat(ci): add GitHub Actions workflow for PR diagnostic analysis
avrabe Jun 21, 2025
63e93ec
docs(CLAUDE.md): add comprehensive diagnostic system documentation
avrabe Jun 21, 2025
84fb6a7
chore: remove obsolete files and update dependencies
avrabe Jun 21, 2025
d5d8a1d
feat(foundation): complete unified capability-based memory system
avrabe Jun 21, 2025
02ebf89
feat(component): comprehensive async runtime and fuel management
avrabe Jun 21, 2025
227b1f6
feat(component): enhance canonical ABI with resource support
avrabe Jun 21, 2025
0d50cfe
feat(parser): unified WebAssembly parser with advanced validation
avrabe Jun 21, 2025
10ab3d4
feat(runtime): comprehensive format bridge and state management
avrabe Jun 21, 2025
11ca63a
feat(wasi): enhanced capability-aware WASI implementation
avrabe Jun 21, 2025
258333e
feat(wrt): main crate integration and decoder improvements
avrabe Jun 21, 2025
462f622
fix(runtime): improve stackless execution engine
avrabe Jun 21, 2025
65587f2
feat(runtime): complete WebAssembly memory instruction support
avrabe Jun 21, 2025
d9f3877
fix(runtime): finalize stackless engine instruction handling
avrabe Jun 21, 2025
fc18f8d
fix(ci): update GitHub Actions to use non-deprecated versions
avrabe Jun 21, 2025
b092484
fix(ci): clarify diagnostic metrics in PR comments
avrabe Jun 21, 2025
96a7e43
fix(platform): resolve compilation errors in wrt-platform crate
avrabe Jun 21, 2025
419380c
feat(coverage): implement best-effort mode for documentation builds
avrabe Jun 21, 2025
813c96b
fix(platform): resolve SIMD intrinsics and threading module compilati…
avrabe Jun 21, 2025
febbe63
feat(cli): add command tracing and dry-run capabilities
avrabe Jun 21, 2025
76b85b1
feat(ci): detect cascading errors from PR changes
avrabe Jun 21, 2025
1186e21
fix(platform): add threading feature gate to create_thread_pool function
avrabe Jun 21, 2025
40365d0
feat(asil): implement ASIL-D safety improvements for async and error …
avrabe Jun 21, 2025
201c904
feat(error): add comprehensive error recovery and debugging infrastru…
avrabe Jun 21, 2025
225d233
feat(engine): implement complete WebAssembly instruction set in stack…
avrabe Jun 21, 2025
4492cf5
refactor(types): simplify type naming and add trait implementations
avrabe Jun 21, 2025
4f5c1f1
chore(ci): improve build system and CI/CD workflows
avrabe Jun 21, 2025
b4499f3
fix(error): resolve compilation issues in recovery module
avrabe Jun 21, 2025
309149e
fix(error): properly fix recovery module compilation issues
avrabe Jun 21, 2025
4fb9a64
fix(error): resolve no_std compilation issue with ErrorCategory
avrabe Jun 21, 2025
f15ad93
fix(build): resolve CI build failures and improve no_std compatibility
avrabe Jun 21, 2025
84b4213
fix(error): resolve no_std compilation issues in recovery module
avrabe Jun 21, 2025
8b7e0d1
feat(safety): adjust ASIL safety levels for system interface crates
avrabe Jun 21, 2025
eea7047
feat(async): complete WebAssembly execution integration
avrabe Jun 21, 2025
687e055
feat(async): add comprehensive async runtime infrastructure
avrabe Jun 21, 2025
387072f
feat(component): enhance component model and async integration tests
avrabe Jun 21, 2025
1a45e73
feat(build): enhance build system with comprehensive diagnostics
avrabe Jun 21, 2025
ccad521
feat(decoder): enhance WebAssembly format detection and streaming
avrabe Jun 21, 2025
02da24f
feat(error): enhance error handling with ASIL compliance and factory …
avrabe Jun 21, 2025
aacc1df
refactor(build): apply code formatting and improve build system consi…
avrabe Jun 22, 2025
6e01885
refactor(component): enhance test coverage and apply formatting impro…
avrabe Jun 22, 2025
c1a9e90
refactor(debug): enhance debugging infrastructure and apply formatting
avrabe Jun 22, 2025
0499aa9
refactor(decoder): enhance WebAssembly parsing and apply formatting i…
avrabe Jun 22, 2025
7c8a174
refactor(format): enhance format handling and core test infrastructure
avrabe Jun 22, 2025
4cd08b0
fix(ci): resolve dependency review license detection issues
avrabe Jun 22, 2025
88b7694
fix(ci): exclude chrono and dagger-sdk from license detection
avrabe Jun 22, 2025
91a01c0
fix(ci): remove non-existent doc_examples_test from workflow
avrabe Jun 22, 2025
6b49346
fix(ci): add --force flag to cargo install in documentation workflow
avrabe Jun 22, 2025
ed12d72
chore(ci): remove test-examples workflow
avrabe Jun 22, 2025
f0bca3e
fix(wrt-decoder): resolve compilation errors from memory system migra…
avrabe Jun 26, 2025
983b32d
fix(wrt-foundation): resolve safety monitor compilation errors
avrabe Jun 26, 2025
c34a951
fix(cargo-wrt): resolve API and borrowing compilation errors
avrabe Jun 26, 2025
8131e28
fix(wrt-build-core): resolve platform and API compatibility issues
avrabe Jun 26, 2025
6086d6c
feat(cargo-wrt): add comprehensive helper modules and command infrast…
avrabe Jun 26, 2025
0be7303
feat(wrt-build-core): add comprehensive requirements verification fra…
avrabe Jun 26, 2025
fa14f38
feat(wrt-decoder): add resource limits embedding and TOML configuration
avrabe Jun 26, 2025
f51bc02
chore: update workspace dependencies and documentation
avrabe Jun 26, 2025
8cd0c4f
chore: remove legacy files and obsolete documentation
avrabe Jun 26, 2025
7c0780f
fix(wrt-foundation): add missing fault_detection and telemetry modules
avrabe Jun 26, 2025
03f1556
fix(wrt-foundation): resolve compilation errors and API mismatches
avrabe Jun 26, 2025
2bae8ad
chore: remove legacy debugging and development utilities
avrabe Jul 1, 2025
3afe632
chore: remove legacy workspace-level build.rs configuration
avrabe Jul 1, 2025
7f1f2f1
feat(wrt-foundation): enhance runtime capabilities and error handling
avrabe Jul 1, 2025
628b5c7
feat(wrt-runtime): comprehensive runtime system improvements
avrabe Jul 1, 2025
0cd7d31
feat(tests): enhance integration testing and formal verification
avrabe Jul 1, 2025
5b11e4b
feat(wrt-wasi): improve WASI implementation and daemon integration
avrabe Jul 1, 2025
dfb4e20
feat(ci): add comprehensive CI/CD workflows for deployment and verifi…
avrabe Jul 1, 2025
1bb26b0
docs: update project documentation and dependency management
avrabe Jul 1, 2025
cb91fe5
feat(safety): major improvements toward ASIL-A certification
avrabe Jul 1, 2025
f8fbd4d
feat(wrt-intercept): implement architecturally correct no_std support
avrabe Jul 2, 2025
dd47fcd
feat(safety): remove unsafe Default implementations and add safe wake…
avrabe Jul 2, 2025
64fb000
feat(memory): migrate production code away from legacy memory patterns
avrabe Jul 2, 2025
958ec31
feat(wrt-platform): update memory optimizations to avoid deprecated p…
avrabe Jul 2, 2025
3b96f1f
feat(asil): implement architecturally correct no_std support with fea…
avrabe Jul 2, 2025
1767580
refactor(runtime): unify memory allocation system using safe_managed_…
avrabe Jul 4, 2025
9103740
fix(runtime): correct std/no_std conditional compilation in stackless…
avrabe Jul 4, 2025
53f5064
fix(runtime): resolve Result handling in platform runtime and module …
avrabe Jul 4, 2025
e79162a
refactor(runtime): complete memory system migration across all modules
avrabe Jul 4, 2025
c725d8f
fix(runtime): update component instantiation for unified memory system
avrabe Jul 4, 2025
8eb9228
chore(runtime): remove obsolete modules and legacy code
avrabe Jul 4, 2025
b98ed8d
feat(build): add enhanced test infrastructure for memory validation
avrabe Jul 4, 2025
78cb3ce
chore: cleanup development artifacts and improve gitignore
avrabe Jul 4, 2025
4002d8e
fix(canonical-abi): resolve critical syntax errors in canonical ABI i…
avrabe Jul 8, 2025
00a102b
fix(async): resolve syntax errors in async runtime components
avrabe Jul 8, 2025
54a39b2
fix(builtins): resolve syntax errors in WebAssembly Component Model b…
avrabe Jul 8, 2025
b4b6ce6
fix(components): resolve syntax errors in component model and threading
avrabe Jul 8, 2025
81c4696
fix(core): resolve syntax errors in core component runtime modules
avrabe Jul 8, 2025
7a914d7
fix(tests): resolve syntax errors in tests, examples, and benchmarks
avrabe Jul 8, 2025
b3b9cae
fix(runtime): resolve syntax errors across WRT runtime infrastructure
avrabe Jul 8, 2025
68f0420
build: enable wrt-execution feature and update dependencies
avrabe Jul 8, 2025
50c4ee8
fix: resolve all syntax errors in wrt-component module
avrabe Jul 9, 2025
88e05aa
fix(component): resolve compilation errors in type conversion system
avrabe Jul 14, 2025
0e57e2a
feat(runtime): implement engine factory with memory provider integration
avrabe Jul 14, 2025
d4dbebb
feat(build-core,runtime): implement comprehensive WAST testing infras…
avrabe Jul 14, 2025
2267a08
docs(runtime): add engine architecture documentation and WAST module
avrabe Jul 14, 2025
2ef46c8
build: update dependencies and configuration for WAST testing
avrabe Jul 14, 2025
14b3c50
fix(wrt-platform): resolve compilation errors blocking CI
avrabe Jul 14, 2025
5d2bd94
fix(wrt-platform): resolve lifetime issues in random.rs error handling
avrabe Jul 14, 2025
5a8a5a1
fix(platform): resolve remaining lifetime errors in random.rs and IPC
avrabe Jul 15, 2025
595d1ad
fix(platform): resolve final lifetime errors in linux_ipc.rs
avrabe Jul 15, 2025
fe83f11
fix(runtime): resolve non-exhaustive pattern error in CFI engine
avrabe Jul 15, 2025
07ec7a3
fix: resolve multiple compilation errors
avrabe Jul 15, 2025
59df6a4
fix(component): repair broken feature gate syntax
avrabe Jul 17, 2025
87881bd
fix(component): resolve import path conflicts and type system issues
avrabe Jul 17, 2025
56927b3
fix(component): complete compilation error resolution
avrabe Jul 17, 2025
02f0731
fix(runtime): add missing extern crate declarations
avrabe Jul 17, 2025
05b01de
chore: add .rlib files to gitignore
avrabe Jul 17, 2025
d9e8389
fix(build-core): resolve mutable reference issues in WAST test runner
avrabe Jul 17, 2025
aedb7da
fix: resolve additional compilation errors and improve import consist…
avrabe Jul 18, 2025
7000dc9
fix: resolve KANI Formal Verification workflow startup failures
avrabe Jul 18, 2025
8cd0561
fix(ci): resolve git submodule and license compatibility issues
avrabe Jul 18, 2025
07b7593
refactor(build): standardize resource implementation patterns in buil…
avrabe Jul 19, 2025
45fabc9
refactor(component): implement unified resource management across com…
avrabe Jul 19, 2025
29098a1
refactor(foundation,runtime): establish unified capability-based memo…
avrabe Jul 19, 2025
3bbef9c
refactor(libs): standardize resource patterns across support libraries
avrabe Jul 19, 2025
11c5cbd
refactor(platform,wasi): implement capability-aware platform abstraction
avrabe Jul 19, 2025
6510154
refactor(apps,tests): migrate applications and tests to unified resou…
avrabe Jul 19, 2025
087d8d3
chore: remove temporary files and outdated artifacts
avrabe Jul 19, 2025
d236075
fix(build): resolve syntax errors in main.rs
avrabe Jul 19, 2025
f65516a
fix: resolve syntax errors across entire codebase
avrabe Jul 19, 2025
e3982cd
fix: resolve remaining syntax error in wrt-error/src/errors.rs
avrabe Jul 19, 2025
9fe011f
fix: resolve additional syntax errors in wrt-error crate
avrabe Jul 19, 2025
079b93a
fix: resolve additional syntax errors in wrt-error/src/recovery.rs
avrabe Jul 19, 2025
8592488
fix: resolve final syntax errors in wrt-error crate
avrabe Jul 19, 2025
3528e02
fix: resolve critical printf syntax error blocking cargo-wrt build
avrabe Jul 19, 2025
3a67ccd
fix: resolve massive syntax errors across wrt-sync and wrt-platform
avrabe Jul 19, 2025
387c99a
fix: resolve partial syntax errors across wrt-platform and wrt-sync c…
avrabe Jul 19, 2025
c79f22d
fix: resolve struct initialization syntax errors in runtime_detection.rs
avrabe Jul 19, 2025
b93b6a7
docs: add critical warning against sed/awk/python mass changes
avrabe Jul 19, 2025
71691f3
fix: resolve 100+ syntax errors in wrt-platform simd module
avrabe Jul 19, 2025
02489cc
fix: continue resolving syntax errors in aarch64 simd implementation
avrabe Jul 19, 2025
63fe147
fix: resolve systematic syntax corruption across SIMD and platform cr…
avrabe Jul 20, 2025
33eaf6c
fix: continue massive syntax restoration across wrt-platform
avrabe Jul 24, 2025
c871a09
fix: restore syntax errors across 20+ wrt-platform files
avrabe Jul 24, 2025
b1aaa7e
feat(core): implement unified resource management across foundation a…
avrabe Jul 27, 2025
5456e87
feat(component): enhance WebAssembly component model with advanced as…
avrabe Jul 27, 2025
5f47468
feat(platform): implement comprehensive platform abstraction with SIM…
avrabe Jul 27, 2025
457d377
feat(build): enhance unified build system with advanced diagnostics a…
avrabe Jul 27, 2025
256aabd
feat(processing): enhance WebAssembly processing pipeline with compre…
avrabe Jul 27, 2025
d470d25
feat(examples): comprehensive example suite and integration testing f…
avrabe Jul 27, 2025
50f3ab8
fix(cleanup): resolve remaining syntax errors and complete resource i…
avrabe Jul 27, 2025
cb5ef2a
fix(platform): correct remaining IPC module syntax
avrabe Jul 27, 2025
aede658
fix: resolve syntax errors across multiple crates
avrabe Jul 27, 2025
b71733d
fix(async/runtime): resolve closing delimiter errors in async executi…
avrabe Aug 2, 2025
a36be6c
fix(syntax): resolve compilation errors across codebase
avrabe Aug 2, 2025
2a84be1
fix(syntax): resolve remaining compilation errors
avrabe Aug 2, 2025
0d9abd5
style: fix naming conventions and deprecated types
avrabe Aug 2, 2025
436c669
fix(syntax): resolve final compilation errors
avrabe Aug 2, 2025
03001b5
refactor: replace deprecated WrtResult with wrt_error::Result
avrabe Aug 2, 2025
16482e3
fix(runtime): restore async execution engine and threading systems
avrabe Aug 5, 2025
7c9e475
fix(component): restore WebAssembly Component Model canonical ABI
avrabe Aug 5, 2025
728105c
fix(debug): restore debug infrastructure and monitoring systems
avrabe Aug 5, 2025
b96adf3
fix(wasi): restore WASI integration and host function providers
avrabe Aug 6, 2025
332d086
fix(core): resolve remaining syntax errors across foundation modules
avrabe Aug 6, 2025
9352e61
fix(component): resolve comprehensive syntax errors in WebAssembly Co…
avrabe Aug 9, 2025
c713eab
fix(debug): resolve syntax errors in debug infrastructure and monitoring
avrabe Aug 9, 2025
70a30fb
fix(decoder): resolve syntax errors in WebAssembly decoder and parser…
avrabe Aug 9, 2025
479e5fe
fix(format): resolve syntax errors in WebAssembly format processing a…
avrabe Aug 9, 2025
817799b
fix(core): resolve syntax errors across remaining runtime infrastruct…
avrabe Aug 9, 2025
da191c6
fix(component): complete syntax error resolution in remaining compone…
avrabe Aug 9, 2025
1e21c37
fix: resolve all remaining syntax errors and apply consistent formatting
avrabe Aug 11, 2025
11390ed
fix: resolve syntax errors across workspace
avrabe Aug 11, 2025
695eb95
feat(safety): implement four-layer safety architecture across all sta…
avrabe Aug 14, 2025
f3c478c
fix(runtime): resolve critical compilation errors in wrt-platform and…
avrabe Aug 14, 2025
f86cca6
fix(runtime): resolve critical compilation errors across core runtime…
avrabe Aug 17, 2025
9ce368c
fix(runtime): resolve iterator dereference patterns for std/no_std co…
avrabe Aug 18, 2025
99396b1
fix(component): resolve comprehensive compilation error cascade in wr…
avrabe Aug 19, 2025
803a9bf
feat(wrtd): enable WebAssembly execution with std support
avrabe Aug 24, 2025
e1b2205
build(deps): update dependencies from dependabot PRs
avrabe Aug 24, 2025
2a86caf
fix(ci): resolve critical compilation errors blocking all CI jobs
avrabe Aug 24, 2025
29eacb6
fix(ci): resolve secondary compilation and KANI installation issues
avrabe Aug 24, 2025
bf536c7
fix(runtime): resolve BoundedVec memory provider type mismatch in no_…
avrabe Aug 24, 2025
98cd1cf
feat: complete wrtd binary compilation success
avrabe Aug 24, 2025
c49e277
fix: resolve HashMap memory provider size inconsistency
avrabe Aug 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[alias]
xtask = "run --package xtask --quiet --"

[build]
# Configure rustflags for different build operations

Expand All @@ -10,4 +7,7 @@ rustflags = ["--cfg=coverage"]

# For llvm-cov, define a "coverage" flag to disable problematic modules
[target.'cfg(llvm_coverage)']
rustflags = ["--cfg=coverage"]
rustflags = ["--cfg=coverage"]

[env]
RUSTFMT = { value = "/Users/r/git/wrt2/rustfmt-local", force = true }
35 changes: 20 additions & 15 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
# Fixed clippy config
warn-on-all-wildcard-imports = true
doc-valid-idents = ["WebAssembly", "WASI"]
# Clippy configuration for PulseEngine code quality

# Lint configurations
msrv = "1.86.0" # Minimum supported Rust version
# Enforce documentation
missing-docs-in-crate-items = true

# Clippy is strict about the following lints
# MSRV (Minimum Supported Rust Version)
msrv = "1.75.0"

# Cognitive complexity threshold
cognitive-complexity-threshold = 30
type-complexity-threshold = 500
too-many-arguments-threshold = 10
too-many-lines-threshold = 500

# Explicitly disallow some patterns
disallowed-names = []
disallowed-methods = []
disallowed-types = []
# Function size limits
too-many-lines-threshold = 100

# Type complexity
type-complexity-threshold = 250

# Disallowed names
disallowed-names = ["foo", "bar", "baz", "quux"]

# Allow some common patterns in no_std
allow-expect-in-tests = true
allow-unwrap-in-tests = true

# Documentation checks
missing-docs-in-crate-items = true # Instead of missing-docs-in-private-items
# Note: undocumented-unsafe-blocks lint not available in current Rust version
2 changes: 0 additions & 2 deletions .cursorignore

This file was deleted.

59 changes: 59 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash
# Pre-commit hook to prevent test files in src/ directories

# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

echo "🔍 Checking for test files in src/ directories..."

# Find all test files in src/ directories
test_files=$(find . -path "./target" -prune -o -path "./.git" -prune -o -path "./src/*" -name "*_test.rs" -print -o -path "./src/*" -name "*_tests.rs" -print -o -path "./src/*" -name "test.rs" -print -o -path "./src/*" -name "tests.rs" -print | grep -v target | grep -v .git)

if [ -n "$test_files" ]; then
echo -e "${RED}❌ Error: Test files found in src/ directories!${NC}"
echo -e "${YELLOW}Test files should be placed in the tests/ directory, not in src/${NC}"
echo ""
echo "Found test files:"
echo "$test_files" | while read -r file; do
echo -e " ${RED}$file${NC}"
done
echo ""
echo "Please move these files to the appropriate tests/ directory before committing."
exit 1
fi

# Check if cargo-wrt is available
if command -v cargo-wrt &> /dev/null; then
# Run validation check using cargo-wrt
echo "🔍 Running cargo-wrt validation checks..."
if ! cargo-wrt validate --check-test-files; then
echo -e "${RED}❌ Validation failed!${NC}"
exit 1
fi
else
echo -e "${YELLOW}⚠️ Warning: cargo-wrt not found. Install it for better validation:${NC}"
echo " cargo install --path cargo-wrt"
fi

echo -e "${GREEN}✅ No test files found in src/ directories${NC}"

# Run cargo fmt check
echo ""
echo "🔍 Checking code formatting with cargo fmt..."

# Use the project's unified build tool for formatting check
if ! cargo-wrt check --strict; then
echo -e "${RED}❌ Error: Code formatting issues detected!${NC}"
echo ""
echo "Please run 'cargo-wrt check' or 'cargo fmt' to format your code before committing."
echo ""
echo "To bypass this check (not recommended), use:"
echo " git commit --no-verify"
exit 1
fi

echo -e "${GREEN}✅ Code formatting check passed${NC}"
exit 0
10 changes: 10 additions & 0 deletions .github/kani-badge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"schemaVersion": 1,
"label": "formal verification",
"message": "KANI",
"color": "brightgreen",
"namedLogo": "rust",
"logoColor": "white",
"style": "for-the-badge",
"cacheSeconds": 86400
}
137 changes: 137 additions & 0 deletions .github/workflows/capability_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Capability Engine Tests

on:
push:
branches: [ main, resource-implementation ]
pull_request:
branches: [ main ]

env:
RUST_BACKTRACE: 1

jobs:
test-matrix:
name: Test ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "Default"
features: ""
package: "wrtd"
- name: "QM"
features: "qm"
package: "wrtd"
- name: "ASIL-A"
features: "asil-a"
package: "wrtd"
- name: "ASIL-B"
features: "asil-b"
package: "wrtd"
- name: "Minimal"
features: "--no-default-features"
package: "wrtd"
no_default: true
- name: "Runtime STD"
features: "std"
package: "wrt-runtime"
- name: "Runtime Alloc"
features: "alloc"
package: "wrt-runtime"
- name: "WRT QM"
features: "qm"
package: "wrt"
- name: "WRT ASIL-A"
features: "asil-a"
package: "wrt"
- name: "WRT ASIL-B"
features: "asil-b"
package: "wrt"

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.name }}-${{ hashFiles('**/Cargo.lock') }}

- name: Build ${{ matrix.name }}
run: |
if [ "${{ matrix.no_default }}" = "true" ]; then
cargo build -p ${{ matrix.package }} --no-default-features
elif [ "${{ matrix.features }}" = "" ]; then
cargo build -p ${{ matrix.package }}
else
cargo build -p ${{ matrix.package }} --features ${{ matrix.features }}
fi

- name: Clippy ${{ matrix.name }}
run: |
if [ "${{ matrix.no_default }}" = "true" ]; then
cargo clippy -p ${{ matrix.package }} --no-default-features -- -D warnings
elif [ "${{ matrix.features }}" = "" ]; then
cargo clippy -p ${{ matrix.package }} -- -D warnings
else
cargo clippy -p ${{ matrix.package }} --features ${{ matrix.features }} -- -D warnings
fi

- name: Test ${{ matrix.name }}
if: matrix.package != 'wrtd'
run: |
if [ "${{ matrix.features }}" = "" ]; then
cargo test -p ${{ matrix.package }} capability
else
cargo test -p ${{ matrix.package }} --features ${{ matrix.features }} capability
fi

integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-integration-${{ hashFiles('**/Cargo.lock') }}

- name: Install wat2wasm
run: |
curl -sSL https://github.com/WebAssembly/wabt/releases/download/1.0.34/wabt-1.0.34-ubuntu.tar.gz | tar xz
echo "$PWD/wabt-1.0.34/bin" >> $GITHUB_PATH

- name: Run capability integration tests
run: cargo test -p wrt capability_integration_tests -- --nocapture

- name: Run build matrix script
run: ./scripts/test_build_matrix.sh

summary:
name: Test Summary
runs-on: ubuntu-latest
needs: [test-matrix, integration-tests]
if: always()
steps:
- name: Summary
run: |
if [ "${{ needs.test-matrix.result }}" = "success" ] && [ "${{ needs.integration-tests.result }}" = "success" ]; then
echo "✅ All capability engine tests passed!"
exit 0
else
echo "❌ Some capability engine tests failed"
exit 1
fi
Loading
Loading