diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-02 16:49:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 10:49:17 +0200 |
commit | afc30ca87948c11f603f6686d4b10d3dcc27776a (patch) | |
tree | d52781ac11128914f43fce51fa8c59fb54bb7acf /lib/std/sha1.nim | |
parent | 2844ac8b5eb6efce18e10b246e874719b20d36b2 (diff) | |
download | Nim-afc30ca87948c11f603f6686d4b10d3dcc27776a.tar.gz |
fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702)
* move sha1, md5 to nimble packages * boot the compiler * fixes tests * build the documentation * fixes docs * lol, I forgot koch.nim * add `nimHasChecksums` define * clone checksums but maybe copying is better * bump nimble hash * use ChecksumsStableCommit * fixes tests * deprecate them * fixes paths * fixes koch
Diffstat (limited to 'lib/std/sha1.nim')
-rw-r--r-- | lib/std/sha1.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/sha1.nim b/lib/std/sha1.nim index 50175024c..a1a8c4782 100644 --- a/lib/std/sha1.nim +++ b/lib/std/sha1.nim @@ -26,6 +26,9 @@ runnableExamples("-r:off"): b = parseSecureHash("10DFAEBF6BFDBC7939957068E2EFACEC4972933C") assert a == b, "files don't match" + +{.deprecated: "use command `nimble install checksums` and import `checksums/sha1` instead".} + import strutils from endians import bigEndian32, bigEndian64 @@ -281,4 +284,4 @@ proc `==`*(a, b: SecureHash): bool = proc isValidSha1Hash*(s: string): bool = ## Checks if a string is a valid sha1 hash sum. - s.len == 40 and allCharsInSet(s, HexDigits) + s.len == 40 and allCharsInSet(s, HexDigits) \ No newline at end of file |