Problem:
Building Caution apps with locksmith: true fails during the enclave build stage. The error indicates that the keyforkd dependency (version 0.1.5) is missing the tokio/sync feature, causing compilation failures with errors like "could not find mpsc in sync".
Code Involved:
The issue stems from keyforkd-0.1.5/src/test_util.rs:80, where the code attempts to access tokio's sync module without the necessary feature flags enabled. This problem only surfaces when building locksmith standalone with newer tokio versions (1.50.0+).
Proposed Fix:
Publish a new version of keyforkd (0.1.6) that incorporates the fix already present in the keyfork main branch (commit fe7f294), then update locksmith to depend on this corrected version. The current 0.1.5 package in the registry contains broken code that has already been remedied upstream but not yet released.
error[E0433]: could not find `mpsc` in `sync` keyforkd-0.1.5/src/test_util.rs:80
error[E0603]: module `sync` is private
error: could not compile `keyforkd` (lib)