Skip to content

Commit e580755

Browse files
refactor: split math to separate crate
1 parent 47161ea commit e580755

80 files changed

Lines changed: 218 additions & 230 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ jobs:
2626
run: cargo fmt -- --check
2727

2828
- name: Check clippy lints
29-
run: cargo clippy --all-targets --all-features -- -D warnings
29+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
3030

3131
build:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v6
3535
- uses: ./.github/actions/setup-arnis-linux
3636

37+
- name: Run unit tests
38+
run: cargo test --workspace --all-targets --all-features
39+
3740
- name: Build (all targets, all features)
38-
run: cargo build --all-targets --all-features --release
41+
run: cargo build --workspace --all-targets --all-features --release
3942

40-
- name: Run unit tests
41-
run: cargo test --all-targets --all-features

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ overflow-checks = true
1616
default = ["gui"]
1717
gui = ["tauri", "tauri-plugin-log", "tauri-plugin-shell", "tokio", "rfd", "tauri-build"]
1818

19+
[workspace]
20+
members = ["crates/arnis-math"]
21+
1922
[build-dependencies]
2023
tauri-build = {version = "2", optional = true}
2124

2225
[dependencies]
26+
arnis-math = { path = "crates/arnis-math" }
2327
base64 = "0.22.1"
2428
bytes = "1"
2529
byteorder = "1.5"
@@ -32,18 +36,14 @@ fastnbt = "2.6.0"
3236
flate2 = "1.1"
3337
fnv = "1.0.7"
3438
fs2 = "0.4"
35-
geo = "0.33.1"
3639
gltf = { version = "1", default-features = false, features = ["import", "names", "utils", "KHR_materials_unlit"] }
3740
image = "0.25"
3841
include_dir = "0.7"
3942
indicatif = "0.18.4"
40-
itertools = "0.14.0"
41-
jsonwebtoken = "10.3.0"
4243
log = "0.4.27"
4344
mimalloc = "0.1"
4445
once_cell = "1.21.3"
4546
rand = { version = "0.9.3", features = ["std", "std_rng"] }
46-
rand_chacha = "0.9"
4747
rayon = "1.10.0"
4848
reqwest = { version = "0.13.1", features = ["blocking", "json", "query"] }
4949
rfd = { version = "0.17.2", optional = true }

crates/arnis-math/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "arnis-math"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
geo = "0.33.1"
8+
itertools = "0.15.0"
9+
rand = { version = "0.9.3", features = ["std", "std_rng"] }
10+
rand_chacha = "0.9"
11+
serde = { version = "1.0", features = ["derive"] }
File renamed without changes.

src/coordinate_system/cartesian/xzbbox/mod.rs renamed to crates/arnis-math/src/coordinate_system/cartesian/xzbbox/mod.rs

File renamed without changes.

src/coordinate_system/cartesian/xzbbox/rectangle.rs renamed to crates/arnis-math/src/coordinate_system/cartesian/xzbbox/rectangle.rs

File renamed without changes.

src/coordinate_system/cartesian/xzbbox/xzbbox_enum.rs renamed to crates/arnis-math/src/coordinate_system/cartesian/xzbbox/xzbbox_enum.rs

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)