You can sorta do that with [nimsuggest](https://nim-lang.org/docs/nimsuggest.html) . If you know filename, line and column of a function then you can list it's usages with a command `use <file>:<line>:<col>` and nimsuggest will return parseable output. Example: use src/brewpasspkg/utils.nim:14:13 use skTemplate utils.printOrAsk template (setting: Setting): untyped /home/archargelod/Fluffy/code/nim/brewpass/src/brewpass.nim 132 15 "" 100 use skTemplate utils.printOrAsk template (setting: Setting): untyped /home/archargelod/Fluffy/code/nim/brewpass/src/brewpass.nim 133 18 "" 100 Run
You could in theory parse your source code and query every token with nimsuggest to get all used functions. > ..there is still (in 2.0+) no way to statically built the standard library? I believe, Nim is already statically builds, (except, maybe, ssl). But it depends on the libc, that's by default linked dynamically in practically every language. If you want to use static libc - Nim code can be compiled with static musl-libc: * <https://scripter.co/nim-deploying-static-binaries> * <https://github.com/kaushalmodi/hello_musl>