move new sha1 module into the new 'std' namespace

This commit is contained in:
Andreas Rumpf 2018-02-06 17:40:31 +01:00
commit 70e8640244
14 changed files with 14 additions and 12 deletions

View file

@ -247,3 +247,5 @@ proc bar {.deprecated: "use foo instead".} =
bar() bar()
``` ```
- The ``securehash`` module is now deprecated. Instead import ``std / sha1``.

View file

@ -10,7 +10,7 @@
# abstract syntax tree + symbol table # abstract syntax tree + symbol table
import import
msgs, hashes, nversion, options, strutils, sha1, ropes, idents, msgs, hashes, nversion, options, strutils, std / sha1, ropes, idents,
intsets, idgen intsets, idgen
type type

View file

@ -11,7 +11,7 @@
import import
ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets, ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets,
nversion, nimsets, msgs, sha1, bitsets, idents, types, nversion, nimsets, msgs, std / sha1, bitsets, idents, types,
ccgutils, os, ropes, math, passes, rodread, wordrecg, treetab, cgmeth, ccgutils, os, ropes, math, passes, rodread, wordrecg, treetab, cgmeth,
condsyms, rodutils, renderer, idgen, cgendata, ccgmerge, semfold, aliases, condsyms, rodutils, renderer, idgen, cgendata, ccgmerge, semfold, aliases,
lowerings, semparallel, tables, sets, ndi lowerings, semparallel, tables, sets, ndi

View file

@ -14,7 +14,7 @@
import import
ropes, os, strutils, osproc, platform, condsyms, options, msgs, ropes, os, strutils, osproc, platform, condsyms, options, msgs,
sha1, streams std / sha1, streams
#from debuginfo import writeDebugInfo #from debuginfo import writeDebugInfo

View file

@ -9,7 +9,7 @@
## Module that implements ``gorge`` for the compiler. ## Module that implements ``gorge`` for the compiler.
import msgs, sha1, os, osproc, streams, strutils, options import msgs, std / sha1, os, osproc, streams, strutils, options
proc readOutput(p: Process): (string, int) = proc readOutput(p: Process): (string, int) =
result[0] = "" result[0] = ""

View file

@ -31,7 +31,7 @@ implements the required case distinction.
import import
ast, astalgo, strutils, hashes, trees, platform, magicsys, extccomp, options, ast, astalgo, strutils, hashes, trees, platform, magicsys, extccomp, options,
nversion, nimsets, msgs, sha1, bitsets, idents, types, os, nversion, nimsets, msgs, std / sha1, bitsets, idents, types, os,
times, ropes, math, passes, ccgutils, wordrecg, renderer, rodread, rodutils, times, ropes, math, passes, ccgutils, wordrecg, renderer, rodread, rodutils,
intsets, cgmeth, lowerings intsets, cgmeth, lowerings

View file

@ -10,7 +10,7 @@
## Implements the module handling, including the caching of modules. ## Implements the module handling, including the caching of modules.
import import
ast, astalgo, magicsys, sha1, rodread, msgs, cgendata, sigmatch, options, ast, astalgo, magicsys, std / sha1, rodread, msgs, cgendata, sigmatch, options,
idents, os, lexer, idgen, passes, syntaxes, llstream, modulegraphs idents, os, lexer, idgen, passes, syntaxes, llstream, modulegraphs
when false: when false:

View file

@ -90,7 +90,7 @@
import import
os, options, strutils, nversion, ast, astalgo, msgs, platform, condsyms, os, options, strutils, nversion, ast, astalgo, msgs, platform, condsyms,
ropes, idents, sha1, idgen, types, rodutils, memfiles, tables ropes, idents, std / sha1, idgen, types, rodutils, memfiles, tables
type type
TReasonForRecompile* = enum ## all the reasons that can trigger recompilation TReasonForRecompile* = enum ## all the reasons that can trigger recompilation

View file

@ -13,7 +13,7 @@
import import
intsets, os, options, strutils, nversion, ast, astalgo, msgs, platform, intsets, os, options, strutils, nversion, ast, astalgo, msgs, platform,
condsyms, ropes, idents, sha1, rodread, passes, idgen, condsyms, ropes, idents, std / sha1, rodread, passes, idgen,
rodutils, modulepaths rodutils, modulepaths
from modulegraphs import ModuleGraph from modulegraphs import ModuleGraph

View file

@ -384,7 +384,7 @@ Cryptography and Hashing
* `base64 <base64.html>`_ * `base64 <base64.html>`_
This module implements a base64 encoder and decoder. This module implements a base64 encoder and decoder.
* `securehash <securehash.html>`_ * `sha1 <sha1.html>`_
This module implements a sha1 encoder and decoder. This module implements a sha1 encoder and decoder.

View file

@ -3,4 +3,4 @@
## This module is a deprecated alias for the ``sha1`` module. ## This module is a deprecated alias for the ``sha1`` module.
{.deprecated.} {.deprecated.}
include sha1 include "../std/sha1"

View file

@ -15,7 +15,7 @@ when haveZipLib:
import import
os, osproc, strutils, parseopt, parsecfg, strtabs, streams, debcreation, os, osproc, strutils, parseopt, parsecfg, strtabs, streams, debcreation,
sha1 std / sha1
const const
maxOS = 20 # max number of OSes maxOS = 20 # max number of OSes

View file

@ -65,7 +65,7 @@ srcdoc2: "pure/asyncfile;pure/asyncftpclient;pure/lenientops"
srcdoc2: "pure/md5;pure/rationals" srcdoc2: "pure/md5;pure/rationals"
srcdoc2: "posix/posix;pure/distros;pure/oswalkdir" srcdoc2: "posix/posix;pure/distros;pure/oswalkdir"
srcdoc2: "pure/collections/heapqueue" srcdoc2: "pure/collections/heapqueue"
srcdoc2: "pure/fenv;pure/sha1;impure/rdstdin;pure/strformat" srcdoc2: "pure/fenv;std/sha1;impure/rdstdin;pure/strformat"
srcdoc2: "pure/segfaults" srcdoc2: "pure/segfaults"
srcdoc2: "pure/basic2d;pure/basic3d;pure/mersenne;pure/coro;pure/httpcore" srcdoc2: "pure/basic2d;pure/basic3d;pure/mersenne;pure/coro;pure/httpcore"
srcdoc2: "pure/bitops;pure/nimtracker;pure/punycode;pure/volatile;js/asyncjs" srcdoc2: "pure/bitops;pure/nimtracker;pure/punycode;pure/volatile;js/asyncjs"