Created
April 25, 2020 03:41
-
-
Save timotheecour/058320de3093737967b82d57d95ff09c to your computer and use it in GitHub Desktop.
tests/js/tstdlib_imports.nim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
discard """ | |
action: compile | |
""" | |
{.warning[UnusedImport]: off.} | |
import | |
std/[ | |
# Core: | |
bitops, typetraits, lenientops, macros, volatile, | |
# fails: typeinfo, cpuinfo, endians, rlocks | |
# works but shouldn't: locks | |
# Algorithms: | |
algorithm, sequtils, | |
# Collections: | |
critbits, deques, heapqueue, intsets, lists, options, sets, | |
sharedlist, tables, | |
# fails: sharedtables | |
# Strings: | |
editdistance, wordwrap, parseutils, ropes, | |
pegs, punycode, strformat, strmisc, strscans, strtabs, | |
strutils, unicode, | |
# unidecode, # from docs: ``unicode`` can be imported, but not ``unidecode``. | |
# fails: encodings | |
# works but misleading: cstrutils | |
# Time handling: | |
times, monotimes, | |
# Generic operator system services: | |
os, streams, | |
# fails: distros, dynlib, marshal, memfiles, osproc, terminal | |
# Math libraries: | |
complex, fenv, math, mersenne, random, rationals, stats, | |
# sums, | |
# Internet protocols: | |
asyncstreams, cookies, httpcore, mimetypes, uri, | |
# fails: asyncdispatch, asyncfile, asyncftpclient, asynchttpserver, | |
# asyncnet, cgi, httpclient, nativesockets, net, selectors, smtp | |
# Threading: | |
# fails: threadpool | |
# Parsers: | |
htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml, | |
# fails: parseopt | |
# XML processing: | |
xmltree, xmlparser, | |
# Generators: | |
htmlgen, | |
# Hashing: | |
base64, hashes, | |
# fails: md5, oids, sha1 | |
# Miscellaneous: | |
colors, logging, sugar, unittest, varints, | |
# fails: browsers, coro, | |
# works but shouldn't: segfaults | |
# Modules for JS backend: | |
asyncjs, dom, jsconsole, jscore, jsffi, | |
# Unlisted in lib.html: | |
decls, compilesettings, with, wrapnils] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment