Skip to content

Commit 70e8640

Browse files
committed
move new sha1 module into the new 'std' namespace
1 parent 2199f83 commit 70e8640

File tree

14 files changed

+14
-12
lines changed

14 files changed

+14
-12
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,5 @@ proc bar {.deprecated: "use foo instead".} =
247247
248248
bar()
249249
```
250+
251+
- The ``securehash`` module is now deprecated. Instead import ``std / sha1``.

compiler/ast.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# abstract syntax tree + symbol table
1111

1212
import
13-
msgs, hashes, nversion, options, strutils, sha1, ropes, idents,
13+
msgs, hashes, nversion, options, strutils, std / sha1, ropes, idents,
1414
intsets, idgen
1515

1616
type

compiler/cgen.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

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

compiler/extccomp.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import
1616
ropes, os, strutils, osproc, platform, condsyms, options, msgs,
17-
sha1, streams
17+
std / sha1, streams
1818

1919
#from debuginfo import writeDebugInfo
2020

compiler/gorgeimpl.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Module that implements ``gorge`` for the compiler.
1111

12-
import msgs, sha1, os, osproc, streams, strutils, options
12+
import msgs, std / sha1, os, osproc, streams, strutils, options
1313

1414
proc readOutput(p: Process): (string, int) =
1515
result[0] = ""

compiler/jsgen.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ implements the required case distinction.
3131

3232
import
3333
ast, astalgo, strutils, hashes, trees, platform, magicsys, extccomp, options,
34-
nversion, nimsets, msgs, sha1, bitsets, idents, types, os,
34+
nversion, nimsets, msgs, std / sha1, bitsets, idents, types, os,
3535
times, ropes, math, passes, ccgutils, wordrecg, renderer, rodread, rodutils,
3636
intsets, cgmeth, lowerings
3737

compiler/modules.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## Implements the module handling, including the caching of modules.
1111

1212
import
13-
ast, astalgo, magicsys, sha1, rodread, msgs, cgendata, sigmatch, options,
13+
ast, astalgo, magicsys, std / sha1, rodread, msgs, cgendata, sigmatch, options,
1414
idents, os, lexer, idgen, passes, syntaxes, llstream, modulegraphs
1515

1616
when false:

compiler/rodread.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
import
9292
os, options, strutils, nversion, ast, astalgo, msgs, platform, condsyms,
93-
ropes, idents, sha1, idgen, types, rodutils, memfiles, tables
93+
ropes, idents, std / sha1, idgen, types, rodutils, memfiles, tables
9494

9595
type
9696
TReasonForRecompile* = enum ## all the reasons that can trigger recompilation

compiler/rodwrite.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import
1515
intsets, os, options, strutils, nversion, ast, astalgo, msgs, platform,
16-
condsyms, ropes, idents, sha1, rodread, passes, idgen,
16+
condsyms, ropes, idents, std / sha1, rodread, passes, idgen,
1717
rodutils, modulepaths
1818

1919
from modulegraphs import ModuleGraph

doc/lib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Cryptography and Hashing
384384
* `base64 <base64.html>`_
385385
This module implements a base64 encoder and decoder.
386386

387-
* `securehash <securehash.html>`_
387+
* `sha1 <sha1.html>`_
388388
This module implements a sha1 encoder and decoder.
389389

390390

0 commit comments

Comments
 (0)