Skip to content

Incremental engine for long horizon agents 🌟 Star if you like it!

721 B
Raw Blame
#!/usr/bin/env bash
# Fails if the cocoindex Rust SDK has any pyo3 in its normal dependency tree.
# The SDK must stay PyO3-free so downstream consumers don't transitively
# pull in Python bindings. The PyO3 bindings live in rust/py / rust/py_utils,
# which are NOT reachable from rust/sdk/cocoindex.
set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"

# `--target all` takes in every platform's dependencies, so one run on any
# platform covers all of them.
if cargo tree -p cocoindex -e normal --target all | grep -q pyo3; then
  echo "ERROR: cocoindex SDK depends on pyo3 (must stay PyO3-free)" >&2
  cargo tree -p cocoindex -e normal --target all | grep pyo3 >&2 || true
  exit 1
fi