mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-05 06:53:12 +00:00
* split `decls.nim` into smaller modules - allows using parts of the ABI without compiling all of `bearssl` * deprecate functions with `Br` prefix - there are duplicate exports both with and without `Br` for the same function and we use both in consumers like `chronos` and `libp2p` * fix several cases of incorrectly mapped types * use `var` for certain arguments that can't be `nil` * add script to regenerate ABI with `c2nim` * consistently use `uint` for length (`int` was sometimes used) The Split likely needs more cleanup work - this is a first cut to get the idea in place. In the new layout, `bearssl/abi/` contains "raw" nim mappings while hand-written helpers are in `bearssl/`.
22 lines
625 B
Nim
22 lines
625 B
Nim
import
|
|
"."/[csources]
|
|
|
|
{.used.}
|
|
|
|
const
|
|
bearCodecPath = bearSrcPath & "/" & "codec" & "/"
|
|
|
|
{.compile: bearCodecPath / "ccopy.c".}
|
|
{.compile: bearCodecPath / "dec16be.c".}
|
|
{.compile: bearCodecPath / "dec16le.c".}
|
|
{.compile: bearCodecPath / "dec32be.c".}
|
|
{.compile: bearCodecPath / "dec32le.c".}
|
|
{.compile: bearCodecPath / "dec64be.c".}
|
|
{.compile: bearCodecPath / "dec64le.c".}
|
|
{.compile: bearCodecPath / "enc16be.c".}
|
|
{.compile: bearCodecPath / "enc16le.c".}
|
|
{.compile: bearCodecPath / "enc32be.c".}
|
|
{.compile: bearCodecPath / "enc32le.c".}
|
|
{.compile: bearCodecPath / "enc64be.c".}
|
|
{.compile: bearCodecPath / "enc64le.c".}
|