diff --git a/compiler/installer.ini b/compiler/installer.ini index c8af38886..729c13503 100644 --- a/compiler/installer.ini +++ b/compiler/installer.ini @@ -115,6 +115,9 @@ Files: "lib/posix/*.nim" Files: "lib/js/*.nim" Files: "lib/packages/docutils/*.nim" +Files: "lib/deprecated/core/*.nim" +Files: "lib/deprecated/pure/*.nim" +Files: "lib/deprecated/pure/*.cfg" [Other] Files: "examples/*.nim" diff --git a/config/nim.cfg b/config/nim.cfg index bf78c35cc..b8608b3ce 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -27,6 +27,8 @@ mips.linux.gcc.linkerexe = "mips-openwrt-linux-gcc" cs:partial @end +path="$lib/deprecated/core" +path="$lib/deprecated/pure" path="$lib/pure/collections" path="$lib/pure/concurrency" path="$lib/impure" diff --git a/doc/lib.txt b/doc/lib.txt index 868adde89..7c71e8ae5 100644 --- a/doc/lib.txt +++ b/doc/lib.txt @@ -201,12 +201,6 @@ Internet Protocols and Support * `scgi `_ This module implements helpers for SCGI applications. -* `sockets `_ - This module implements a simple portable type-safe sockets layer. - -* `asyncio `_ - This module implements an asynchronous event loop for sockets. - * `browsers `_ This module implements procs for opening URLs with the user's default browser. @@ -220,9 +214,6 @@ Internet Protocols and Support * `smtp `_ This module implement a simple SMTP client. -* `ftpclient `_ - This module implements an FTP client. - * `cookies `_ This module contains helper procs for parsing and generating cookies. @@ -265,8 +256,6 @@ Parsers * `parseopt `_ The ``parseopt`` module implements a command line option parser. - **Deprecated since version 0.9.3:** Use the `parseopt2 - `_ module instead. * `parseopt2 `_ The ``parseopt2`` module implements a command line option parser. This @@ -397,6 +386,27 @@ Modules for JS backend Declaration of the Document Object Model for the JS backend. +Deprecated modules +------------------ + +* `asyncio `_ + This module implements an asynchronous event loop for sockets. + **Deprecated since version 0.11.2:** + Use the `asyncnet `_ together with the + `asyncdispatch `_ module instead. + +* `ftpclient `_ + This module implements an FTP client. + **Deprecated since version 0.11.3:** + Use the `asyncftpclient `_ module instead. + +* `sockets `_ + This module implements a simple portable type-safe sockets layer. + **Deprecated since version 0.11.2:** + Use the `net `_ or the `rawsockets `_ module + instead. + + Impure libraries ================ diff --git a/lib/core/unsigned.nim b/lib/deprecated/core/unsigned.nim similarity index 100% rename from lib/core/unsigned.nim rename to lib/deprecated/core/unsigned.nim diff --git a/lib/pure/actors.nim b/lib/deprecated/pure/actors.nim similarity index 100% rename from lib/pure/actors.nim rename to lib/deprecated/pure/actors.nim diff --git a/lib/pure/actors.nim.cfg b/lib/deprecated/pure/actors.nim.cfg similarity index 100% rename from lib/pure/actors.nim.cfg rename to lib/deprecated/pure/actors.nim.cfg diff --git a/lib/pure/asyncio.nim b/lib/deprecated/pure/asyncio.nim similarity index 100% rename from lib/pure/asyncio.nim rename to lib/deprecated/pure/asyncio.nim diff --git a/lib/pure/ftpclient.nim b/lib/deprecated/pure/ftpclient.nim similarity index 100% rename from lib/pure/ftpclient.nim rename to lib/deprecated/pure/ftpclient.nim diff --git a/lib/pure/parseopt.nim b/lib/deprecated/pure/parseopt.nim similarity index 100% rename from lib/pure/parseopt.nim rename to lib/deprecated/pure/parseopt.nim diff --git a/lib/pure/parseurl.nim b/lib/deprecated/pure/parseurl.nim similarity index 100% rename from lib/pure/parseurl.nim rename to lib/deprecated/pure/parseurl.nim diff --git a/lib/pure/sockets.nim b/lib/deprecated/pure/sockets.nim similarity index 100% rename from lib/pure/sockets.nim rename to lib/deprecated/pure/sockets.nim