Skip to content

Commit

Permalink
Rename jrpc_sys module back to jsonmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Jan 4, 2024
1 parent 014658d commit 834de41
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions json_rpc/client.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import
std/[json, tables, macros],
chronos,
results,
./private/jrpc_conv,
./jsonmarshal,
./private/jrpc_sys,
./private/client_handler_wrapper,
./private/shared_wrapper,
Expand All @@ -22,7 +22,7 @@ from strutils import replace
export
chronos,
tables,
jrpc_conv,
jsonmarshal,
RequestParamsTx,
results

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion json_rpc/private/client_handler_wrapper.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

import
macros,
./shared_wrapper
./shared_wrapper,
./jrpc_sys

{.push gcsafe, raises: [].}

Expand Down
8 changes: 4 additions & 4 deletions json_rpc/private/server_handler_wrapper.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import
json_serialization,
json_serialization/std/[options],
./errors,
./jrpc_sys,
./jrpc_conv,
./shared_wrapper
./jrpc_sys,
./shared_wrapper,
../jsonmarshal

export
jrpc_conv
jsonmarshal

{.push gcsafe, raises: [].}

Expand Down
2 changes: 1 addition & 1 deletion json_rpc/private/shared_wrapper.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import
std/[json, macros],
./jrpc_sys,
./jrpc_conv
../jsonmarshal

iterator paramsIter*(params: NimNode): tuple[name, ntype: NimNode] =
## Forward iterator of handler parameters
Expand Down
5 changes: 3 additions & 2 deletions json_rpc/router.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import
chronos,
./private/server_handler_wrapper,
./private/errors,
./private/jrpc_sys
./private/jrpc_sys,
./jsonmarshal

export
chronos,
jrpc_conv,
jsonmarshal,
json

type
Expand Down
4 changes: 2 additions & 2 deletions json_rpc/server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import
std/json,
chronos,
./router,
./private/jrpc_conv,
./jsonmarshal,
./private/jrpc_sys,
./private/shared_wrapper,
./private/errors

export
chronos,
jrpc_conv,
jsonmarshal,
router

type
Expand Down
2 changes: 1 addition & 1 deletion tests/private/ethhexstrings.nim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ template hexQuantityStr*(value: string): HexQuantityStr = value.HexQuantityStr
# Converters

import json
import ../../json_rpc/private/jrpc_conv
import ../../json_rpc/jsonmarshal

proc `%`*(value: HexDataStr): JsonNode {.gcsafe, raises: [JsonRpcError].} =
if not value.validate:
Expand Down
2 changes: 1 addition & 1 deletion tests/private/stintjson.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import
std/json,
stint,
../../json_rpc/private/jrpc_conv
../../json_rpc/jsonmarshal

{.push gcsafe, raises: [].}

Expand Down

0 comments on commit 834de41

Please sign in to comment.