tstdlib_imports.nim 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. discard """
  2. action: compile
  3. """
  4. {.warning[UnusedImport]: off.}
  5. when defined(nimPreviewSlimSystem):
  6. import std/[
  7. syncio, assertions, formatfloat, objectdollar, widestrs
  8. ]
  9. import std/[
  10. # Core:
  11. bitops, typetraits, lenientops, macros, volatile, typeinfo,
  12. # fails due to FFI: rlocks
  13. # fails due to cstring cast/copyMem: endians
  14. # works but uses FFI: cpuinfo, locks
  15. # Algorithms:
  16. algorithm, enumutils, sequtils, setutils,
  17. # Collections:
  18. critbits, deques, heapqueue, intsets, lists, options, sets,
  19. tables, packedsets,
  20. # Strings:
  21. cstrutils, editdistance, wordwrap, parseutils, ropes,
  22. pegs, strformat, strmisc, strscans, strtabs,
  23. strutils, unicode, unidecode,
  24. # fails due to FFI: encodings
  25. # Time handling:
  26. monotimes, times,
  27. # Generic operator system services:
  28. os, streams,
  29. # fails intentionally: dynlib, marshal, memfiles
  30. # fails due to FFI: osproc, terminal
  31. # fails due to osproc import: distros
  32. # Math libraries:
  33. complex, math, random, rationals, stats, sums, sysrand,
  34. # works but uses FFI: fenv
  35. # Internet protocols:
  36. cookies, httpcore, mimetypes, uri,
  37. # fails due to FFI: asyncdispatch, asyncfile, asyncftpclient, asynchttpserver,
  38. # asyncnet, cgi, httpclient, nativesockets, net, selectors
  39. # works but no need to test: asyncstreams, asyncfutures
  40. # Threading:
  41. # fails due to FFI: threadpool
  42. # Parsers:
  43. htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
  44. parseopt, jsonutils,
  45. # XML processing:
  46. xmltree, xmlparser,
  47. # Generators:
  48. htmlgen,
  49. # Hashing:
  50. base64, hashes,
  51. # fails due to cstring cast/endians import: oids
  52. # fails due to copyMem/endians import: sha1
  53. # Miscellaneous:
  54. colors, logging, sugar, unittest, varints, enumerate, with,
  55. # fails due to FFI: browsers, coro
  56. # works but uses FFI: segfaults
  57. # Modules for JS backend:
  58. asyncjs, dom, jsconsole, jscore, jsffi, jsbigints,
  59. # Unlisted in lib.html:
  60. decls, compilesettings, wrapnils, exitprocs, effecttraits,
  61. genasts, importutils, isolation, jsfetch, jsformdata, jsheaders
  62. ]