ruvector/crates/ruvector-graph/src/lib.rs
rUv eef6778839 fix: Resolve CI build failures
- Format all Rust code with cargo fmt
- Generate Cargo.lock for security audit
- Add build:wasm script to graph-wasm package.json
- Update npm/package-lock.json

The CI was failing due to:
1. Rust code formatting check failures
2. Missing Cargo.lock file for cargo audit
3. Missing build:wasm script expected by graph-ci.yml workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 15:25:47 +00:00

61 lines
1.6 KiB
Rust

//! # RuVector Graph Database
//!
//! A high-performance graph database layer built on RuVector with Neo4j compatibility.
//! Supports property graphs, hypergraphs, Cypher queries, ACID transactions, and distributed queries.
pub mod cypher;
pub mod edge;
pub mod error;
pub mod executor;
pub mod graph;
pub mod hyperedge;
pub mod index;
pub mod node;
pub mod property;
pub mod storage;
pub mod transaction;
pub mod types;
// Performance optimization modules
pub mod optimization;
// Vector-graph hybrid query capabilities
pub mod hybrid;
// Distributed graph capabilities
#[cfg(feature = "distributed")]
pub mod distributed;
// Core type re-exports
pub use edge::{Edge, EdgeBuilder};
pub use error::{GraphError, Result};
pub use graph::GraphDB;
pub use hyperedge::{Hyperedge, HyperedgeBuilder, HyperedgeId};
pub use node::{Node, NodeBuilder};
#[cfg(feature = "storage")]
pub use storage::GraphStorage;
pub use transaction::{IsolationLevel, Transaction, TransactionManager};
pub use types::{EdgeId, Label, NodeId, Properties, PropertyValue, RelationType};
// Re-export hybrid query types when available
#[cfg(not(feature = "minimal"))]
pub use hybrid::{
EmbeddingConfig, GnnConfig, GraphNeuralEngine, HybridIndex, RagConfig, RagEngine,
SemanticSearch, VectorCypherParser,
};
// Re-export distributed types when feature is enabled
#[cfg(feature = "distributed")]
pub use distributed::{
Coordinator, Federation, GossipMembership, GraphReplication, GraphShard, RpcClient, RpcServer,
ShardCoordinator, ShardStrategy,
};
#[cfg(test)]
mod tests {
#[test]
fn test_placeholder() {
// Placeholder test to allow compilation
assert!(true);
}
}