feat: initial tools service with document scanner, image & PDF tools
Self-hosted document scanner and media processing tools. - Rust Axum gateway + worker pool with NATS JetStream - Next.js 16 frontend with shadcn/ui - Scanner pipeline: edge detection, warp, binarization, OCR - Image tools: compress, resize, convert - PDF tools: merge, split, compress - CI/CD with Docker multi-stage build Co-Authored-By: Kilo <kilo@kilo.ai>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "tools-wasm"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
wasm-bindgen = "0.2"
|
||||
image.workspace = true
|
||||
console_error_panic_hook = "0.1"
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
# Skip wasm crate from default cargo check
|
||||
# Full build requires: wasm-pack build --target web
|
||||
@@ -0,0 +1,18 @@
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
/// Placeholder for WASM image processing.
|
||||
/// Full implementation in Phase 2.2.
|
||||
#[wasm_bindgen]
|
||||
pub fn greet() -> String {
|
||||
"tools-wasm: ready".to_string()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_greet() {
|
||||
assert_eq!(greet(), "tools-wasm: ready");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user