move io out of system (#19442)
* move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
This commit is contained in:
parent
486cb09ec2
commit
891329cd4b
24 changed files with 92 additions and 42 deletions
|
|
@ -2680,7 +2680,7 @@ proc slurp*(filename: string): string {.magic: "Slurp".}
|
|||
## This is an alias for `staticRead <#staticRead,string>`_.
|
||||
|
||||
proc staticRead*(filename: string): string {.magic: "Slurp".}
|
||||
## Compile-time `readFile <io.html#readFile,string>`_ proc for easy
|
||||
## Compile-time `readFile <syncio.html#readFile,string>`_ proc for easy
|
||||
## `resource`:idx: embedding:
|
||||
##
|
||||
## The maximum file size limit that `staticRead` and `slurp` can read is
|
||||
|
|
@ -3150,8 +3150,11 @@ when defined(genode):
|
|||
import system/widestrs
|
||||
export widestrs
|
||||
|
||||
import system/io
|
||||
export io
|
||||
when not defined(nimPreviewSlimSystem):
|
||||
{.deprecated: """io is about to move out of system; use `-d:nimPreviewSlimSystem` and
|
||||
import `std/syncio`.""".}
|
||||
import std/syncio
|
||||
export syncio
|
||||
|
||||
when not defined(createNimHcr) and not defined(nimscript):
|
||||
include nimhcr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue