Skip to content

Commit 8391601

Browse files
committed
Add comprehensive WASM API with grid-based functions, serde serialization, and bump version to 0.2.0
1 parent 81c379a commit 8391601

7 files changed

Lines changed: 342 additions & 112 deletions

File tree

Cargo.lock

Lines changed: 46 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ sodo-py = { path = "sodo-py" }
1111
sodo-wasm = { path = "sodo-wasm" }
1212

1313
clap = { version = "4.5", features = ["derive"] }
14+
getrandom = { version = "0.3", features = ["wasm_js"] }
15+
js-sys = "0.3"
1416
pyo3 = "^0.27"
1517
rand = "0.9.2"
1618
serde = { version = "1.0", features = ["derive"] }
19+
serde_json = "1.0"
20+
serde-wasm-bindgen = "0.6"
1721
wasm-bindgen = "0.2"
18-
js-sys = "0.3"
1922

2023
[profile.release]
2124
lto = true # Enable Link Time Optimization to remove unused code

LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Qntx
3+
Copyright (c) 2025 Pyroth
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sodo-wasm/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
[package]
22
name = "sodo-wasm"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
edition = "2024"
55
authors = ["ΣX <gitctrlx@gmail.com>"]
6-
license = "MIT OR Apache-2.0"
6+
license = "MIT"
77
description = "WebAssembly bindings for sodo Sudoku library"
8-
homepage = "https://github.com/gitctrlx/sodo"
9-
repository = "https://github.com/gitctrlx/sodo"
8+
homepage = "https://github.com/pyroth/sodo"
9+
repository = "https://github.com/pyroth/sodo"
1010

1111
[lib]
1212
crate-type = ["cdylib", "rlib"]
1313

1414
[dependencies]
15+
js-sys = { workspace = true }
16+
getrandom = { workspace = true }
17+
serde = { workspace = true }
18+
serde_json = { workspace = true }
19+
serde-wasm-bindgen = { workspace = true }
1520
sodo = { workspace = true }
1621
wasm-bindgen = { workspace = true }
17-
js-sys = { workspace = true }
18-
getrandom = { version = "0.3", features = ["wasm_js"] }
1922

2023
[package.metadata.wasm-pack.profile.release]
2124
wasm-opt = false

sodo-wasm/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Pyroth
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)