Skip to content

Fix Rust build and align README with available Makefile targets - #21

Open
KshitijKaushik123 wants to merge 1 commit into
IABTechLab:mainfrom
KshitijKaushik123:fix/rust-build-and-docs
Open

Fix Rust build and align README with available Makefile targets#21
KshitijKaushik123 wants to merge 1 commit into
IABTechLab:mainfrom
KshitijKaushik123:fix/rust-build-and-docs

Conversation

@KshitijKaushik123

Copy link
Copy Markdown

Summary

Ran into a few issues while trying to build the project from scratch following the README, figured I'd clean them up.

Cargo.toml casing

rust/cargo.toml needs to be rust/Cargo.toml — Cargo is case-sensitive about this and refuses to recognize the manifest otherwise. Running make build-rust fails with cargo.toml is not a Cargo.toml. Simple rename fixes it.

Missing Makefile targets

The README references several targets that don't exist in the Makefile: deps, generate, docker-build, docker-run-all, docker-compose-up, run-dev, test-coverage, grpc-test, mcp-test, health-check, and the sample-* targets. This is confusing for anyone trying to follow the getting-started instructions.

I added the straightforward ones that make sense as Makefile wrappers:

  • deps — runs go mod download and prints a reminder about the protoc plugins
  • generate — wraps scripts/generate.sh
  • docker-build / docker-run-all / docker-compose-up / docker-compose-down — standard Docker workflow

README updates

Updated the build instructions to reflect what's actually available. Removed references to non-existent targets and added a section for the Rust implementation. Replaced the testing section with actual working commands (grpcurl, curl for health checks) instead of referencing missing make targets.

Testing

  • make build succeeds
  • make build-rust succeeds after the Cargo.toml rename
  • Verified all new Makefile targets are syntactically correct
  • README instructions now match the actual project state

Closes #17

- Rename rust/cargo.toml to rust/Cargo.toml so Cargo recognizes it
  (was causing "cargo.toml is not a Cargo.toml" error on make build-rust)
- Add missing Makefile targets referenced in README: deps, generate,
  docker-build, docker-run-all, docker-compose-up, docker-compose-down
- Update README build instructions to match actual available targets
  and remove references to non-existent targets (run-dev, test-coverage,
  grpc-test, mcp-test, health-check, sample-*)
- Add Rust build/run instructions to README

Closes IABTechLab#17
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.

What is a correct way of building?

1 participant