Skip to content

feat: add Cargo.toml and build.rs for Bazel workspaces #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025

Conversation

wep21
Copy link
Owner

@wep21 wep21 commented Jun 12, 2025

This commit introduces Cargo.toml files for the detector, tracker, and examples workspaces to enable Rust tooling and standalone Cargo builds.

  • detector/Cargo.toml: Defines the 'rtmo' library, which includes C++ interoperability via the 'cxx' crate.
  • detector/build.rs: Configured to compile the C++ sources (engine.cpp, rtmo.cpp) and link against dependencies like CUDA, TensorRT, and CVCUDA, mirroring the Bazel setup.
  • tracker/Cargo.toml: Defines the 'tracker' library with its Rust dependencies and a path dependency on the 'rtmo' library.
  • examples/Cargo.toml: Defines the 'image_demo' and 'video_demo' binaries, with path dependencies on 'rtmo' and 'tracker', along with other necessary crates.

These additions facilitate the use of standard Rust development tools and workflows alongside the existing Bazel build system.

google-labs-jules bot and others added 3 commits June 12, 2025 00:15
This commit introduces Cargo.toml files for the detector, tracker, and
examples workspaces to enable Rust tooling and standalone Cargo builds.

- detector/Cargo.toml: Defines the 'rtmo' library, which includes C++
  interoperability via the 'cxx' crate.
- detector/build.rs: Configured to compile the C++ sources (engine.cpp,
  rtmo.cpp) and link against dependencies like CUDA, TensorRT, and
  CVCUDA, mirroring the Bazel setup.
- tracker/Cargo.toml: Defines the 'tracker' library with its Rust
  dependencies and a path dependency on the 'rtmo' library.
- examples/Cargo.toml: Defines the 'image_demo' and 'video_demo'
  binaries, with path dependencies on 'rtmo' and 'tracker', along with
  other necessary crates.

These additions facilitate the use of standard Rust development tools and
workflows alongside the existing Bazel build system.
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
@wep21 wep21 changed the title Add Cargo.toml and build.rs for Bazel workspaces feat: add Cargo.toml and build.rs for Bazel workspaces Jun 12, 2025
@wep21 wep21 merged commit 7498f86 into main Jun 12, 2025
2 checks passed
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