mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 13:43:08 +00:00
Refactor public API to use `var openArray[seq[byte]]` instead of raw pointers for ORC compatibility. The previous API required callers to extract raw pointers from seqs before calling encode/decode. With refc and shallowCopy, reference counting kept buffers alive. ORC doesn't track raw pointers and can reallocate seq buffers at yield points, leaving pointers dangling. The new openArray API borrows data safely. Also updates CI to Nim 2.2.4 and bumps version to 0.2.0. Part of https://github.com/logos-storage/nim-leopard/issues/24 Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
13 lines
312 B
Nim
13 lines
312 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "leopard"
|
|
version = "0.2.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "A wrapper for Leopard-RS"
|
|
license = "Apache License 2.0 or MIT"
|
|
installDirs = @["vendor"]
|
|
|
|
requires "nim >= 1.6.0",
|
|
"unittest2",
|
|
"results"
|