Single edge crate (#8173)

* Fixups of amalgamator

Fix issues that break `qdrant-edge` build process:
- `use … as segment;` - this causes `ast-grep` rules to replace wrong
  paths. So, rename to avoid collisions.
- `#[macro_use]` and `extern crate` required be in the top-level
  `lib.rs`.
- `format!("…", crate::something::…)` - `ast-grep` can't fix paths
  inside macros. Fixed by moving `crate::something::…` out of the macro.

* Add lib/edge/publish workspace and amalgamation script

* Move `lib/edge/examples` into `lib/edge/publish/` workspace

And fix them to use the generated `qdrant-edge` crate.

* Add github workflow

* Cleanup `qdrant-edge` public API

Removes empty modules. Checked by `cargo doc`.
This commit is contained in:
xzfc
2026-02-24 16:43:59 +00:00
committed by generall
parent e2b6ad14d4
commit 3fa476865b
17 changed files with 448 additions and 63 deletions

View File

@@ -4,7 +4,7 @@ use std::mem;
use bytemuck::TransparentWrapper;
use derive_more::Into;
use edge::info::ShardInfo;
use edge::ShardInfo;
use pyo3::prelude::*;
use segment::json_path::JsonPath;
use segment::types::PayloadIndexInfo;