How cargo interact with git submodule?

I am using libbpf-sys in my project, I wonder how its works without something like git submodule update in it. Thanks. takes a snapshot of the directory on publish, not takes a git repository.

Thanks for the insight.

Cargo is actually aware of git submodules. You can add a dependency from a git repository instead of In this case cargo will check out the repository and update the submodules automatically.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.