Move relays out of top module, clean exports there
This commit is contained in:
parent
b2994b6d05
commit
552e51899c
|
@ -11,16 +11,7 @@ export fromPreserve, toPreserve
|
|||
import ./syndicate/[actors, dataspaces, durings, patterns]
|
||||
import ./syndicate/protocols/dataspace
|
||||
|
||||
when defined(posix):
|
||||
from ./syndicate/relays import Tcp, Unix, connect, connectStdio
|
||||
export Tcp, Unix, connect, connectStdio
|
||||
|
||||
export patterns
|
||||
|
||||
export Actor, Assertion, Facet, Handle, Cap, Ref, Symbol, Turn, TurnAction,
|
||||
`$`, addCallback, analyse, asyncCheck, bootDataspace,
|
||||
facet, future, inFacet, message, newDataspace, onStop, publish,
|
||||
retract, replace, run, spawn, stop, stopActor, unembed, unpackLiterals
|
||||
export actors, dataspaces, patterns
|
||||
|
||||
proc `!`*(typ: static typedesc): Pattern {.inline.} =
|
||||
patterns.dropType(typ)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import std/[asyncdispatch, monotimes, times]
|
||||
import preserves
|
||||
import syndicate, syndicate/actors
|
||||
import syndicate
|
||||
|
||||
import ../protocols/timer
|
||||
from syndicate/protocols/dataspace import Observe
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import std/[asyncdispatch, options, streams, tables]
|
||||
import preserves
|
||||
import ./actors, ./durings, ./membranes, ./protocols/[protocol, sturdy, transportAddress]
|
||||
import ../syndicate, ./durings, ./membranes, ./protocols/[gatekeeper, protocol, sturdy, transportAddress]
|
||||
|
||||
when defined(traceSyndicate):
|
||||
when defined(posix):
|
||||
|
@ -21,8 +21,7 @@ type
|
|||
Value = Preserve[void]
|
||||
Assertion = Preserve[Cap]
|
||||
WireRef = sturdy.WireRef[void]
|
||||
|
||||
Turn = actors.Turn
|
||||
Turn = syndicate.Turn
|
||||
|
||||
type
|
||||
PacketWriter = proc (pkt: sink Packet): Future[void] {.gcsafe.}
|
||||
|
@ -285,8 +284,6 @@ when defined(posix):
|
|||
import std/asyncnet
|
||||
from std/nativesockets import AF_INET, AF_UNIX, IPPROTO_TCP, SOCK_STREAM, Protocol
|
||||
|
||||
import protocols/gatekeeper
|
||||
|
||||
type ShutdownEntity* = ref object of Entity
|
||||
|
||||
method retract(e: ShutdownEntity; turn: var Turn; h: Handle) =
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
## https://git.syndicate-lang.org/syndicate-lang/syndicate-rkt/src/commit/90c4c60699069b496491b81ee63b5a45ffd638cb/syndicate/HOWITWORKS.md
|
||||
|
||||
import std/[hashes, lists, options, sets, tables]
|
||||
import std/[hashes, options, sets, tables]
|
||||
import preserves
|
||||
import ./actors, ./bags, ./patterns
|
||||
import ./protocols/dataspacePatterns
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20230825"
|
||||
version = "20231005"
|
||||
author = "Emery Hemingway"
|
||||
description = "Syndicated actors for conversational concurrency"
|
||||
license = "Unlicense"
|
||||
|
|
Loading…
Reference in New Issue