summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-10-26 19:07:50 +0800
committerGitHub <noreply@github.com>2023-10-26 13:07:50 +0200
commit0e45b01b210bbf1bc535cc73fcb3fe649a343168 (patch)
tree54085effe0d7bba2050ea5fe28a174955e98487d
parentcef5e57eb59f0ef2633c298aa2c8a5b049b32d5c (diff)
downloadNim-0e45b01b210bbf1bc535cc73fcb3fe649a343168.tar.gz
deprecate htmlparser (#22870)
ref https://github.com/nim-lang/Nim/pull/22848
see also https://github.com/nim-lang/htmlparser
will build the documentation later when everything else is settled

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
-rw-r--r--changelog.md1
-rw-r--r--lib/pure/htmlparser.nim2
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 58efde163..b094dd0eb 100644
--- a/changelog.md
+++ b/changelog.md
@@ -11,6 +11,7 @@
 
 - Changed `std/osfiles.copyFile` to allow to specify `bufferSize` instead of a hardcoded one.
 - Changed `std/osfiles.copyFile` to use `POSIX_FADV_SEQUENTIAL` hints for kernel-level aggressive sequential read-aheads.
+- `std/htmlparser` has been moved to a nimble package, use `nimble` or `atlas` to install it.
 
 [//]: # "Additions:"
 
diff --git a/lib/pure/htmlparser.nim b/lib/pure/htmlparser.nim
index 0de384a8e..8bf149721 100644
--- a/lib/pure/htmlparser.nim
+++ b/lib/pure/htmlparser.nim
@@ -47,6 +47,8 @@
 ##     writeFile("output.html", $html)
 ##   ```
 
+{.deprecated: "use `nimble install htmlparser` and import `pkg/htmlparser` instead".}
+
 import strutils, streams, parsexml, xmltree, unicode, strtabs
 
 when defined(nimPreviewSlimSystem):