diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3685e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +nimble.develop +nimble.paths +nimbledeps diff --git a/config.nims b/config.nims index fce8f96..15157aa 100644 --- a/config.nims +++ b/config.nims @@ -1,4 +1,4 @@ -# begin Nimble config (version 1) -when fileExists("nimble.paths"): +# begin Nimble config (version 2) +when withDir(thisDir(), system.fileExists("nimble.paths")): include "nimble.paths" # end Nimble config \ No newline at end of file diff --git a/ffi.nimble b/ffi.nimble index 713c923..f388b98 100644 --- a/ffi.nimble +++ b/ffi.nimble @@ -1,6 +1,6 @@ # ffi.nimble -version = "0.1.0" +version = "0.1.1" author = "Institute of Free Technology" description = "FFI framework with custom header generation" license = "MIT or Apache License 2.0" @@ -9,6 +9,8 @@ packageName = "ffi" requires "nim >= 2.2.4" requires "chronos" +requires "chronicles" +requires "taskpools" # Source files to include # srcDir = "src" diff --git a/ffi/ffi_context.nim b/ffi/ffi_context.nim index 657ee07..f110425 100644 --- a/ffi/ffi_context.nim +++ b/ffi/ffi_context.nim @@ -2,7 +2,7 @@ {.pragma: callback, cdecl, raises: [], gcsafe.} {.passc: "-fPIC".} -import std/[options, atomics, os, net, locks, json] +import std/[options, atomics, os, net, locks, json, tables] import chronicles, chronos, chronos/threadsync, taskpools/channels_spsc_single, results import ./ffi_types, ./ffi_thread_request, ./internal/ffi_macro, ./logging