Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
94
crates/ruvllm-wasm/Cargo.toml
Normal file
94
crates/ruvllm-wasm/Cargo.toml
Normal 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 = []
|
||||
Reference in New Issue
Block a user