# cardano-c-clib
Unpublished native source companion to the Cometa Haskell binding. Package
version 0.1.1.0 bundles cardano-c 2.0.0-rc.7, revision `a6f659d780f17b60ebafa170af919cca8173df09`.
This is a generated Cabal `build-type: Simple` package. Cabal compiles bundled
C sources using its selected C toolchain and optimization settings. Consumers
need no separately installed cardano-c library, CMake, Git or network download
for the native build. Six private libraries isolate bundled dependencies;
public cardano-c headers are installed by the main library for downstream FFI.
The configuration uses upstream defaults (collection growth 1.5, JSON depth
256), portable C blst, and upstream secp256k1 verification defines. Unix builds
link math and pthread and enable libsodium's initialization mutex. Compiler and
architecture selection remain the consumer toolchain's responsibility.
Sources and original notices are in `vendor/`; the payload excludes native test
suites, development scripts and build outputs. `NOTICE` and `licenses/` describe
the mixed licensing, including mini-gmp's LGPL/GPL alternatives. The complete
source is provided for consumers to rebuild and satisfy applicable license terms.
Regenerate from the Cometa repository with
`python3 tools/package-native.py /path/to/pinned/cardano-c`.
The generator verifies the committed native pin and a clean tracked checkout;
`--check` compares the generated package byte for byte without modifying it.