Still the best option as far as I know, yes.
The `do:` is a regular block. It is needed because the parser doesn't accept `compiles(import std/sha1)` as "import" is a statement and not valid in an expression context. You can avoid it via a helper template. See `tests/modules/tcanimport.nim` for an example.
