From 0e45b01b210bbf1bc535cc73fcb3fe649a343168 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:07:50 +0800 Subject: [PATCH] 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 --- changelog.md | 1 + lib/pure/htmlparser.nim | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 58efde163f..b094dd0ebe 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 0de384a8e6..8bf1497214 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):