Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
7854 changed files with 3522914 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
[package]
name = "ruvllm-wasm"
version = "2.0.0"
edition = "2021"
rust-version = "1.77"
license = "MIT"
authors = ["Ruvector Team"]
repository = "https://github.com/ruvnet/ruvector"
description = "WASM bindings for RuvLLM - browser-compatible LLM inference runtime with WebGPU acceleration"
keywords = ["wasm", "llm", "inference", "browser", "webgpu"]
categories = ["wasm", "api-bindings", "web-programming"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# WASM bindings
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"console",
"Performance",
"Window",
"Navigator",
# Web Workers support (enabled with parallel feature)
"Worker",
"WorkerOptions",
"WorkerType",
"Blob",
"BlobPropertyBag",
"Url",
"MessageEvent",
"ErrorEvent",
"DedicatedWorkerGlobalScope",
# WebGPU features (enabled with webgpu feature)
"Gpu",
"GpuAdapter",
"GpuAdapterInfo",
"GpuDevice",
"GpuQueue",
"GpuBuffer",
"GpuBufferDescriptor",
"GpuShaderModule",
"GpuShaderModuleDescriptor",
"GpuBindGroup",
"GpuBindGroupDescriptor",
"GpuBindGroupEntry",
"GpuBindGroupLayout",
"GpuBindGroupLayoutDescriptor",
"GpuBindGroupLayoutEntry",
"GpuBufferBinding",
"GpuBufferBindingLayout",
"GpuBufferBindingType",
"GpuComputePipeline",
"GpuComputePipelineDescriptor",
"GpuPipelineLayout",
"GpuPipelineLayoutDescriptor",
"GpuProgrammableStage",
"GpuCommandEncoder",
"GpuCommandEncoderDescriptor",
"GpuCommandBuffer",
"GpuComputePassEncoder",
"GpuComputePassDescriptor",
"gpu_map_mode",
"GpuRequestAdapterOptions",
"GpuDeviceDescriptor",
"GpuSupportedLimits",
] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde-wasm-bindgen = "0.6"
serde_json = "1.0"
# Error handling
console_error_panic_hook = { version = "0.1", optional = true }
# Byte casting for GPU buffers
bytemuck = { version = "1.14", features = ["derive"] }
[dev-dependencies]
wasm-bindgen-test = "0.3"
[features]
default = ["console_error_panic_hook"]
# WebGPU acceleration
webgpu = []
# Enable parallel inference with Web Workers
parallel = []
# Enable SIMD optimizations (requires wasm-simd target feature)
simd = []
# Enable intelligent features (HNSW Router, MicroLoRA, SONA)
intelligent = []