tuse_version.nim 914 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. discard """
  2. cmd: "nim c --useVersion:1.0 -r $file"
  3. output: "1.0.100"
  4. """
  5. {.warning[UnusedImport]: off.}
  6. import std/[
  7. # Core:
  8. bitops, typetraits, lenientops, macros, volatile,
  9. # Algorithms:
  10. algorithm, sequtils,
  11. # Collections:
  12. critbits, deques, heapqueue, intsets, lists, options, sets,
  13. sharedlist, tables,
  14. # Strings:
  15. editdistance, wordwrap, parseutils, ropes,
  16. pegs, punycode, strformat, strmisc, strscans, strtabs,
  17. strutils, unicode, unidecode,
  18. # Generic operator system services:
  19. os, streams,
  20. # Math libraries:
  21. complex, math, mersenne, random, rationals, stats, sums,
  22. # Internet protocols:
  23. httpcore, mimetypes, uri,
  24. # Parsers:
  25. htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
  26. # XML processing:
  27. xmltree, xmlparser,
  28. # Generators:
  29. htmlgen,
  30. # Hashing:
  31. base64, hashes,
  32. # Miscellaneous:
  33. colors, sugar, varints,
  34. ]
  35. echo NimVersion