From d3e4e0fd882b7f5fb6a0ef40a3162d51e85d54c8 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Wed, 21 Aug 2024 14:46:19 -0400 Subject: [PATCH] init nim files --- cytoplasm.nimble | 12 ++++++++++++ src/cytoplasm.nim | 26 ++++++++++++++++++++++++++ src/cytoplasm/Args.nim | 0 src/cytoplasm/Array.nim | 0 src/cytoplasm/Base64.nim | 0 src/cytoplasm/Cron.nim | 0 src/cytoplasm/Cytoplasm.nim | 0 src/cytoplasm/Db.nim | 0 src/cytoplasm/Graph.nim | 0 src/cytoplasm/HashMap.nim | 0 src/cytoplasm/HeaderParser.nim | 0 src/cytoplasm/Http.nim | 0 src/cytoplasm/HttpClient.nim | 0 src/cytoplasm/HttpRouter.nim | 0 src/cytoplasm/HttpServer.nim | 0 src/cytoplasm/Io.nim | 0 src/cytoplasm/Json.nim | 0 src/cytoplasm/Log.nim | 0 src/cytoplasm/Memory.nim | 0 src/cytoplasm/Queue.nim | 0 src/cytoplasm/Rand.nim | 0 src/cytoplasm/Runtime.nim | 0 src/cytoplasm/Sha.nim | 0 src/cytoplasm/Str.nim | 0 src/cytoplasm/Stream.nim | 0 src/cytoplasm/Tls.nim | 0 src/cytoplasm/Uri.nim | 0 src/cytoplasm/Util.nim | 0 tests/config.nims | 1 + tests/test1.nim | 12 ++++++++++++ 30 files changed, 51 insertions(+) create mode 100644 cytoplasm.nimble create mode 100644 src/cytoplasm.nim create mode 100644 src/cytoplasm/Args.nim create mode 100644 src/cytoplasm/Array.nim create mode 100644 src/cytoplasm/Base64.nim create mode 100644 src/cytoplasm/Cron.nim create mode 100644 src/cytoplasm/Cytoplasm.nim create mode 100644 src/cytoplasm/Db.nim create mode 100644 src/cytoplasm/Graph.nim create mode 100644 src/cytoplasm/HashMap.nim create mode 100644 src/cytoplasm/HeaderParser.nim create mode 100644 src/cytoplasm/Http.nim create mode 100644 src/cytoplasm/HttpClient.nim create mode 100644 src/cytoplasm/HttpRouter.nim create mode 100644 src/cytoplasm/HttpServer.nim create mode 100644 src/cytoplasm/Io.nim create mode 100644 src/cytoplasm/Json.nim create mode 100644 src/cytoplasm/Log.nim create mode 100644 src/cytoplasm/Memory.nim create mode 100644 src/cytoplasm/Queue.nim create mode 100644 src/cytoplasm/Rand.nim create mode 100644 src/cytoplasm/Runtime.nim create mode 100644 src/cytoplasm/Sha.nim create mode 100644 src/cytoplasm/Str.nim create mode 100644 src/cytoplasm/Stream.nim create mode 100644 src/cytoplasm/Tls.nim create mode 100644 src/cytoplasm/Uri.nim create mode 100644 src/cytoplasm/Util.nim create mode 100644 tests/config.nims create mode 100644 tests/test1.nim diff --git a/cytoplasm.nimble b/cytoplasm.nimble new file mode 100644 index 0000000..75241d0 --- /dev/null +++ b/cytoplasm.nimble @@ -0,0 +1,12 @@ +# Package + +version = "0.1.0" +author = "Array in a Matrix" +description = "Nim bindings for Cytoplasm" +license = "MIT" +srcDir = "src" + + +# Dependencies + +requires "nim >= 2.0.4" diff --git a/src/cytoplasm.nim b/src/cytoplasm.nim new file mode 100644 index 0000000..147c82c --- /dev/null +++ b/src/cytoplasm.nim @@ -0,0 +1,26 @@ +import Args.nim +import Base64.nim +import Cytoplasm.nim +import Graph.nim +import HeaderParser.nim +import HttpClient.nim +import HttpServer.nim +import Json.nim +import Memory.nim +import Rand.nim +import Sha.nim +import Stream.nim +import Uri.nim +import Array.nim +import Cron.nim +import Db.nim +import HashMap.nim +import Http.nim +import HttpRouter.nim +import Io.nim +import Log.nim +import Queue.nim +import Runtime.nim +import Str.nim +import Tls.nim +import Util.nim diff --git a/src/cytoplasm/Args.nim b/src/cytoplasm/Args.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Array.nim b/src/cytoplasm/Array.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Base64.nim b/src/cytoplasm/Base64.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Cron.nim b/src/cytoplasm/Cron.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Cytoplasm.nim b/src/cytoplasm/Cytoplasm.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Db.nim b/src/cytoplasm/Db.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Graph.nim b/src/cytoplasm/Graph.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/HashMap.nim b/src/cytoplasm/HashMap.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/HeaderParser.nim b/src/cytoplasm/HeaderParser.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Http.nim b/src/cytoplasm/Http.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/HttpClient.nim b/src/cytoplasm/HttpClient.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/HttpRouter.nim b/src/cytoplasm/HttpRouter.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/HttpServer.nim b/src/cytoplasm/HttpServer.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Io.nim b/src/cytoplasm/Io.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Json.nim b/src/cytoplasm/Json.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Log.nim b/src/cytoplasm/Log.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Memory.nim b/src/cytoplasm/Memory.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Queue.nim b/src/cytoplasm/Queue.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Rand.nim b/src/cytoplasm/Rand.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Runtime.nim b/src/cytoplasm/Runtime.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Sha.nim b/src/cytoplasm/Sha.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Str.nim b/src/cytoplasm/Str.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Stream.nim b/src/cytoplasm/Stream.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Tls.nim b/src/cytoplasm/Tls.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Uri.nim b/src/cytoplasm/Uri.nim new file mode 100644 index 0000000..e69de29 diff --git a/src/cytoplasm/Util.nim b/src/cytoplasm/Util.nim new file mode 100644 index 0000000..e69de29 diff --git a/tests/config.nims b/tests/config.nims new file mode 100644 index 0000000..3bb69f8 --- /dev/null +++ b/tests/config.nims @@ -0,0 +1 @@ +switch("path", "$projectDir/../src") \ No newline at end of file diff --git a/tests/test1.nim b/tests/test1.nim new file mode 100644 index 0000000..779ef39 --- /dev/null +++ b/tests/test1.nim @@ -0,0 +1,12 @@ +# This is just an example to get you started. You may wish to put all of your +# tests into a single file, or separate them into multiple `test1`, `test2` +# etc. files (better names are recommended, just make sure the name starts with +# the letter 't'). +# +# To run these tests, simply execute `nimble test`. + +#import unittest + +#import cytoplasm +#test "can add": +# check add(5, 5) == 10