Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timotheecour/058320de3093737967b82d57d95ff09c to your computer and use it in GitHub Desktop.
Save timotheecour/058320de3093737967b82d57d95ff09c to your computer and use it in GitHub Desktop.
tests/js/tstdlib_imports.nim
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