Sorry to necro. I’m trying to do something similar as this but I don’t want to have to list raylib as a dependency in the consumer project zon in case I want to change my graphics backend without affecting the library user.
I feel like the dependencies of a library should be reexported as a dependency of the consumer project automatically. Maybe I should start an issue on the Zig GitHub?
Hello @calebrjc Welcome to ziggit 
I am assuming that there are:
- a
consumer project package,
- a
library package, and
- the
raylib package.
library package lists in its dependencies raylib.
consumer project lists in its dependencies library.
This is a working setup that allows consumer project to call library and library to call raylib.
There is no need to reexport or redeclare the raylib dependency.
2 Likes