@kreuzberg/kreuzcrawl-wasm 0.1.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +23 -0
- package/README.md +26 -0
- package/package.json +30 -0
- package/src/lib.rs +4768 -0
package/Cargo.toml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "kreuzcrawl-wasm"
|
|
3
|
+
version = "0.1.0-rc.2"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
license = "Elastic-2.0"
|
|
6
|
+
description = "High-performance web crawling engine"
|
|
7
|
+
repository = "https://github.com/kreuzberg-dev/kreuzcrawl"
|
|
8
|
+
|
|
9
|
+
[package.metadata.wasm-pack.profile.release]
|
|
10
|
+
wasm-opt = false
|
|
11
|
+
|
|
12
|
+
[package.metadata.cargo-machete]
|
|
13
|
+
ignored = ["wasm-bindgen-futures"]
|
|
14
|
+
|
|
15
|
+
[lib]
|
|
16
|
+
crate-type = ["cdylib"]
|
|
17
|
+
|
|
18
|
+
[dependencies]
|
|
19
|
+
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
20
|
+
kreuzcrawl = { path = "../kreuzcrawl", default-features = false }
|
|
21
|
+
serde-wasm-bindgen = "0.6"
|
|
22
|
+
wasm-bindgen = "0.2"
|
|
23
|
+
wasm-bindgen-futures = "0.4"
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# kreuzcrawl - WebAssembly Bindings
|
|
2
|
+
|
|
3
|
+
High-performance web crawling engine
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install kreuzcrawl-wasm
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import init from 'kreuzcrawl-wasm';
|
|
15
|
+
|
|
16
|
+
await init();
|
|
17
|
+
// TODO: add usage example
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Documentation
|
|
21
|
+
|
|
22
|
+
For full documentation, see the [kreuzcrawl repository](https://github.com/kreuzberg-dev/kreuzcrawl).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
See the [LICENSE](https://github.com/kreuzberg-dev/kreuzcrawl/blob/main/LICENSE) file in the root repository.
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kreuzberg/kreuzcrawl-wasm",
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Kreuzcrawl WASM bindings for document intelligence",
|
|
6
|
+
"license": "Elastic-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/kreuzberg-dev/kreuzcrawl",
|
|
10
|
+
"directory": "crates/kreuzcrawl-wasm"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "wasm-pack build --target nodejs --out-dir pkg/nodejs",
|
|
15
|
+
"build:ci": "wasm-pack build --release --target nodejs --out-dir pkg/nodejs",
|
|
16
|
+
"build:wasm:web": "wasm-pack build --release --target web --out-dir pkg/web",
|
|
17
|
+
"build:wasm:bundler": "wasm-pack build --release --target bundler --out-dir pkg/bundler",
|
|
18
|
+
"build:wasm:nodejs": "wasm-pack build --release --target nodejs --out-dir pkg/nodejs",
|
|
19
|
+
"build:wasm:deno": "wasm-pack build --release --target deno --out-dir pkg/deno",
|
|
20
|
+
"build:all": "npm run build:wasm:web && npm run build:wasm:bundler && npm run build:wasm:nodejs && npm run build:wasm:deno",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test:watch": "vitest watch",
|
|
23
|
+
"test:coverage": "vitest run --coverage",
|
|
24
|
+
"lint": "biome check typescript",
|
|
25
|
+
"lint:fix": "biome check --write typescript",
|
|
26
|
+
"format": "biome format --write typescript",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"clean": "rm -rf pkg dist"
|
|
29
|
+
}
|
|
30
|
+
}
|