You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This crate is the Rust/PyO3 extension for the `embed_anything` Python package. It is **not** built with plain `cargo`.
4
+
5
+
## Building
6
+
7
+
From the **repository root** (not from this directory), use maturin so the extension links against your Python installation:
8
+
9
+
```bash
10
+
# From repository root
11
+
maturin develop # build and install in the current environment (editable)
12
+
# or
13
+
maturin build # build a wheel
14
+
```
15
+
16
+
Or install the package (maturin is the build backend in `pyproject.toml`):
17
+
18
+
```bash
19
+
pip install -e .
20
+
```
21
+
22
+
Do **not** run `cargo build` in this directory or `cargo build -p embed_anything_python` from the root—the linker will fail with undefined Python symbols because cargo does not link libpython.
0 commit comments