The awesomeness of higher-level languages standard libraries, but for C.
Pita
attempts to bring to C power-users the well-thought API of standard libraries of higher-level language such as Python, Ruby or Guile Scheme, as a shared library.
Meson makes it all too easy and nice, just add a pita.wrap
file in the ./subprojects containing:
[wrap-git]
directory=pita
url=https://gitlab.com/easbarba/pita
revision=head
Then you in your meson.build
use it as dependency:
dependency('pita, fallback: ['pita, 'pita_dep'])
Pita
requires a C99 compiler, and Meson, then just run make clean all
, and executable file will be placed at $PWD/.build/onur
.
Dependencies: GNU GCC - GNU Make - Podman .
Tip: A clean install without messing around your system is easily achievable with GNU Guix: guix shell --check
.
It may suit you better running the tests in a isolated environment with containers, that can be done so:
docker run --rm -it $(docker build -qf Containerfile.run)
or:
podman build https://gitlab.com/easbarba/onur/-/raw/main/Containerfile.dev --tag onur:latest
podman run --rm -it onur:latest