Move generated schema modules to src/schema

This commit is contained in:
Emery Hemingway 2022-06-10 12:08:35 -05:00
parent ef15b583df
commit 9e6d39d154
8 changed files with 5 additions and 5 deletions

View File

@ -1,2 +0,0 @@
include_rules
: foreach ../*.prs |> !preserves_schema_nim |> %B.nim

View File

@ -4,7 +4,7 @@
import std/[asyncdispatch, strutils]
import syndicate
import ./private/libnotify
import ./notifications
import ./schema/notifications
bootDataspace("main") do (ds: Ref; turn: var Turn):
connectStdio(ds, turn)

View File

@ -5,7 +5,7 @@ import std/[asyncdispatch, asynchttpserver, sets, strutils, tables, uri]
import preserves
import syndicate, syndicate/actors
import ./http_protocol.nim
import ./schema/http_protocol
func toHttpCore(methods: Methods): set[HttpMethod] =
# Convert the schema type to the type in the httpcore module.

View File

@ -5,7 +5,7 @@ import std/[asyncdispatch, asyncnet, json]
from std/nativesockets import AF_UNIX, SOCK_STREAM, Protocol
import preserves, preserves/jsonhooks, syndicate, syndicate/patterns
import ./config
import ./schema/config
bootDataspace("main") do (ds: Ref; turn: var Turn):
connectStdio(ds, turn)

2
src/schema/Tupfile Normal file
View File

@ -0,0 +1,2 @@
include_rules
: foreach ../../*.prs |> !preserves_schema_nim |> %B.nim