Update to Nim-2.0.0
This commit is contained in:
parent
f83e57ee22
commit
60515ad408
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20230506"
|
||||
version = "20230816"
|
||||
author = "Emery Hemingway"
|
||||
description = "Syndicate actor for asserting Fontconfig information"
|
||||
license = "Unlicense"
|
||||
|
@ -10,4 +10,4 @@ bin = @["fontconfig_actor"]
|
|||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 1.6.10", "syndicate >= 20230518"
|
||||
requires "nim >= 2.0.0", "syndicate >= 20230816"
|
||||
|
|
|
@ -146,7 +146,7 @@ template withFontconfig(body: untyped): untyped =
|
|||
body
|
||||
Fini()
|
||||
|
||||
proc serve(ds: Ref; turn: var Turn) =
|
||||
proc serve(ds: Cap; turn: var Turn) =
|
||||
let observation = ?Observe(pattern: !FontAssertion) ?? {0: grabDict()}
|
||||
during(turn, ds, observation) do (properties: Preserve[void]):
|
||||
var fontAssert: FontAssertion
|
||||
|
@ -157,7 +157,7 @@ proc serve(ds: Ref; turn: var Turn) =
|
|||
var
|
||||
res = FcResultNoMatch
|
||||
pat = fillPattern(fontAssert.pattern)
|
||||
font = FontMatch(nil, pat, res)
|
||||
font = FontMatch(FcConfig(nil), pat, res)
|
||||
if res != FcResultMatch:
|
||||
logError "no font matched for ", fontAssert.pattern
|
||||
else:
|
||||
|
@ -166,7 +166,7 @@ proc serve(ds: Ref; turn: var Turn) =
|
|||
PatternDestroy(pat)
|
||||
discard publish(turn, ds, fontAssert)
|
||||
|
||||
runActor("main") do (root: Ref; turn: var Turn):
|
||||
runActor("main") do (root: Cap; turn: var Turn):
|
||||
connectStdio(root, turn)
|
||||
during(turn, root, ?BootArguments) do (ds: Ref):
|
||||
during(turn, root, ?BootArguments) do (ds: Cap):
|
||||
serve(ds, turn)
|
||||
|
|
Loading…
Reference in New Issue