Skip to content

Commit

Permalink
2.1.0: expose serialize/deserialize macros
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Sep 11, 2021
1 parent f782b81 commit f26f918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frosty.nim
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ proc deserialize[T](s: var Serializer; o: var ref T) = readRefImpl(s, o)
# put 'em down here so we don't accidentally bind somewhere
#

macro serialize(s: var Serializer; o: typed): untyped =
macro serialize*(s: var Serializer; o: typed): untyped =
perform(Write, s, o)

macro deserialize(s: var Serializer; o: var typed) =
macro deserialize*(s: var Serializer; o: var typed) =
perform(Read, s, o)

proc freeze*[S, T](output: S; input: T) =
Expand Down
2 changes: 1 addition & 1 deletion frosty.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.0.1"
version = "2.1.0"
author = "disruptek"
description = "serialize native Nim types to strings, streams, or sockets"
license = "MIT"
Expand Down

0 comments on commit f26f918

Please sign in to comment.