Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 0 additions & 90 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions crates/weaver-core/src/embedder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,6 @@ pub enum EmbeddingError {
NotAvailable(String),
}

// gRPC-transport `From` impls. These live here (not in
// `weaver_spu::encoder::grpc_client_legacy`) because Rust's orphan rule requires foreign-on-
// foreign impls to be in the trait's crate. The cost is one tonic dep
// in `weaver-core`; the alternative (explicit `.map_err` at every `?`
// site in the gRPC client) is a larger maintenance burden than the
// dep. Removed in PR-3.A along with the gRPC client itself, when the
// last consumer (`weaver_spu::encoder::grpc_client_legacy`) goes away in PR-3.A.
impl From<tonic::transport::Error> for EmbeddingError {
fn from(e: tonic::transport::Error) -> Self {
EmbeddingError::Transport(Box::new(e))
}
}

impl From<tonic::Status> for EmbeddingError {
fn from(e: tonic::Status) -> Self {
EmbeddingError::Transport(Box::new(e))
}
}

/// Backend-agnostic embedding service.
///
/// Implementations:
Expand Down
8 changes: 0 additions & 8 deletions crates/weaver-database/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ tracing.workspace = true
anyhow.workspace = true
thiserror.workspace = true

# gRPC / Protobuf
tonic.workspace = true
prost.workspace = true
prost-types.workspace = true

# Encoding
base64.workspace = true
urlencoding.workspace = true
Expand All @@ -56,9 +51,6 @@ syn.workspace = true
sha2.workspace = true
proc-macro2.workspace = true

[build-dependencies]
tonic-build.workspace = true

[dev-dependencies]
tempfile.workspace = true
tokio-stream.workspace = true
29 changes: 0 additions & 29 deletions crates/weaver-database/build.rs

This file was deleted.

10 changes: 0 additions & 10 deletions crates/weaver-database/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,5 @@ pub mod code;
pub mod config;
pub mod db;
pub mod graph;
// `persephone` (the embedding gRPC client) moved to
// `weaver-embedding::grpc_client` per
// `embedder-oxidization-Spec.md` §5.1 (issue #166 / sprint
// Block A.5). External consumers import from
// `weaver_spu::encoder::grpc_client_legacy` and `weaver_spu::proto::embedding`.
// `weaver-database`'s `proto` module continues to generate
// embedding-service types for backward compat with internal
// proto-validation tests; a future cleanup PR removes the
// duplication once all consumers migrate.
pub mod proto;

pub use config::HadesConfig;
25 changes: 0 additions & 25 deletions crates/weaver-database/src/proto.rs

This file was deleted.

Loading