haskell-cryptography / botan

Haskell bindings for the Botan cryptography library
BSD 3-Clause "New" or "Revised" License
34 stars 6 forks source link

Realigning and completing the bindings #4

Closed BurningWitness closed 11 months ago

BurningWitness commented 1 year ago

Features:

Choices:

Downsides:

This PR does not cover linking, as that part is both completely separate from the code and hilariously arcane: there is no way to specify C library dependencies as static or dynamic, instead the system links static only if it can find the source to compile. I do not know if there exists any way to interface C library building either, that part is a wild jungle with seemingly no guidelines whatsoever. For now dynamic linking should be more than enough.

ldillinger commented 1 year ago

That looks like it covers quite a lot - this answers several of the open issues noted in the README, which saves me a good bit of time and work. Your effort is most appreciated!

I must digest / ponder some of the decisions you have made, may / may not make some changes or additions after comparing them with the intended hierarchy since I wish for there to be some level of structural parity between the lower and higher libraries, and so this would reflect on them as well. I'm going to have to think about exactly how and what to merge in - but I find myself already agreeing with it substantially already.

ldillinger commented 11 months ago

These changes have been manually merged in as best fit. 👍