5 Commits

Author SHA1 Message Date
Eugene Kabanov
554b464b34
Fix gcc-14 issues part 2. (#61)
* Fix recently discovered nim-2.0 gcc-14 issues.

* One more place to fix.
2024-06-27 01:42:04 +03:00
Jacek Sieka
917b7274f9
work around C++ linking issue (#50)
* test c++ support, work around linking issue

* fix imports, don't test C++ after all
2023-08-16 12:47:15 +02:00
Jacek Sieka
1e9b702650
brssl: c2nim-generated spelling (#33)
* generate brssl.nim with regenerate.sh as well
2022-07-07 18:47:59 +02:00
Jacek Sieka
2631f8473d
cross-compile-compatible paths (#31) 2022-06-24 20:09:06 +02:00
Jacek Sieka
c4aec8b664
split decls into separate modules in bearssl/abi (#27)
* 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/`.
2022-06-14 19:33:00 +02:00