Recent bugs and discussions highlighted that we may want to enforce some stricter (automated) code checks.
In particular, we may want to introduce semgrep
to:
- Require any non-
lock()
ing unwrap()
to be accompanied by a // safety:
comment.
- Disallow usage of
SystemTime::now
/ Instant::now
/ Instant::elapsed_since
to maintain WASM compatibility.
Similar approaches are currently applied by other projects in the rust-bitcoin
ecosystem, related usages are for example:
(cc @tcharding)