Skip to content

chore: drop the depthai-core submodule; depthai-rs owns the build - #16

Merged
edgarriba merged 2 commits into
mainfrom
chore/drop-depthai-vendor
Sep 2, 2026
Merged

edgarriba merged 2 commits into
mainfrom
chore/drop-depthai-vendor

Conversation

@edgarriba

Copy link
Copy Markdown
Member

Summary

kornia/depthai-rs now carries the pinned depthai-core source, the tag, the build script and a vendored feature. Keeping a second v3.7.1 pin here meant two things to bump in lockstep for one library, so this repo stops vendoring it:

  • vendor/depthai-core submodule, .gitmodules, scripts/build_depthai.sh, the pixi depthai-build/pack/unpack tasks (and the stale oakd_track3d tasks) are removed.
  • sensor-oak gains vendored = ["depthai-sys/vendored"]: a machine without a prefix runs cargo build -p sensor-oak --features vendored (cmake/ninja/pkg-config from pixi shell).
  • CI's jetson job takes DEPTHAI_PREFIX instead of submodules: recursive + LD_LIBRARY_PATH (depthai-sys bakes the rpath).
  • README / CLAUDE.md / .gitignore describe the prefix-or-vendored flow.

No code change in the crates.

Test plan

  • cargo metadata --locked, cargo fmt --check
  • Fresh clone on the Orin with DEPTHAI_PREFIX pointing at the depthai-rs-built prefix: cargo build -p sensor-oak
  • cargo build -p sensor-oak --features vendored on a machine with cmake/ninja (needs ~4 GB free)

🤖 Generated with Claude Code

https://claude.ai/code/session_01TmCRdrYoyj2zokHSv5EvvM

edgarriba and others added 2 commits September 2, 2026 10:04
…wns the build

kornia/depthai-rs now carries the pinned depthai-core source, the tag, the
build script and a `vendored` feature that builds it from cargo. Keeping a
second v3.7.1 pin here meant two things to bump in lockstep for one library.

- vendor/depthai-core submodule, .gitmodules, scripts/build_depthai.sh and the
  pixi depthai-build/pack/unpack tasks (and the stale oakd_track3d tasks) go.
- sensor-oak gains `vendored = ["depthai-sys/vendored"]` so a machine without a
  prefix can `cargo build -p sensor-oak --features vendored`.
- CI's jetson job takes DEPTHAI_PREFIX instead of checking out submodules and
  setting LD_LIBRARY_PATH (depthai-sys bakes the rpath).
- README / CLAUDE.md / .gitignore describe the prefix-or-vendored flow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmCRdrYoyj2zokHSv5EvvM
…ource submodule

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmCRdrYoyj2zokHSv5EvvM
@edgarriba
edgarriba merged commit 7ef6b5f into main Sep 2, 2026
3 checks passed
@edgarriba
edgarriba deleted the chore/drop-depthai-vendor branch September 2, 2026 08:25
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.

1 participant