`{.compile: "my_code.c".}` (or C++ or assembly) works today: * <https://github.com/status-im/nim-blscurve/blob/93df4f2/blscurve/blst/blst_lowlevel.nim#L12-L13> * <https://github.com/status-im/nim-blscurve/blob/93df4f2/blscurve/miracl/milagro.nim#L38-L48> * <https://github.com/status-im/nim-secp256k1/blob/7246d91/secp256k1/abi.nim#L21-L23> * <https://github.com/arnetheduck/nim-sqlite3-abi/blob/362e1bd/sqlite3_abi/sqlite3_gen.nim#L29>
You can even replace CMake with Nim: * <https://github.com/mratsim/agent-smith/blob/a2d9251/third_party/ale_build.nim#L65-L83> There is no wrapper, you can call the functions directly.