Skip to content

Add git submodule init#46

Merged
lovasoa merged 2 commits into
rust-or:masterfrom
Dirreke:add-init
Apr 10, 2026
Merged

Add git submodule init#46
lovasoa merged 2 commits into
rust-or:masterfrom
Dirreke:add-init

Conversation

@Dirreke
Copy link
Copy Markdown
Contributor

@Dirreke Dirreke commented Mar 23, 2026

This pull request enhances the build process by ensuring that required git submodules are initialized and updated before building, particularly when the build feature is enabled.

This helps in cases where the crate is obtained from a normal clone or through git = "..." in Cargo, where submodules may not have been fetched in advance. Without them, the native sources required by the build are unavailable, and the failure only shows up later during compilation.

For *-sys crates, handling bundled native sources in the build step is a common approach, since it makes the crate more self-contained and avoids extra setup requirements for downstream users.

@lovasoa lovasoa merged commit 5743de1 into rust-or:master Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants