removes channels_builtin when enabling nimPreviewSlimSystem (#20713)

This commit is contained in:
ringabout 2022-10-31 16:56:05 +08:00 • committed by GitHub
commit 0a1f204f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 18 deletions

View file

@ -22,6 +22,9 @@ runnableExamples("-r:off"):
if line.len > 0: echo line
echo "exiting"
when defined(nimPreviewSlimSystem):
import std/syncio
when defined(windows):
proc readLineFromStdin*(prompt: string): string {.
tags: [ReadIOEffect, WriteIOEffect].} =

View file

@ -47,7 +47,6 @@ runnableExamples:
## See also
## ========
## * `lists module <lists.html>`_ for singly and doubly linked lists and rings
## * `channels module <channels_builtin.html>`_ for inter-thread communication
import std/private/since

View file

@ -14,7 +14,6 @@
## See also
## ========
## * `threads module <threads.html>`_ for basic thread support
## * `channels module <channels_builtin.html>`_ for message passing support
## * `locks module <locks.html>`_ for locks and condition variables
## * `asyncdispatch module <asyncdispatch.html>`_ for asynchronous IO

View file

@ -2206,7 +2206,8 @@ when notJSnotNims and hasAlloc:
include "system/repr"
when notJSnotNims and hasThreadSupport and hostOS != "standalone":
include "system/channels_builtin"
when not defined(nimPreviewSlimSystem):
include "system/channels_builtin"
when notJSnotNims and hostOS != "standalone":