Merge branch 'fix/ci-gitlab-saas-runners'
@@ -0,0 +1,3 @@
1
2
*.sh text eol=lf
3
*.ps1 text eol=crlf
@@ -0,0 +1,3 @@1
2
*.sh text eol=lf3
*.ps1 text eol=crlf@@ -1,4 +1,4 @@
1
# posprint — GitLab CI/CD
1
# posprint — GitLab CI/CD (GitLab.com SaaS runners)
2
2
# Builds and tests on every push; publishes Windows, Debian, and Arch releases on tags.
3
3
4
4
stages:
@@ -10,28 +10,41 @@ variables:
10
10
CARGO_TERM_COLOR: always
11
11
RUST_BACKTRACE: "1"
12
12
13
# Linux Docker jobs: untagged → saas-linux-small-amd64 by default.
13
14
.default_rust:
14
image: rust:1.85-bookworm
15
image: rust:1.96-bookworm
15
16
before_script:
16
17
- rustc --version
17
18
- cargo --version
18
19
20
# Windows SaaS runner (PowerShell). Rust is not preinstalled — install via rustup.
21
.windows_saas:
22
tags:
23
- saas-windows-medium-amd64
24
before_script:
25
- |
26
if (-not (Get-Command rustc -ErrorAction SilentlyContinue)) {
27
Write-Host "Installing Rust via rustup..."
28
Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
29
.\rustup-init.exe -y --default-toolchain stable --profile minimal
30
Remove-Item rustup-init.exe
31
}
32
$env:Path = "$env:USERPROFILE\.cargo\bin;$env:Path"
33
rustc --version
34
cargo --version
35
19
36
test:linux:
20
37
extends: .default_rust
21
38
stage: test
22
39
script:
23
40
- apt-get update -qq
24
41
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
25
libxkbcommon-dev libssl-dev pkg-config
42
libxkbcommon-dev libssl-dev libudev-dev pkg-config
26
43
- cargo test --verbose
27
44
28
45
test:windows:
46
extends: .windows_saas
29
47
stage: test
30
tags:
31
- windows
32
- shell
33
before_script:
34
- rustup show
35
48
script:
36
49
- cargo test --verbose
37
50
@@ -43,7 +56,7 @@ build:linux-deb:
43
56
before_script:
44
57
- apt-get update -qq
45
58
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
46
libxkbcommon-dev libssl-dev pkg-config dpkg-dev
59
libxkbcommon-dev libssl-dev libudev-dev pkg-config dpkg-dev
47
60
- cargo install cargo-deb --locked
48
61
script:
49
62
- cargo deb
@@ -64,6 +77,7 @@ build:linux-arch:
64
77
- pacman -Syu --noconfirm
65
78
- pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus-libs
66
79
wayland libx11 fontconfig freetype2 libglvnd git rsync
80
- rustc --version
67
81
- export PKGVER="${CI_COMMIT_TAG#v}"
68
82
- sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
69
83
- cd packaging/arch
@@ -77,16 +91,14 @@ build:linux-arch:
77
91
expire_in: 1 year
78
92
79
93
build:windows:
94
extends: .windows_saas
80
95
stage: build
81
tags:
82
- windows
83
- shell
84
96
rules:
85
97
- if: $CI_COMMIT_TAG
86
98
script:
87
99
- cargo build --release
88
- mkdir dist
89
- cp target/release/posprint.exe dist/
100
- New-Item -ItemType Directory -Force -Path dist | Out-Null
101
- Copy-Item target\release\posprint.exe dist\
90
102
artifacts:
91
103
name: "posprint-windows-$CI_COMMIT_TAG"
92
104
paths:
@@ -1,4 +1,4 @@1
# posprint — GitLab CI/CD
1
# posprint — GitLab CI/CD (GitLab.com SaaS runners)
2
# Builds and tests on every push; publishes Windows, Debian, and Arch releases on tags.
2
# Builds and tests on every push; publishes Windows, Debian, and Arch releases on tags.
3
3
4
stages:
4
stages:
@@ -10,28 +10,41 @@ variables:10
CARGO_TERM_COLOR: always
10
CARGO_TERM_COLOR: always
11
RUST_BACKTRACE: "1"
11
RUST_BACKTRACE: "1"
12
12
13
# Linux Docker jobs: untagged → saas-linux-small-amd64 by default.
13
.default_rust:
14
.default_rust:
14
image: rust:1.85-bookworm
15
image: rust:1.96-bookworm
15
before_script:
16
before_script:
16
- rustc --version
17
- rustc --version
17
- cargo --version
18
- cargo --version
18
19
20
# Windows SaaS runner (PowerShell). Rust is not preinstalled — install via rustup.
21
.windows_saas:
22
tags:
23
- saas-windows-medium-amd64
24
before_script:
25
- |
26
if (-not (Get-Command rustc -ErrorAction SilentlyContinue)) {
27
Write-Host "Installing Rust via rustup..."
28
Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
29
.\rustup-init.exe -y --default-toolchain stable --profile minimal
30
Remove-Item rustup-init.exe
31
}
32
$env:Path = "$env:USERPROFILE\.cargo\bin;$env:Path"
33
rustc --version
34
cargo --version
35
19
test:linux:
36
test:linux:
20
extends: .default_rust
37
extends: .default_rust
21
stage: test
38
stage: test
22
script:
39
script:
23
- apt-get update -qq
40
- apt-get update -qq
24
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
41
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
25
libxkbcommon-dev libssl-dev pkg-config
42
libxkbcommon-dev libssl-dev libudev-dev pkg-config
26
- cargo test --verbose
43
- cargo test --verbose
27
44
28
test:windows:
45
test:windows:
46
extends: .windows_saas
29
stage: test
47
stage: test
30
tags:
31
- windows
32
- shell
33
before_script:
34
- rustup show
35
script:
48
script:
36
- cargo test --verbose
49
- cargo test --verbose
37
50
@@ -43,7 +56,7 @@ build:linux-deb:43
before_script:
56
before_script:
44
- apt-get update -qq
57
- apt-get update -qq
45
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
58
- apt-get install -y -qq libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
46
libxkbcommon-dev libssl-dev pkg-config dpkg-dev
59
libxkbcommon-dev libssl-dev libudev-dev pkg-config dpkg-dev
47
- cargo install cargo-deb --locked
60
- cargo install cargo-deb --locked
48
script:
61
script:
49
- cargo deb
62
- cargo deb
@@ -64,6 +77,7 @@ build:linux-arch:64
- pacman -Syu --noconfirm
77
- pacman -Syu --noconfirm
65
- pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus-libs
78
- pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus-libs
66
wayland libx11 fontconfig freetype2 libglvnd git rsync
79
wayland libx11 fontconfig freetype2 libglvnd git rsync
80
- rustc --version
67
- export PKGVER="${CI_COMMIT_TAG#v}"
81
- export PKGVER="${CI_COMMIT_TAG#v}"
68
- sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
82
- sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
69
- cd packaging/arch
83
- cd packaging/arch
@@ -77,16 +91,14 @@ build:linux-arch:77
expire_in: 1 year
91
expire_in: 1 year
78
92
79
build:windows:
93
build:windows:
94
extends: .windows_saas
80
stage: build
95
stage: build
81
tags:
82
- windows
83
- shell
84
rules:
96
rules:
85
- if: $CI_COMMIT_TAG
97
- if: $CI_COMMIT_TAG
86
script:
98
script:
87
- cargo build --release
99
- cargo build --release
88
- mkdir dist
100
- New-Item -ItemType Directory -Force -Path dist | Out-Null
89
- cp target/release/posprint.exe dist/
101
- Copy-Item target\release\posprint.exe dist\
90
artifacts:
102
artifacts:
91
name: "posprint-windows-$CI_COMMIT_TAG"
103
name: "posprint-windows-$CI_COMMIT_TAG"
92
paths:
104
paths:
@@ -31,6 +31,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
31
31
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
32
32
dependencies = [
33
33
"cfg-if",
34
"getrandom 0.3.4",
34
35
"once_cell",
35
36
"version_check",
36
37
"zerocopy",
@@ -68,7 +69,7 @@ dependencies = [
68
69
"log",
69
70
"ndk",
70
71
"ndk-context",
71
"ndk-sys",
72
"ndk-sys 0.6.0+11769913",
72
73
"num_enum",
73
74
"thiserror 2.0.18",
74
75
]
@@ -187,6 +188,12 @@ version = "0.7.8"
187
188
source = "registry+https://github.com/rust-lang/crates.io-index"
188
189
checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
189
190
191
[[package]]
192
name = "as-raw-xcb-connection"
193
version = "1.0.1"
194
source = "registry+https://github.com/rust-lang/crates.io-index"
195
checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
196
190
197
[[package]]
191
198
name = "as-slice"
192
199
version = "0.2.1"
@@ -196,6 +203,15 @@ dependencies = [
196
203
"stable_deref_trait",
197
204
]
198
205
206
[[package]]
207
name = "ash"
208
version = "0.38.0+1.3.281"
209
source = "registry+https://github.com/rust-lang/crates.io-index"
210
checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
211
dependencies = [
212
"libloading",
213
]
214
199
215
[[package]]
200
216
name = "ashpd"
201
217
version = "0.11.1"
@@ -435,6 +451,21 @@ dependencies = [
435
451
"image",
436
452
]
437
453
454
[[package]]
455
name = "bit-set"
456
version = "0.8.0"
457
source = "registry+https://github.com/rust-lang/crates.io-index"
458
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
459
dependencies = [
460
"bit-vec",
461
]
462
463
[[package]]
464
name = "bit-vec"
465
version = "0.8.0"
466
source = "registry+https://github.com/rust-lang/crates.io-index"
467
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
468
438
469
[[package]]
439
470
name = "bit_field"
440
471
version = "0.10.3"
@@ -452,6 +483,9 @@ name = "bitflags"
452
483
version = "2.13.0"
453
484
source = "registry+https://github.com/rust-lang/crates.io-index"
454
485
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
486
dependencies = [
487
"serde_core",
488
]
455
489
456
490
[[package]]
457
491
name = "bitstream-io"
@@ -462,6 +496,12 @@ dependencies = [
462
496
"no_std_io2",
463
497
]
464
498
499
[[package]]
500
name = "block"
501
version = "0.1.6"
502
source = "registry+https://github.com/rust-lang/crates.io-index"
503
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
504
465
505
[[package]]
466
506
name = "block2"
467
507
version = "0.5.1"
@@ -570,6 +610,18 @@ dependencies = [
570
610
"tracing",
571
611
]
572
612
613
[[package]]
614
name = "calloop-wayland-source"
615
version = "0.3.0"
616
source = "registry+https://github.com/rust-lang/crates.io-index"
617
checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
618
dependencies = [
619
"calloop 0.13.0",
620
"rustix 0.38.44",
621
"wayland-backend",
622
"wayland-client",
623
]
624
573
625
[[package]]
574
626
name = "calloop-wayland-source"
575
627
version = "0.4.1"
@@ -675,6 +727,16 @@ dependencies = [
675
727
"error-code",
676
728
]
677
729
730
[[package]]
731
name = "codespan-reporting"
732
version = "0.11.1"
733
source = "registry+https://github.com/rust-lang/crates.io-index"
734
checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
735
dependencies = [
736
"termcolor",
737
"unicode-width 0.1.14",
738
]
739
678
740
[[package]]
679
741
name = "color_quant"
680
742
version = "1.1.0"
@@ -881,6 +943,7 @@ dependencies = [
881
943
"bytemuck",
882
944
"document-features",
883
945
"egui",
946
"egui-wgpu",
884
947
"egui-winit",
885
948
"egui_glow",
886
949
"glow",
@@ -921,6 +984,26 @@ dependencies = [
921
984
"profiling",
922
985
]
923
986
987
[[package]]
988
name = "egui-wgpu"
989
version = "0.31.1"
990
source = "registry+https://github.com/rust-lang/crates.io-index"
991
checksum = "d319dfef570f699b6e9114e235e862a2ddcf75f0d1a061de9e1328d92146d820"
992
dependencies = [
993
"ahash",
994
"bytemuck",
995
"document-features",
996
"egui",
997
"epaint",
998
"log",
999
"profiling",
1000
"thiserror 1.0.69",
1001
"type-map",
1002
"web-time",
1003
"wgpu",
1004
"winit",
1005
]
1006
924
1007
[[package]]
925
1008
name = "egui-winit"
926
1009
version = "0.31.1"
@@ -955,6 +1038,7 @@ dependencies = [
955
1038
"profiling",
956
1039
"wasm-bindgen",
957
1040
"web-sys",
1041
"winit",
958
1042
]
959
1043
960
1044
[[package]]
@@ -1140,6 +1224,12 @@ dependencies = [
1140
1224
"miniz_oxide",
1141
1225
]
1142
1226
1227
[[package]]
1228
name = "foldhash"
1229
version = "0.1.5"
1230
source = "registry+https://github.com/rust-lang/crates.io-index"
1231
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
1232
1143
1233
[[package]]
1144
1234
name = "foreign-types"
1145
1235
version = "0.5.0"
@@ -1258,7 +1348,7 @@ version = "0.2.24"
1258
1348
source = "registry+https://github.com/rust-lang/crates.io-index"
1259
1349
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
1260
1350
dependencies = [
1261
"unicode-width",
1351
"unicode-width 0.2.2",
1262
1352
]
1263
1353
1264
1354
[[package]]
@@ -1328,6 +1418,7 @@ dependencies = [
1328
1418
"cgl",
1329
1419
"dispatch2",
1330
1420
"glutin_egl_sys",
1421
"glutin_glx_sys",
1331
1422
"glutin_wgl_sys",
1332
1423
"libloading",
1333
1424
"objc2 0.6.4",
@@ -1336,7 +1427,9 @@ dependencies = [
1336
1427
"objc2-foundation 0.3.2",
1337
1428
"once_cell",
1338
1429
"raw-window-handle",
1430
"wayland-sys",
1339
1431
"windows-sys 0.52.0",
1432
"x11-dl",
1340
1433
]
1341
1434
1342
1435
[[package]]
@@ -1361,6 +1454,16 @@ dependencies = [
1361
1454
"windows-sys 0.52.0",
1362
1455
]
1363
1456
1457
[[package]]
1458
name = "glutin_glx_sys"
1459
version = "0.6.1"
1460
source = "registry+https://github.com/rust-lang/crates.io-index"
1461
checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185"
1462
dependencies = [
1463
"gl_generator",
1464
"x11-dl",
1465
]
1466
1364
1467
[[package]]
1365
1468
name = "glutin_wgl_sys"
1366
1469
version = "0.6.1"
@@ -1370,6 +1473,45 @@ dependencies = [
1370
1473
"gl_generator",
1371
1474
]
1372
1475
1476
[[package]]
1477
name = "gpu-alloc"
1478
version = "0.6.2"
1479
source = "registry+https://github.com/rust-lang/crates.io-index"
1480
checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9"
1481
dependencies = [
1482
"bitflags 2.13.0",
1483
"gpu-alloc-types",
1484
]
1485
1486
[[package]]
1487
name = "gpu-alloc-types"
1488
version = "0.3.1"
1489
source = "registry+https://github.com/rust-lang/crates.io-index"
1490
checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058"
1491
dependencies = [
1492
"bitflags 2.13.0",
1493
]
1494
1495
[[package]]
1496
name = "gpu-descriptor"
1497
version = "0.3.2"
1498
source = "registry+https://github.com/rust-lang/crates.io-index"
1499
checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
1500
dependencies = [
1501
"bitflags 2.13.0",
1502
"gpu-descriptor-types",
1503
"hashbrown 0.15.5",
1504
]
1505
1506
[[package]]
1507
name = "gpu-descriptor-types"
1508
version = "0.2.0"
1509
source = "registry+https://github.com/rust-lang/crates.io-index"
1510
checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
1511
dependencies = [
1512
"bitflags 2.13.0",
1513
]
1514
1373
1515
[[package]]
1374
1516
name = "half"
1375
1517
version = "2.7.1"
@@ -1381,6 +1523,15 @@ dependencies = [
1381
1523
"zerocopy",
1382
1524
]
1383
1525
1526
[[package]]
1527
name = "hashbrown"
1528
version = "0.15.5"
1529
source = "registry+https://github.com/rust-lang/crates.io-index"
1530
checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
1531
dependencies = [
1532
"foldhash",
1533
]
1534
1384
1535
[[package]]
1385
1536
name = "hashbrown"
1386
1537
version = "0.17.1"
@@ -1405,6 +1556,12 @@ version = "0.4.3"
1405
1556
source = "registry+https://github.com/rust-lang/crates.io-index"
1406
1557
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1407
1558
1559
[[package]]
1560
name = "hexf-parse"
1561
version = "0.2.1"
1562
source = "registry+https://github.com/rust-lang/crates.io-index"
1563
checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
1564
1408
1565
[[package]]
1409
1566
name = "iana-time-zone"
1410
1567
version = "0.1.65"
@@ -1417,7 +1574,7 @@ dependencies = [
1417
1574
"js-sys",
1418
1575
"log",
1419
1576
"wasm-bindgen",
1420
"windows-core",
1577
"windows-core 0.62.2",
1421
1578
]
1422
1579
1423
1580
[[package]]
@@ -1589,7 +1746,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1589
1746
checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
1590
1747
dependencies = [
1591
1748
"equivalent",
1592
"hashbrown",
1749
"hashbrown 0.17.1",
1593
1750
]
1594
1751
1595
1752
[[package]]
@@ -1713,6 +1870,17 @@ dependencies = [
1713
1870
"wasm-bindgen",
1714
1871
]
1715
1872
1873
[[package]]
1874
name = "khronos-egl"
1875
version = "6.0.0"
1876
source = "registry+https://github.com/rust-lang/crates.io-index"
1877
checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
1878
dependencies = [
1879
"libc",
1880
"libloading",
1881
"pkg-config",
1882
]
1883
1716
1884
[[package]]
1717
1885
name = "khronos_api"
1718
1886
version = "3.1.0"
@@ -1858,6 +2026,15 @@ dependencies = [
1858
2026
"libc",
1859
2027
]
1860
2028
2029
[[package]]
2030
name = "malloc_buf"
2031
version = "0.0.6"
2032
source = "registry+https://github.com/rust-lang/crates.io-index"
2033
checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
2034
dependencies = [
2035
"libc",
2036
]
2037
1861
2038
[[package]]
1862
2039
name = "maybe-rayon"
1863
2040
version = "0.1.1"
@@ -1892,6 +2069,21 @@ dependencies = [
1892
2069
"autocfg",
1893
2070
]
1894
2071
2072
[[package]]
2073
name = "metal"
2074
version = "0.31.0"
2075
source = "registry+https://github.com/rust-lang/crates.io-index"
2076
checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e"
2077
dependencies = [
2078
"bitflags 2.13.0",
2079
"block",
2080
"core-graphics-types",
2081
"foreign-types",
2082
"log",
2083
"objc",
2084
"paste",
2085
]
2086
1895
2087
[[package]]
1896
2088
name = "miniz_oxide"
1897
2089
version = "0.8.9"
@@ -1912,6 +2104,28 @@ dependencies = [
1912
2104
"pxfm",
1913
2105
]
1914
2106
2107
[[package]]
2108
name = "naga"
2109
version = "24.0.0"
2110
source = "registry+https://github.com/rust-lang/crates.io-index"
2111
checksum = "e380993072e52eef724eddfcde0ed013b0c023c3f0417336ed041aa9f076994e"
2112
dependencies = [
2113
"arrayvec",
2114
"bit-set",
2115
"bitflags 2.13.0",
2116
"cfg_aliases",
2117
"codespan-reporting",
2118
"hexf-parse",
2119
"indexmap",
2120
"log",
2121
"rustc-hash 1.1.0",
2122
"spirv",
2123
"strum",
2124
"termcolor",
2125
"thiserror 2.0.18",
2126
"unicode-xid",
2127
]
2128
1915
2129
[[package]]
1916
2130
name = "ndk"
1917
2131
version = "0.9.0"
@@ -1921,7 +2135,7 @@ dependencies = [
1921
2135
"bitflags 2.13.0",
1922
2136
"jni-sys 0.3.1",
1923
2137
"log",
1924
"ndk-sys",
2138
"ndk-sys 0.6.0+11769913",
1925
2139
"num_enum",
1926
2140
"raw-window-handle",
1927
2141
"thiserror 1.0.69",
@@ -1933,6 +2147,15 @@ version = "0.1.1"
1933
2147
source = "registry+https://github.com/rust-lang/crates.io-index"
1934
2148
checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
1935
2149
2150
[[package]]
2151
name = "ndk-sys"
2152
version = "0.5.0+25.2.9519653"
2153
source = "registry+https://github.com/rust-lang/crates.io-index"
2154
checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691"
2155
dependencies = [
2156
"jni-sys 0.3.1",
2157
]
2158
1936
2159
[[package]]
1937
2160
name = "ndk-sys"
1938
2161
version = "0.6.0+11769913"
@@ -2071,6 +2294,15 @@ dependencies = [
2071
2294
"syn",
2072
2295
]
2073
2296
2297
[[package]]
2298
name = "objc"
2299
version = "0.2.7"
2300
source = "registry+https://github.com/rust-lang/crates.io-index"
2301
checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
2302
dependencies = [
2303
"malloc_buf",
2304
]
2305
2074
2306
[[package]]
2075
2307
name = "objc-sys"
2076
2308
version = "0.3.5"
@@ -2365,6 +2597,15 @@ dependencies = [
2365
2597
"libredox",
2366
2598
]
2367
2599
2600
[[package]]
2601
name = "ordered-float"
2602
version = "4.6.0"
2603
source = "registry+https://github.com/rust-lang/crates.io-index"
2604
checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"
2605
dependencies = [
2606
"num-traits",
2607
]
2608
2368
2609
[[package]]
2369
2610
name = "ordered-stream"
2370
2611
version = "0.2.0"
@@ -2853,6 +3094,12 @@ dependencies = [
2853
3094
"bitflags 2.13.0",
2854
3095
]
2855
3096
3097
[[package]]
3098
name = "renderdoc-sys"
3099
version = "1.1.0"
3100
source = "registry+https://github.com/rust-lang/crates.io-index"
3101
checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
3102
2856
3103
[[package]]
2857
3104
name = "rfd"
2858
3105
version = "0.15.4"
@@ -2893,6 +3140,18 @@ dependencies = [
2893
3140
"libusb1-sys",
2894
3141
]
2895
3142
3143
[[package]]
3144
name = "rustc-hash"
3145
version = "1.1.0"
3146
source = "registry+https://github.com/rust-lang/crates.io-index"
3147
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
3148
3149
[[package]]
3150
name = "rustc-hash"
3151
version = "2.1.3"
3152
source = "registry+https://github.com/rust-lang/crates.io-index"
3153
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
3154
2896
3155
[[package]]
2897
3156
name = "rustc_version"
2898
3157
version = "0.4.1"
@@ -3102,6 +3361,31 @@ version = "1.15.2"
3102
3361
source = "registry+https://github.com/rust-lang/crates.io-index"
3103
3362
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
3104
3363
3364
[[package]]
3365
name = "smithay-client-toolkit"
3366
version = "0.19.2"
3367
source = "registry+https://github.com/rust-lang/crates.io-index"
3368
checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
3369
dependencies = [
3370
"bitflags 2.13.0",
3371
"calloop 0.13.0",
3372
"calloop-wayland-source 0.3.0",
3373
"cursor-icon",
3374
"libc",
3375
"log",
3376
"memmap2",
3377
"rustix 0.38.44",
3378
"thiserror 1.0.69",
3379
"wayland-backend",
3380
"wayland-client",
3381
"wayland-csd-frame",
3382
"wayland-cursor",
3383
"wayland-protocols",
3384
"wayland-protocols-wlr",
3385
"wayland-scanner",
3386
"xkeysym",
3387
]
3388
3105
3389
[[package]]
3106
3390
name = "smithay-client-toolkit"
3107
3391
version = "0.20.0"
@@ -3110,7 +3394,7 @@ checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
3110
3394
dependencies = [
3111
3395
"bitflags 2.13.0",
3112
3396
"calloop 0.14.4",
3113
"calloop-wayland-source",
3397
"calloop-wayland-source 0.4.1",
3114
3398
"cursor-icon",
3115
3399
"libc",
3116
3400
"log",
@@ -3136,7 +3420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
3136
3420
checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
3137
3421
dependencies = [
3138
3422
"libc",
3139
"smithay-client-toolkit",
3423
"smithay-client-toolkit 0.20.0",
3140
3424
"wayland-backend",
3141
3425
]
3142
3426
@@ -3149,6 +3433,15 @@ dependencies = [
3149
3433
"serde",
3150
3434
]
3151
3435
3436
[[package]]
3437
name = "spirv"
3438
version = "0.3.0+sdk-1.3.268.0"
3439
source = "registry+https://github.com/rust-lang/crates.io-index"
3440
checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"
3441
dependencies = [
3442
"bitflags 2.13.0",
3443
]
3444
3152
3445
[[package]]
3153
3446
name = "stable_deref_trait"
3154
3447
version = "1.2.1"
@@ -3167,6 +3460,28 @@ version = "0.11.1"
3167
3460
source = "registry+https://github.com/rust-lang/crates.io-index"
3168
3461
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
3169
3462
3463
[[package]]
3464
name = "strum"
3465
version = "0.26.3"
3466
source = "registry+https://github.com/rust-lang/crates.io-index"
3467
checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
3468
dependencies = [
3469
"strum_macros",
3470
]
3471
3472
[[package]]
3473
name = "strum_macros"
3474
version = "0.26.4"
3475
source = "registry+https://github.com/rust-lang/crates.io-index"
3476
checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
3477
dependencies = [
3478
"heck",
3479
"proc-macro2",
3480
"quote",
3481
"rustversion",
3482
"syn",
3483
]
3484
3170
3485
[[package]]
3171
3486
name = "syn"
3172
3487
version = "2.0.119"
@@ -3202,6 +3517,15 @@ dependencies = [
3202
3517
"windows-sys 0.61.2",
3203
3518
]
3204
3519
3520
[[package]]
3521
name = "termcolor"
3522
version = "1.4.1"
3523
source = "registry+https://github.com/rust-lang/crates.io-index"
3524
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
3525
dependencies = [
3526
"winapi-util",
3527
]
3528
3205
3529
[[package]]
3206
3530
name = "thiserror"
3207
3531
version = "1.0.69"
@@ -3343,6 +3667,15 @@ version = "0.25.1"
3343
3667
source = "registry+https://github.com/rust-lang/crates.io-index"
3344
3668
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
3345
3669
3670
[[package]]
3671
name = "type-map"
3672
version = "0.5.1"
3673
source = "registry+https://github.com/rust-lang/crates.io-index"
3674
checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90"
3675
dependencies = [
3676
"rustc-hash 2.1.3",
3677
]
3678
3346
3679
[[package]]
3347
3680
name = "uds_windows"
3348
3681
version = "1.2.1"
@@ -3381,12 +3714,24 @@ version = "1.13.3"
3381
3714
source = "registry+https://github.com/rust-lang/crates.io-index"
3382
3715
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
3383
3716
3717
[[package]]
3718
name = "unicode-width"
3719
version = "0.1.14"
3720
source = "registry+https://github.com/rust-lang/crates.io-index"
3721
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
3722
3384
3723
[[package]]
3385
3724
name = "unicode-width"
3386
3725
version = "0.2.2"
3387
3726
source = "registry+https://github.com/rust-lang/crates.io-index"
3388
3727
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
3389
3728
3729
[[package]]
3730
name = "unicode-xid"
3731
version = "0.2.6"
3732
source = "registry+https://github.com/rust-lang/crates.io-index"
3733
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
3734
3390
3735
[[package]]
3391
3736
name = "url"
3392
3737
version = "2.5.8"
@@ -3612,6 +3957,19 @@ dependencies = [
3612
3957
"wayland-scanner",
3613
3958
]
3614
3959
3960
[[package]]
3961
name = "wayland-protocols-plasma"
3962
version = "0.3.12"
3963
source = "registry+https://github.com/rust-lang/crates.io-index"
3964
checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"
3965
dependencies = [
3966
"bitflags 2.13.0",
3967
"wayland-backend",
3968
"wayland-client",
3969
"wayland-protocols",
3970
"wayland-scanner",
3971
]
3972
3615
3973
[[package]]
3616
3974
name = "wayland-protocols-wlr"
3617
3975
version = "0.3.12"
@@ -3690,6 +4048,109 @@ version = "0.1.12"
3690
4048
source = "registry+https://github.com/rust-lang/crates.io-index"
3691
4049
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
3692
4050
4051
[[package]]
4052
name = "wgpu"
4053
version = "24.0.5"
4054
source = "registry+https://github.com/rust-lang/crates.io-index"
4055
checksum = "6b0b3436f0729f6cdf2e6e9201f3d39dc95813fad61d826c1ed07918b4539353"
4056
dependencies = [
4057
"arrayvec",
4058
"bitflags 2.13.0",
4059
"cfg_aliases",
4060
"document-features",
4061
"js-sys",
4062
"log",
4063
"parking_lot",
4064
"profiling",
4065
"raw-window-handle",
4066
"smallvec",
4067
"static_assertions",
4068
"wasm-bindgen",
4069
"wasm-bindgen-futures",
4070
"web-sys",
4071
"wgpu-core",
4072
"wgpu-hal",
4073
"wgpu-types",
4074
]
4075
4076
[[package]]
4077
name = "wgpu-core"
4078
version = "24.0.5"
4079
source = "registry+https://github.com/rust-lang/crates.io-index"
4080
checksum = "7f0aa306497a238d169b9dc70659105b4a096859a34894544ca81719242e1499"
4081
dependencies = [
4082
"arrayvec",
4083
"bit-vec",
4084
"bitflags 2.13.0",
4085
"cfg_aliases",
4086
"document-features",
4087
"indexmap",
4088
"log",
4089
"naga",
4090
"once_cell",
4091
"parking_lot",
4092
"profiling",
4093
"raw-window-handle",
4094
"rustc-hash 1.1.0",
4095
"smallvec",
4096
"thiserror 2.0.18",
4097
"wgpu-hal",
4098
"wgpu-types",
4099
]
4100
4101
[[package]]
4102
name = "wgpu-hal"
4103
version = "24.0.4"
4104
source = "registry+https://github.com/rust-lang/crates.io-index"
4105
checksum = "f112f464674ca69f3533248508ee30cb84c67cf06c25ff6800685f5e0294e259"
4106
dependencies = [
4107
"android_system_properties",
4108
"arrayvec",
4109
"ash",
4110
"bitflags 2.13.0",
4111
"bytemuck",
4112
"cfg_aliases",
4113
"core-graphics-types",
4114
"glow",
4115
"glutin_wgl_sys",
4116
"gpu-alloc",
4117
"gpu-descriptor",
4118
"js-sys",
4119
"khronos-egl",
4120
"libc",
4121
"libloading",
4122
"log",
4123
"metal",
4124
"naga",
4125
"ndk-sys 0.5.0+25.2.9519653",
4126
"objc",
4127
"once_cell",
4128
"ordered-float",
4129
"parking_lot",
4130
"profiling",
4131
"raw-window-handle",
4132
"renderdoc-sys",
4133
"rustc-hash 1.1.0",
4134
"smallvec",
4135
"thiserror 2.0.18",
4136
"wasm-bindgen",
4137
"web-sys",
4138
"wgpu-types",
4139
"windows",
4140
]
4141
4142
[[package]]
4143
name = "wgpu-types"
4144
version = "24.0.0"
4145
source = "registry+https://github.com/rust-lang/crates.io-index"
4146
checksum = "50ac044c0e76c03a0378e7786ac505d010a873665e2d51383dcff8dd227dc69c"
4147
dependencies = [
4148
"bitflags 2.13.0",
4149
"js-sys",
4150
"log",
4151
"web-sys",
4152
]
4153
3693
4154
[[package]]
3694
4155
name = "winapi"
3695
4156
version = "0.3.9"
@@ -3721,17 +4182,51 @@ version = "0.4.0"
3721
4182
source = "registry+https://github.com/rust-lang/crates.io-index"
3722
4183
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
3723
4184
4185
[[package]]
4186
name = "windows"
4187
version = "0.58.0"
4188
source = "registry+https://github.com/rust-lang/crates.io-index"
4189
checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"
4190
dependencies = [
4191
"windows-core 0.58.0",
4192
"windows-targets 0.52.6",
4193
]
4194
4195
[[package]]
4196
name = "windows-core"
4197
version = "0.58.0"
4198
source = "registry+https://github.com/rust-lang/crates.io-index"
4199
checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
4200
dependencies = [
4201
"windows-implement 0.58.0",
4202
"windows-interface 0.58.0",
4203
"windows-result 0.2.0",
4204
"windows-strings 0.1.0",
4205
"windows-targets 0.52.6",
4206
]
4207
3724
4208
[[package]]
3725
4209
name = "windows-core"
3726
4210
version = "0.62.2"
3727
4211
source = "registry+https://github.com/rust-lang/crates.io-index"
3728
4212
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
3729
4213
dependencies = [
3730
"windows-implement",
3731
"windows-interface",
4214
"windows-implement 0.60.2",
4215
"windows-interface 0.59.3",
3732
4216
"windows-link",
3733
"windows-result",
3734
"windows-strings",
4217
"windows-result 0.4.1",
4218
"windows-strings 0.5.1",
4219
]
4220
4221
[[package]]
4222
name = "windows-implement"
4223
version = "0.58.0"
4224
source = "registry+https://github.com/rust-lang/crates.io-index"
4225
checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
4226
dependencies = [
4227
"proc-macro2",
4228
"quote",
4229
"syn",
3735
4230
]
3736
4231
3737
4232
[[package]]
@@ -3745,6 +4240,17 @@ dependencies = [
3745
4240
"syn",
3746
4241
]
3747
4242
4243
[[package]]
4244
name = "windows-interface"
4245
version = "0.58.0"
4246
source = "registry+https://github.com/rust-lang/crates.io-index"
4247
checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
4248
dependencies = [
4249
"proc-macro2",
4250
"quote",
4251
"syn",
4252
]
4253
3748
4254
[[package]]
3749
4255
name = "windows-interface"
3750
4256
version = "0.59.3"
@@ -3762,6 +4268,15 @@ version = "0.2.1"
3762
4268
source = "registry+https://github.com/rust-lang/crates.io-index"
3763
4269
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
3764
4270
4271
[[package]]
4272
name = "windows-result"
4273
version = "0.2.0"
4274
source = "registry+https://github.com/rust-lang/crates.io-index"
4275
checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
4276
dependencies = [
4277
"windows-targets 0.52.6",
4278
]
4279
3765
4280
[[package]]
3766
4281
name = "windows-result"
3767
4282
version = "0.4.1"
@@ -3771,6 +4286,16 @@ dependencies = [
3771
4286
"windows-link",
3772
4287
]
3773
4288
4289
[[package]]
4290
name = "windows-strings"
4291
version = "0.1.0"
4292
source = "registry+https://github.com/rust-lang/crates.io-index"
4293
checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
4294
dependencies = [
4295
"windows-result 0.2.0",
4296
"windows-targets 0.52.6",
4297
]
4298
3774
4299
[[package]]
3775
4300
name = "windows-strings"
3776
4301
version = "0.5.1"
@@ -3951,10 +4476,12 @@ version = "0.30.13"
3951
4476
source = "registry+https://github.com/rust-lang/crates.io-index"
3952
4477
checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"
3953
4478
dependencies = [
4479
"ahash",
3954
4480
"android-activity",
3955
4481
"atomic-waker",
3956
4482
"bitflags 2.13.0",
3957
4483
"block2 0.5.1",
4484
"bytemuck",
3958
4485
"calloop 0.13.0",
3959
4486
"cfg_aliases",
3960
4487
"concurrent-queue",
@@ -3964,24 +4491,33 @@ dependencies = [
3964
4491
"dpi",
3965
4492
"js-sys",
3966
4493
"libc",
4494
"memmap2",
3967
4495
"ndk",
3968
4496
"objc2 0.5.2",
3969
4497
"objc2-app-kit 0.2.2",
3970
4498
"objc2-foundation 0.2.2",
3971
4499
"objc2-ui-kit",
3972
4500
"orbclient",
4501
"percent-encoding",
3973
4502
"pin-project",
3974
4503
"raw-window-handle",
3975
4504
"redox_syscall 0.4.1",
3976
4505
"rustix 0.38.44",
4506
"smithay-client-toolkit 0.19.2",
3977
4507
"smol_str",
3978
4508
"tracing",
3979
4509
"unicode-segmentation",
3980
4510
"wasm-bindgen",
3981
4511
"wasm-bindgen-futures",
4512
"wayland-backend",
4513
"wayland-client",
4514
"wayland-protocols",
4515
"wayland-protocols-plasma",
3982
4516
"web-sys",
3983
4517
"web-time",
3984
4518
"windows-sys 0.52.0",
4519
"x11-dl",
4520
"x11rb",
3985
4521
"xkbcommon-dl",
3986
4522
]
3987
4523
@@ -4025,13 +4561,28 @@ version = "0.6.3"
4025
4561
source = "registry+https://github.com/rust-lang/crates.io-index"
4026
4562
checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
4027
4563
4564
[[package]]
4565
name = "x11-dl"
4566
version = "2.21.0"
4567
source = "registry+https://github.com/rust-lang/crates.io-index"
4568
checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
4569
dependencies = [
4570
"libc",
4571
"once_cell",
4572
"pkg-config",
4573
]
4574
4028
4575
[[package]]
4029
4576
name = "x11rb"
4030
4577
version = "0.13.2"
4031
4578
source = "registry+https://github.com/rust-lang/crates.io-index"
4032
4579
checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
4033
4580
dependencies = [
4581
"as-raw-xcb-connection",
4034
4582
"gethostname",
4583
"libc",
4584
"libloading",
4585
"once_cell",
4035
4586
"rustix 1.1.4",
4036
4587
"x11rb-protocol",
4037
4588
]
@@ -31,6 +31,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"31
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"31
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"32
dependencies = [32
dependencies = [33
"cfg-if",33
"cfg-if",34
"getrandom 0.3.4",34
"once_cell",35
"once_cell",35
"version_check",36
"version_check",36
"zerocopy",37
"zerocopy",@@ -68,7 +69,7 @@ dependencies = [68
"log",69
"log",69
"ndk",70
"ndk",70
"ndk-context",71
"ndk-context",71
"ndk-sys",72
"ndk-sys 0.6.0+11769913",72
"num_enum",73
"num_enum",73
"thiserror 2.0.18",74
"thiserror 2.0.18",74
]75
]@@ -187,6 +188,12 @@ version = "0.7.8"187
source = "registry+https://github.com/rust-lang/crates.io-index"188
source = "registry+https://github.com/rust-lang/crates.io-index"188
checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"189
checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"189
190
191
[[package]]192
name = "as-raw-xcb-connection"193
version = "1.0.1"194
source = "registry+https://github.com/rust-lang/crates.io-index"195
checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"196
190
[[package]]197
[[package]]191
name = "as-slice"198
name = "as-slice"192
version = "0.2.1"199
version = "0.2.1"@@ -196,6 +203,15 @@ dependencies = [196
"stable_deref_trait",203
"stable_deref_trait",197
]204
]198
205
206
[[package]]207
name = "ash"208
version = "0.38.0+1.3.281"209
source = "registry+https://github.com/rust-lang/crates.io-index"210
checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"211
dependencies = [212
"libloading",213
]214
199
[[package]]215
[[package]]200
name = "ashpd"216
name = "ashpd"201
version = "0.11.1"217
version = "0.11.1"@@ -435,6 +451,21 @@ dependencies = [435
"image",451
"image",436
]452
]437
453
454
[[package]]455
name = "bit-set"456
version = "0.8.0"457
source = "registry+https://github.com/rust-lang/crates.io-index"458
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"459
dependencies = [460
"bit-vec",461
]462
463
[[package]]464
name = "bit-vec"465
version = "0.8.0"466
source = "registry+https://github.com/rust-lang/crates.io-index"467
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"468
438
[[package]]469
[[package]]439
name = "bit_field"470
name = "bit_field"440
version = "0.10.3"471
version = "0.10.3"@@ -452,6 +483,9 @@ name = "bitflags"452
version = "2.13.0"483
version = "2.13.0"453
source = "registry+https://github.com/rust-lang/crates.io-index"484
source = "registry+https://github.com/rust-lang/crates.io-index"454
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"485
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"486
dependencies = [487
"serde_core",488
]455
489
456
[[package]]490
[[package]]457
name = "bitstream-io"491
name = "bitstream-io"@@ -462,6 +496,12 @@ dependencies = [462
"no_std_io2",496
"no_std_io2",463
]497
]464
498
499
[[package]]500
name = "block"501
version = "0.1.6"502
source = "registry+https://github.com/rust-lang/crates.io-index"503
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"504
465
[[package]]505
[[package]]466
name = "block2"506
name = "block2"467
version = "0.5.1"507
version = "0.5.1"@@ -570,6 +610,18 @@ dependencies = [570
"tracing",610
"tracing",571
]611
]572
612
613
[[package]]614
name = "calloop-wayland-source"615
version = "0.3.0"616
source = "registry+https://github.com/rust-lang/crates.io-index"617
checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"618
dependencies = [619
"calloop 0.13.0",620
"rustix 0.38.44",621
"wayland-backend",622
"wayland-client",623
]624
573
[[package]]625
[[package]]574
name = "calloop-wayland-source"626
name = "calloop-wayland-source"575
version = "0.4.1"627
version = "0.4.1"@@ -675,6 +727,16 @@ dependencies = [675
"error-code",727
"error-code",676
]728
]677
729
730
[[package]]731
name = "codespan-reporting"732
version = "0.11.1"733
source = "registry+https://github.com/rust-lang/crates.io-index"734
checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"735
dependencies = [736
"termcolor",737
"unicode-width 0.1.14",738
]739
678
[[package]]740
[[package]]679
name = "color_quant"741
name = "color_quant"680
version = "1.1.0"742
version = "1.1.0"@@ -881,6 +943,7 @@ dependencies = [881
"bytemuck",943
"bytemuck",882
"document-features",944
"document-features",883
"egui",945
"egui",946
"egui-wgpu",884
"egui-winit",947
"egui-winit",885
"egui_glow",948
"egui_glow",886
"glow",949
"glow",@@ -921,6 +984,26 @@ dependencies = [921
"profiling",984
"profiling",922
]985
]923
986
987
[[package]]988
name = "egui-wgpu"989
version = "0.31.1"990
source = "registry+https://github.com/rust-lang/crates.io-index"991
checksum = "d319dfef570f699b6e9114e235e862a2ddcf75f0d1a061de9e1328d92146d820"992
dependencies = [993
"ahash",994
"bytemuck",995
"document-features",996
"egui",997
"epaint",998
"log",999
"profiling",1000
"thiserror 1.0.69",1001
"type-map",1002
"web-time",1003
"wgpu",1004
"winit",1005
]1006
924
[[package]]1007
[[package]]925
name = "egui-winit"1008
name = "egui-winit"926
version = "0.31.1"1009
version = "0.31.1"@@ -955,6 +1038,7 @@ dependencies = [955
"profiling",1038
"profiling",956
"wasm-bindgen",1039
"wasm-bindgen",957
"web-sys",1040
"web-sys",1041
"winit",958
]1042
]959
1043
960
[[package]]1044
[[package]]@@ -1140,6 +1224,12 @@ dependencies = [1140
"miniz_oxide",1224
"miniz_oxide",1141
]1225
]1142
1226
1227
[[package]]1228
name = "foldhash"1229
version = "0.1.5"1230
source = "registry+https://github.com/rust-lang/crates.io-index"1231
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"1232
1143
[[package]]1233
[[package]]1144
name = "foreign-types"1234
name = "foreign-types"1145
version = "0.5.0"1235
version = "0.5.0"@@ -1258,7 +1348,7 @@ version = "0.2.24"1258
source = "registry+https://github.com/rust-lang/crates.io-index"1348
source = "registry+https://github.com/rust-lang/crates.io-index"1259
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"1349
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"1260
dependencies = [1350
dependencies = [1261
"unicode-width",1351
"unicode-width 0.2.2",1262
]1352
]1263
1353
1264
[[package]]1354
[[package]]@@ -1328,6 +1418,7 @@ dependencies = [1328
"cgl",1418
"cgl",1329
"dispatch2",1419
"dispatch2",1330
"glutin_egl_sys",1420
"glutin_egl_sys",1421
"glutin_glx_sys",1331
"glutin_wgl_sys",1422
"glutin_wgl_sys",1332
"libloading",1423
"libloading",1333
"objc2 0.6.4",1424
"objc2 0.6.4",@@ -1336,7 +1427,9 @@ dependencies = [1336
"objc2-foundation 0.3.2",1427
"objc2-foundation 0.3.2",1337
"once_cell",1428
"once_cell",1338
"raw-window-handle",1429
"raw-window-handle",1430
"wayland-sys",1339
"windows-sys 0.52.0",1431
"windows-sys 0.52.0",1432
"x11-dl",1340
]1433
]1341
1434
1342
[[package]]1435
[[package]]@@ -1361,6 +1454,16 @@ dependencies = [1361
"windows-sys 0.52.0",1454
"windows-sys 0.52.0",1362
]1455
]1363
1456
1457
[[package]]1458
name = "glutin_glx_sys"1459
version = "0.6.1"1460
source = "registry+https://github.com/rust-lang/crates.io-index"1461
checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185"1462
dependencies = [1463
"gl_generator",1464
"x11-dl",1465
]1466
1364
[[package]]1467
[[package]]1365
name = "glutin_wgl_sys"1468
name = "glutin_wgl_sys"1366
version = "0.6.1"1469
version = "0.6.1"@@ -1370,6 +1473,45 @@ dependencies = [1370
"gl_generator",1473
"gl_generator",1371
]1474
]1372
1475
1476
[[package]]1477
name = "gpu-alloc"1478
version = "0.6.2"1479
source = "registry+https://github.com/rust-lang/crates.io-index"1480
checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9"1481
dependencies = [1482
"bitflags 2.13.0",1483
"gpu-alloc-types",1484
]1485
1486
[[package]]1487
name = "gpu-alloc-types"1488
version = "0.3.1"1489
source = "registry+https://github.com/rust-lang/crates.io-index"1490
checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058"1491
dependencies = [1492
"bitflags 2.13.0",1493
]1494
1495
[[package]]1496
name = "gpu-descriptor"1497
version = "0.3.2"1498
source = "registry+https://github.com/rust-lang/crates.io-index"1499
checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"1500
dependencies = [1501
"bitflags 2.13.0",1502
"gpu-descriptor-types",1503
"hashbrown 0.15.5",1504
]1505
1506
[[package]]1507
name = "gpu-descriptor-types"1508
version = "0.2.0"1509
source = "registry+https://github.com/rust-lang/crates.io-index"1510
checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"1511
dependencies = [1512
"bitflags 2.13.0",1513
]1514
1373
[[package]]1515
[[package]]1374
name = "half"1516
name = "half"1375
version = "2.7.1"1517
version = "2.7.1"@@ -1381,6 +1523,15 @@ dependencies = [1381
"zerocopy",1523
"zerocopy",1382
]1524
]1383
1525
1526
[[package]]1527
name = "hashbrown"1528
version = "0.15.5"1529
source = "registry+https://github.com/rust-lang/crates.io-index"1530
checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"1531
dependencies = [1532
"foldhash",1533
]1534
1384
[[package]]1535
[[package]]1385
name = "hashbrown"1536
name = "hashbrown"1386
version = "0.17.1"1537
version = "0.17.1"@@ -1405,6 +1556,12 @@ version = "0.4.3"1405
source = "registry+https://github.com/rust-lang/crates.io-index"1556
source = "registry+https://github.com/rust-lang/crates.io-index"1406
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"1557
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"1407
1558
1559
[[package]]1560
name = "hexf-parse"1561
version = "0.2.1"1562
source = "registry+https://github.com/rust-lang/crates.io-index"1563
checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"1564
1408
[[package]]1565
[[package]]1409
name = "iana-time-zone"1566
name = "iana-time-zone"1410
version = "0.1.65"1567
version = "0.1.65"@@ -1417,7 +1574,7 @@ dependencies = [1417
"js-sys",1574
"js-sys",1418
"log",1575
"log",1419
"wasm-bindgen",1576
"wasm-bindgen",1420
"windows-core",1577
"windows-core 0.62.2",1421
]1578
]1422
1579
1423
[[package]]1580
[[package]]@@ -1589,7 +1746,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"1589
checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"1746
checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"1590
dependencies = [1747
dependencies = [1591
"equivalent",1748
"equivalent",1592
"hashbrown",1749
"hashbrown 0.17.1",1593
]1750
]1594
1751
1595
[[package]]1752
[[package]]@@ -1713,6 +1870,17 @@ dependencies = [1713
"wasm-bindgen",1870
"wasm-bindgen",1714
]1871
]1715
1872
1873
[[package]]1874
name = "khronos-egl"1875
version = "6.0.0"1876
source = "registry+https://github.com/rust-lang/crates.io-index"1877
checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"1878
dependencies = [1879
"libc",1880
"libloading",1881
"pkg-config",1882
]1883
1716
[[package]]1884
[[package]]1717
name = "khronos_api"1885
name = "khronos_api"1718
version = "3.1.0"1886
version = "3.1.0"@@ -1858,6 +2026,15 @@ dependencies = [1858
"libc",2026
"libc",1859
]2027
]1860
2028
2029
[[package]]2030
name = "malloc_buf"2031
version = "0.0.6"2032
source = "registry+https://github.com/rust-lang/crates.io-index"2033
checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"2034
dependencies = [2035
"libc",2036
]2037
1861
[[package]]2038
[[package]]1862
name = "maybe-rayon"2039
name = "maybe-rayon"1863
version = "0.1.1"2040
version = "0.1.1"@@ -1892,6 +2069,21 @@ dependencies = [1892
"autocfg",2069
"autocfg",1893
]2070
]1894
2071
2072
[[package]]2073
name = "metal"2074
version = "0.31.0"2075
source = "registry+https://github.com/rust-lang/crates.io-index"2076
checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e"2077
dependencies = [2078
"bitflags 2.13.0",2079
"block",2080
"core-graphics-types",2081
"foreign-types",2082
"log",2083
"objc",2084
"paste",2085
]2086
1895
[[package]]2087
[[package]]1896
name = "miniz_oxide"2088
name = "miniz_oxide"1897
version = "0.8.9"2089
version = "0.8.9"@@ -1912,6 +2104,28 @@ dependencies = [1912
"pxfm",2104
"pxfm",1913
]2105
]1914
2106
2107
[[package]]2108
name = "naga"2109
version = "24.0.0"2110
source = "registry+https://github.com/rust-lang/crates.io-index"2111
checksum = "e380993072e52eef724eddfcde0ed013b0c023c3f0417336ed041aa9f076994e"2112
dependencies = [2113
"arrayvec",2114
"bit-set",2115
"bitflags 2.13.0",2116
"cfg_aliases",2117
"codespan-reporting",2118
"hexf-parse",2119
"indexmap",2120
"log",2121
"rustc-hash 1.1.0",2122
"spirv",2123
"strum",2124
"termcolor",2125
"thiserror 2.0.18",2126
"unicode-xid",2127
]2128
1915
[[package]]2129
[[package]]1916
name = "ndk"2130
name = "ndk"1917
version = "0.9.0"2131
version = "0.9.0"@@ -1921,7 +2135,7 @@ dependencies = [1921
"bitflags 2.13.0",2135
"bitflags 2.13.0",1922
"jni-sys 0.3.1",2136
"jni-sys 0.3.1",1923
"log",2137
"log",1924
"ndk-sys",2138
"ndk-sys 0.6.0+11769913",1925
"num_enum",2139
"num_enum",1926
"raw-window-handle",2140
"raw-window-handle",1927
"thiserror 1.0.69",2141
"thiserror 1.0.69",@@ -1933,6 +2147,15 @@ version = "0.1.1"1933
source = "registry+https://github.com/rust-lang/crates.io-index"2147
source = "registry+https://github.com/rust-lang/crates.io-index"1934
checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"2148
checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"1935
2149
2150
[[package]]2151
name = "ndk-sys"2152
version = "0.5.0+25.2.9519653"2153
source = "registry+https://github.com/rust-lang/crates.io-index"2154
checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691"2155
dependencies = [2156
"jni-sys 0.3.1",2157
]2158
1936
[[package]]2159
[[package]]1937
name = "ndk-sys"2160
name = "ndk-sys"1938
version = "0.6.0+11769913"2161
version = "0.6.0+11769913"@@ -2071,6 +2294,15 @@ dependencies = [2071
"syn",2294
"syn",2072
]2295
]2073
2296
2297
[[package]]2298
name = "objc"2299
version = "0.2.7"2300
source = "registry+https://github.com/rust-lang/crates.io-index"2301
checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"2302
dependencies = [2303
"malloc_buf",2304
]2305
2074
[[package]]2306
[[package]]2075
name = "objc-sys"2307
name = "objc-sys"2076
version = "0.3.5"2308
version = "0.3.5"@@ -2365,6 +2597,15 @@ dependencies = [2365
"libredox",2597
"libredox",2366
]2598
]2367
2599
2600
[[package]]2601
name = "ordered-float"2602
version = "4.6.0"2603
source = "registry+https://github.com/rust-lang/crates.io-index"2604
checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"2605
dependencies = [2606
"num-traits",2607
]2608
2368
[[package]]2609
[[package]]2369
name = "ordered-stream"2610
name = "ordered-stream"2370
version = "0.2.0"2611
version = "0.2.0"@@ -2853,6 +3094,12 @@ dependencies = [2853
"bitflags 2.13.0",3094
"bitflags 2.13.0",2854
]3095
]2855
3096
3097
[[package]]3098
name = "renderdoc-sys"3099
version = "1.1.0"3100
source = "registry+https://github.com/rust-lang/crates.io-index"3101
checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"3102
2856
[[package]]3103
[[package]]2857
name = "rfd"3104
name = "rfd"2858
version = "0.15.4"3105
version = "0.15.4"@@ -2893,6 +3140,18 @@ dependencies = [2893
"libusb1-sys",3140
"libusb1-sys",2894
]3141
]2895
3142
3143
[[package]]3144
name = "rustc-hash"3145
version = "1.1.0"3146
source = "registry+https://github.com/rust-lang/crates.io-index"3147
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"3148
3149
[[package]]3150
name = "rustc-hash"3151
version = "2.1.3"3152
source = "registry+https://github.com/rust-lang/crates.io-index"3153
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"3154
2896
[[package]]3155
[[package]]2897
name = "rustc_version"3156
name = "rustc_version"2898
version = "0.4.1"3157
version = "0.4.1"@@ -3102,6 +3361,31 @@ version = "1.15.2"3102
source = "registry+https://github.com/rust-lang/crates.io-index"3361
source = "registry+https://github.com/rust-lang/crates.io-index"3103
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"3362
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"3104
3363
3364
[[package]]3365
name = "smithay-client-toolkit"3366
version = "0.19.2"3367
source = "registry+https://github.com/rust-lang/crates.io-index"3368
checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"3369
dependencies = [3370
"bitflags 2.13.0",3371
"calloop 0.13.0",3372
"calloop-wayland-source 0.3.0",3373
"cursor-icon",3374
"libc",3375
"log",3376
"memmap2",3377
"rustix 0.38.44",3378
"thiserror 1.0.69",3379
"wayland-backend",3380
"wayland-client",3381
"wayland-csd-frame",3382
"wayland-cursor",3383
"wayland-protocols",3384
"wayland-protocols-wlr",3385
"wayland-scanner",3386
"xkeysym",3387
]3388
3105
[[package]]3389
[[package]]3106
name = "smithay-client-toolkit"3390
name = "smithay-client-toolkit"3107
version = "0.20.0"3391
version = "0.20.0"@@ -3110,7 +3394,7 @@ checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"3110
dependencies = [3394
dependencies = [3111
"bitflags 2.13.0",3395
"bitflags 2.13.0",3112
"calloop 0.14.4",3396
"calloop 0.14.4",3113
"calloop-wayland-source",3397
"calloop-wayland-source 0.4.1",3114
"cursor-icon",3398
"cursor-icon",3115
"libc",3399
"libc",3116
"log",3400
"log",@@ -3136,7 +3420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"3136
checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"3420
checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"3137
dependencies = [3421
dependencies = [3138
"libc",3422
"libc",3139
"smithay-client-toolkit",3423
"smithay-client-toolkit 0.20.0",3140
"wayland-backend",3424
"wayland-backend",3141
]3425
]3142
3426
@@ -3149,6 +3433,15 @@ dependencies = [3149
"serde",3433
"serde",3150
]3434
]3151
3435
3436
[[package]]3437
name = "spirv"3438
version = "0.3.0+sdk-1.3.268.0"3439
source = "registry+https://github.com/rust-lang/crates.io-index"3440
checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"3441
dependencies = [3442
"bitflags 2.13.0",3443
]3444
3152
[[package]]3445
[[package]]3153
name = "stable_deref_trait"3446
name = "stable_deref_trait"3154
version = "1.2.1"3447
version = "1.2.1"@@ -3167,6 +3460,28 @@ version = "0.11.1"3167
source = "registry+https://github.com/rust-lang/crates.io-index"3460
source = "registry+https://github.com/rust-lang/crates.io-index"3168
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"3461
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"3169
3462
3463
[[package]]3464
name = "strum"3465
version = "0.26.3"3466
source = "registry+https://github.com/rust-lang/crates.io-index"3467
checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"3468
dependencies = [3469
"strum_macros",3470
]3471
3472
[[package]]3473
name = "strum_macros"3474
version = "0.26.4"3475
source = "registry+https://github.com/rust-lang/crates.io-index"3476
checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"3477
dependencies = [3478
"heck",3479
"proc-macro2",3480
"quote",3481
"rustversion",3482
"syn",3483
]3484
3170
[[package]]3485
[[package]]3171
name = "syn"3486
name = "syn"3172
version = "2.0.119"3487
version = "2.0.119"@@ -3202,6 +3517,15 @@ dependencies = [3202
"windows-sys 0.61.2",3517
"windows-sys 0.61.2",3203
]3518
]3204
3519
3520
[[package]]3521
name = "termcolor"3522
version = "1.4.1"3523
source = "registry+https://github.com/rust-lang/crates.io-index"3524
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"3525
dependencies = [3526
"winapi-util",3527
]3528
3205
[[package]]3529
[[package]]3206
name = "thiserror"3530
name = "thiserror"3207
version = "1.0.69"3531
version = "1.0.69"@@ -3343,6 +3667,15 @@ version = "0.25.1"3343
source = "registry+https://github.com/rust-lang/crates.io-index"3667
source = "registry+https://github.com/rust-lang/crates.io-index"3344
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"3668
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"3345
3669
3670
[[package]]3671
name = "type-map"3672
version = "0.5.1"3673
source = "registry+https://github.com/rust-lang/crates.io-index"3674
checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90"3675
dependencies = [3676
"rustc-hash 2.1.3",3677
]3678
3346
[[package]]3679
[[package]]3347
name = "uds_windows"3680
name = "uds_windows"3348
version = "1.2.1"3681
version = "1.2.1"@@ -3381,12 +3714,24 @@ version = "1.13.3"3381
source = "registry+https://github.com/rust-lang/crates.io-index"3714
source = "registry+https://github.com/rust-lang/crates.io-index"3382
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"3715
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"3383
3716
3717
[[package]]3718
name = "unicode-width"3719
version = "0.1.14"3720
source = "registry+https://github.com/rust-lang/crates.io-index"3721
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"3722
3384
[[package]]3723
[[package]]3385
name = "unicode-width"3724
name = "unicode-width"3386
version = "0.2.2"3725
version = "0.2.2"3387
source = "registry+https://github.com/rust-lang/crates.io-index"3726
source = "registry+https://github.com/rust-lang/crates.io-index"3388
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"3727
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"3389
3728
3729
[[package]]3730
name = "unicode-xid"3731
version = "0.2.6"3732
source = "registry+https://github.com/rust-lang/crates.io-index"3733
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"3734
3390
[[package]]3735
[[package]]3391
name = "url"3736
name = "url"3392
version = "2.5.8"3737
version = "2.5.8"@@ -3612,6 +3957,19 @@ dependencies = [3612
"wayland-scanner",3957
"wayland-scanner",3613
]3958
]3614
3959
3960
[[package]]3961
name = "wayland-protocols-plasma"3962
version = "0.3.12"3963
source = "registry+https://github.com/rust-lang/crates.io-index"3964
checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"3965
dependencies = [3966
"bitflags 2.13.0",3967
"wayland-backend",3968
"wayland-client",3969
"wayland-protocols",3970
"wayland-scanner",3971
]3972
3615
[[package]]3973
[[package]]3616
name = "wayland-protocols-wlr"3974
name = "wayland-protocols-wlr"3617
version = "0.3.12"3975
version = "0.3.12"@@ -3690,6 +4048,109 @@ version = "0.1.12"3690
source = "registry+https://github.com/rust-lang/crates.io-index"4048
source = "registry+https://github.com/rust-lang/crates.io-index"3691
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"4049
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"3692
4050
4051
[[package]]4052
name = "wgpu"4053
version = "24.0.5"4054
source = "registry+https://github.com/rust-lang/crates.io-index"4055
checksum = "6b0b3436f0729f6cdf2e6e9201f3d39dc95813fad61d826c1ed07918b4539353"4056
dependencies = [4057
"arrayvec",4058
"bitflags 2.13.0",4059
"cfg_aliases",4060
"document-features",4061
"js-sys",4062
"log",4063
"parking_lot",4064
"profiling",4065
"raw-window-handle",4066
"smallvec",4067
"static_assertions",4068
"wasm-bindgen",4069
"wasm-bindgen-futures",4070
"web-sys",4071
"wgpu-core",4072
"wgpu-hal",4073
"wgpu-types",4074
]4075
4076
[[package]]4077
name = "wgpu-core"4078
version = "24.0.5"4079
source = "registry+https://github.com/rust-lang/crates.io-index"4080
checksum = "7f0aa306497a238d169b9dc70659105b4a096859a34894544ca81719242e1499"4081
dependencies = [4082
"arrayvec",4083
"bit-vec",4084
"bitflags 2.13.0",4085
"cfg_aliases",4086
"document-features",4087
"indexmap",4088
"log",4089
"naga",4090
"once_cell",4091
"parking_lot",4092
"profiling",4093
"raw-window-handle",4094
"rustc-hash 1.1.0",4095
"smallvec",4096
"thiserror 2.0.18",4097
"wgpu-hal",4098
"wgpu-types",4099
]4100
4101
[[package]]4102
name = "wgpu-hal"4103
version = "24.0.4"4104
source = "registry+https://github.com/rust-lang/crates.io-index"4105
checksum = "f112f464674ca69f3533248508ee30cb84c67cf06c25ff6800685f5e0294e259"4106
dependencies = [4107
"android_system_properties",4108
"arrayvec",4109
"ash",4110
"bitflags 2.13.0",4111
"bytemuck",4112
"cfg_aliases",4113
"core-graphics-types",4114
"glow",4115
"glutin_wgl_sys",4116
"gpu-alloc",4117
"gpu-descriptor",4118
"js-sys",4119
"khronos-egl",4120
"libc",4121
"libloading",4122
"log",4123
"metal",4124
"naga",4125
"ndk-sys 0.5.0+25.2.9519653",4126
"objc",4127
"once_cell",4128
"ordered-float",4129
"parking_lot",4130
"profiling",4131
"raw-window-handle",4132
"renderdoc-sys",4133
"rustc-hash 1.1.0",4134
"smallvec",4135
"thiserror 2.0.18",4136
"wasm-bindgen",4137
"web-sys",4138
"wgpu-types",4139
"windows",4140
]4141
4142
[[package]]4143
name = "wgpu-types"4144
version = "24.0.0"4145
source = "registry+https://github.com/rust-lang/crates.io-index"4146
checksum = "50ac044c0e76c03a0378e7786ac505d010a873665e2d51383dcff8dd227dc69c"4147
dependencies = [4148
"bitflags 2.13.0",4149
"js-sys",4150
"log",4151
"web-sys",4152
]4153
3693
[[package]]4154
[[package]]3694
name = "winapi"4155
name = "winapi"3695
version = "0.3.9"4156
version = "0.3.9"@@ -3721,17 +4182,51 @@ version = "0.4.0"3721
source = "registry+https://github.com/rust-lang/crates.io-index"4182
source = "registry+https://github.com/rust-lang/crates.io-index"3722
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"4183
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"3723
4184
4185
[[package]]4186
name = "windows"4187
version = "0.58.0"4188
source = "registry+https://github.com/rust-lang/crates.io-index"4189
checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"4190
dependencies = [4191
"windows-core 0.58.0",4192
"windows-targets 0.52.6",4193
]4194
4195
[[package]]4196
name = "windows-core"4197
version = "0.58.0"4198
source = "registry+https://github.com/rust-lang/crates.io-index"4199
checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"4200
dependencies = [4201
"windows-implement 0.58.0",4202
"windows-interface 0.58.0",4203
"windows-result 0.2.0",4204
"windows-strings 0.1.0",4205
"windows-targets 0.52.6",4206
]4207
3724
[[package]]4208
[[package]]3725
name = "windows-core"4209
name = "windows-core"3726
version = "0.62.2"4210
version = "0.62.2"3727
source = "registry+https://github.com/rust-lang/crates.io-index"4211
source = "registry+https://github.com/rust-lang/crates.io-index"3728
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"4212
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"3729
dependencies = [4213
dependencies = [3730
"windows-implement",4214
"windows-implement 0.60.2",3731
"windows-interface",4215
"windows-interface 0.59.3",3732
"windows-link",4216
"windows-link",3733
"windows-result",4217
"windows-result 0.4.1",3734
"windows-strings",4218
"windows-strings 0.5.1",4219
]4220
4221
[[package]]4222
name = "windows-implement"4223
version = "0.58.0"4224
source = "registry+https://github.com/rust-lang/crates.io-index"4225
checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"4226
dependencies = [4227
"proc-macro2",4228
"quote",4229
"syn",3735
]4230
]3736
4231
3737
[[package]]4232
[[package]]@@ -3745,6 +4240,17 @@ dependencies = [3745
"syn",4240
"syn",3746
]4241
]3747
4242
4243
[[package]]4244
name = "windows-interface"4245
version = "0.58.0"4246
source = "registry+https://github.com/rust-lang/crates.io-index"4247
checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"4248
dependencies = [4249
"proc-macro2",4250
"quote",4251
"syn",4252
]4253
3748
[[package]]4254
[[package]]3749
name = "windows-interface"4255
name = "windows-interface"3750
version = "0.59.3"4256
version = "0.59.3"@@ -3762,6 +4268,15 @@ version = "0.2.1"3762
source = "registry+https://github.com/rust-lang/crates.io-index"4268
source = "registry+https://github.com/rust-lang/crates.io-index"3763
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"4269
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"3764
4270
4271
[[package]]4272
name = "windows-result"4273
version = "0.2.0"4274
source = "registry+https://github.com/rust-lang/crates.io-index"4275
checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"4276
dependencies = [4277
"windows-targets 0.52.6",4278
]4279
3765
[[package]]4280
[[package]]3766
name = "windows-result"4281
name = "windows-result"3767
version = "0.4.1"4282
version = "0.4.1"@@ -3771,6 +4286,16 @@ dependencies = [3771
"windows-link",4286
"windows-link",3772
]4287
]3773
4288
4289
[[package]]4290
name = "windows-strings"4291
version = "0.1.0"4292
source = "registry+https://github.com/rust-lang/crates.io-index"4293
checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"4294
dependencies = [4295
"windows-result 0.2.0",4296
"windows-targets 0.52.6",4297
]4298
3774
[[package]]4299
[[package]]3775
name = "windows-strings"4300
name = "windows-strings"3776
version = "0.5.1"4301
version = "0.5.1"@@ -3951,10 +4476,12 @@ version = "0.30.13"3951
source = "registry+https://github.com/rust-lang/crates.io-index"4476
source = "registry+https://github.com/rust-lang/crates.io-index"3952
checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"4477
checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"3953
dependencies = [4478
dependencies = [4479
"ahash",3954
"android-activity",4480
"android-activity",3955
"atomic-waker",4481
"atomic-waker",3956
"bitflags 2.13.0",4482
"bitflags 2.13.0",3957
"block2 0.5.1",4483
"block2 0.5.1",4484
"bytemuck",3958
"calloop 0.13.0",4485
"calloop 0.13.0",3959
"cfg_aliases",4486
"cfg_aliases",3960
"concurrent-queue",4487
"concurrent-queue",@@ -3964,24 +4491,33 @@ dependencies = [3964
"dpi",4491
"dpi",3965
"js-sys",4492
"js-sys",3966
"libc",4493
"libc",4494
"memmap2",3967
"ndk",4495
"ndk",3968
"objc2 0.5.2",4496
"objc2 0.5.2",3969
"objc2-app-kit 0.2.2",4497
"objc2-app-kit 0.2.2",3970
"objc2-foundation 0.2.2",4498
"objc2-foundation 0.2.2",3971
"objc2-ui-kit",4499
"objc2-ui-kit",3972
"orbclient",4500
"orbclient",4501
"percent-encoding",3973
"pin-project",4502
"pin-project",3974
"raw-window-handle",4503
"raw-window-handle",3975
"redox_syscall 0.4.1",4504
"redox_syscall 0.4.1",3976
"rustix 0.38.44",4505
"rustix 0.38.44",4506
"smithay-client-toolkit 0.19.2",3977
"smol_str",4507
"smol_str",3978
"tracing",4508
"tracing",3979
"unicode-segmentation",4509
"unicode-segmentation",3980
"wasm-bindgen",4510
"wasm-bindgen",3981
"wasm-bindgen-futures",4511
"wasm-bindgen-futures",4512
"wayland-backend",4513
"wayland-client",4514
"wayland-protocols",4515
"wayland-protocols-plasma",3982
"web-sys",4516
"web-sys",3983
"web-time",4517
"web-time",3984
"windows-sys 0.52.0",4518
"windows-sys 0.52.0",4519
"x11-dl",4520
"x11rb",3985
"xkbcommon-dl",4521
"xkbcommon-dl",3986
]4522
]3987
4523
@@ -4025,13 +4561,28 @@ version = "0.6.3"4025
source = "registry+https://github.com/rust-lang/crates.io-index"4561
source = "registry+https://github.com/rust-lang/crates.io-index"4026
checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"4562
checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"4027
4563
4564
[[package]]4565
name = "x11-dl"4566
version = "2.21.0"4567
source = "registry+https://github.com/rust-lang/crates.io-index"4568
checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"4569
dependencies = [4570
"libc",4571
"once_cell",4572
"pkg-config",4573
]4574
4028
[[package]]4575
[[package]]4029
name = "x11rb"4576
name = "x11rb"4030
version = "0.13.2"4577
version = "0.13.2"4031
source = "registry+https://github.com/rust-lang/crates.io-index"4578
source = "registry+https://github.com/rust-lang/crates.io-index"4032
checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"4579
checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"4033
dependencies = [4580
dependencies = [4581
"as-raw-xcb-connection",4034
"gethostname",4582
"gethostname",4583
"libc",4584
"libloading",4585
"once_cell",4035
"rustix 1.1.4",4586
"rustix 1.1.4",4036
"x11rb-protocol",4587
"x11rb-protocol",4037
]4588
]@@ -2,13 +2,14 @@
2
2
name = "posprint"
3
3
version = "0.1.0"
4
4
edition = "2021"
5
rust-version = "1.88"
5
6
description = "Designer for POS-print documents"
6
7
license = "MIT"
7
8
readme = "README.md"
8
9
build = "build.rs"
9
10
10
11
[dependencies]
11
eframe = { version = "0.31", default-features = false, features = ["default_fonts", "glow"] }
12
eframe = { version = "0.31", default-features = false, features = ["default_fonts", "glow", "x11", "wayland"] }
12
13
serde = { version = "1", features = ["derive"] }
13
14
serde_json = "1"
14
15
serialport = "4"
@@ -2,13 +2,14 @@2
name = "posprint"
2
name = "posprint"
3
version = "0.1.0"
3
version = "0.1.0"
4
edition = "2021"
4
edition = "2021"
5
rust-version = "1.88"
5
description = "Designer for POS-print documents"
6
description = "Designer for POS-print documents"
6
license = "MIT"
7
license = "MIT"
7
readme = "README.md"
8
readme = "README.md"
8
build = "build.rs"
9
build = "build.rs"
9
10
10
[dependencies]
11
[dependencies]
11
eframe = { version = "0.31", default-features = false, features = ["default_fonts", "glow"] }
12
eframe = { version = "0.31", default-features = false, features = ["default_fonts", "glow", "x11", "wayland"] }
12
serde = { version = "1", features = ["derive"] }
13
serde = { version = "1", features = ["derive"] }
13
serde_json = "1"
14
serde_json = "1"
14
serialport = "4"
15
serialport = "4"
@@ -10,13 +10,15 @@ Cross-platform designer for POS (point-of-sale) receipt documents. Edit template
10
10
11
11
## Build and run
12
12
13
Requires **Rust 1.88+** ([rustup](https://rustup.rs/) or `pacman -S rust` on Arch). See [docs/BUILD.md](docs/BUILD.md) for OS libraries and package scripts.
14
13
15
```bash
14
16
cargo test # 31 unit tests
15
17
cargo run # launch the designer
16
18
cargo build --release
17
19
```
18
20
19
**Scripts:** `scripts/build-windows.ps1`, `scripts/build-linux.sh`, `scripts/build-arch.sh` (see [docs/BUILD.md](docs/BUILD.md)).
21
**Scripts:** `scripts/build-windows.ps1`, `scripts/build-linux.sh`, `scripts/build-arch.sh`
20
22
21
23
### Command-line printing
22
24
@@ -10,13 +10,15 @@ Cross-platform designer for POS (point-of-sale) receipt documents. Edit template10
10
11
## Build and run
11
## Build and run
12
12
13
Requires **Rust 1.88+** ([rustup](https://rustup.rs/) or `pacman -S rust` on Arch). See [docs/BUILD.md](docs/BUILD.md) for OS libraries and package scripts.
14
13
```bash
15
```bash
14
cargo test # 31 unit tests
16
cargo test # 31 unit tests
15
cargo run # launch the designer
17
cargo run # launch the designer
16
cargo build --release
18
cargo build --release
17
```
19
```
18
20
19
**Scripts:** `scripts/build-windows.ps1`, `scripts/build-linux.sh`, `scripts/build-arch.sh` (see [docs/BUILD.md](docs/BUILD.md)).
21
**Scripts:** `scripts/build-windows.ps1`, `scripts/build-linux.sh`, `scripts/build-arch.sh`
20
22
21
### Command-line printing
23
### Command-line printing
22
24
@@ -2,6 +2,21 @@
2
2
3
3
Local release builds for Windows and Linux.
4
4
5
## Toolchain
6
7
You need a Rust toolchain (**1.88+**; CI uses 1.96). Install once:
8
9
```bash
10
# Recommended (any distro)
11
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
12
# then restart the shell, or: source "$HOME/.cargo/env"
13
14
# Or on Arch Linux
15
sudo pacman -S --needed rust
16
```
17
18
Also install the platform build libraries under **Linux build dependencies** below before `cargo test` / `cargo build`.
19
5
20
## Windows
6
21
7
22
```powershell
@@ -56,7 +71,8 @@ Outputs:
56
71
57
72
```bash
58
73
sudo apt-get install -y build-essential pkg-config \
59
libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
74
libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev \
75
libssl-dev libudev-dev
60
76
```
61
77
62
78
For `.deb`:
@@ -2,6 +2,21 @@2
2
3
Local release builds for Windows and Linux.
3
Local release builds for Windows and Linux.
4
4
5
## Toolchain
6
7
You need a Rust toolchain (**1.88+**; CI uses 1.96). Install once:
8
9
```bash
10
# Recommended (any distro)
11
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
12
# then restart the shell, or: source "$HOME/.cargo/env"
13
14
# Or on Arch Linux
15
sudo pacman -S --needed rust
16
```
17
18
Also install the platform build libraries under **Linux build dependencies** below before `cargo test` / `cargo build`.
19
5
## Windows
20
## Windows
6
21
7
```powershell
22
```powershell
@@ -56,7 +71,8 @@ Outputs:56
71
57
```bash
72
```bash
58
sudo apt-get install -y build-essential pkg-config \
73
sudo apt-get install -y build-essential pkg-config \
59
libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
74
libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev \
75
libssl-dev libudev-dev
60
```
76
```
61
77
62
For `.deb`:
78
For `.deb`:
@@ -1,45 +1,45 @@
1
#!/usr/bin/env bash
2
# Build an Arch Linux pacman package (.pkg.tar.zst) for posprint.
3
set -euo pipefail
4
5
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
6
cd "$ROOT"
7
8
BUILD_DEB=false
9
SKIP_TESTS=false
10
AS_ROOT=false
11
12
for arg in "$@"; do
13
case "$arg" in
14
--skip-tests) SKIP_TESTS=true ;;
15
--asroot) AS_ROOT=true ;;
16
-h|--help)
17
echo "Usage: $0 [--skip-tests] [--asroot]"
18
echo "Builds packaging/arch/posprint-<ver>-<rel>-x86_64.pkg.tar.zst"
19
exit 0
20
;;
21
*) echo "Unknown option: $arg"; exit 1 ;;
22
esac
23
done
24
25
if ! command -v makepkg &>/dev/null; then
26
echo "makepkg not found. On Arch, install base-devel: sudo pacman -S base-devel"
27
exit 1
28
fi
29
30
if [[ "$SKIP_TESTS" != "true" ]]; then
31
cargo test
32
fi
33
34
PKGVER="$(grep '^version' Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"
35
sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
36
37
cd packaging/arch
38
MAKEPKG_FLAGS=(-f --noconfirm)
39
if [[ "$AS_ROOT" == "true" ]]; then
40
MAKEPKG_FLAGS+=(--asroot)
41
fi
42
makepkg "${MAKEPKG_FLAGS[@]}"
43
44
echo "Arch package:"
45
ls -lh posprint-"${PKGVER}"-*-x86_64.pkg.tar.zst
1
#!/usr/bin/env bash
2
# Build an Arch Linux pacman package (.pkg.tar.zst) for posprint.
3
set -euo pipefail
4
5
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
6
cd "$ROOT"
7
8
BUILD_DEB=false
9
SKIP_TESTS=false
10
AS_ROOT=false
11
12
for arg in "$@"; do
13
case "$arg" in
14
--skip-tests) SKIP_TESTS=true ;;
15
--asroot) AS_ROOT=true ;;
16
-h|--help)
17
echo "Usage: $0 [--skip-tests] [--asroot]"
18
echo "Builds packaging/arch/posprint-<ver>-<rel>-x86_64.pkg.tar.zst"
19
exit 0
20
;;
21
*) echo "Unknown option: $arg"; exit 1 ;;
22
esac
23
done
24
25
if ! command -v makepkg &>/dev/null; then
26
echo "makepkg not found. On Arch, install base-devel: sudo pacman -S base-devel"
27
exit 1
28
fi
29
30
if [[ "$SKIP_TESTS" != "true" ]]; then
31
cargo test
32
fi
33
34
PKGVER="$(grep '^version' Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"
35
sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
36
37
cd packaging/arch
38
MAKEPKG_FLAGS=(-f --noconfirm)
39
if [[ "$AS_ROOT" == "true" ]]; then
40
MAKEPKG_FLAGS+=(--asroot)
41
fi
42
makepkg "${MAKEPKG_FLAGS[@]}"
43
44
echo "Arch package:"
45
ls -lh posprint-"${PKGVER}"-*-x86_64.pkg.tar.zst
@@ -1,45 +1,45 @@1
#!/usr/bin/env bash
1
#!/usr/bin/env bash2
# Build an Arch Linux pacman package (.pkg.tar.zst) for posprint.
2
# Build an Arch Linux pacman package (.pkg.tar.zst) for posprint.3
set -euo pipefail
3
set -euo pipefail4
4
5
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5
ROOT="$(cd "$(dirname "$0")/.." && pwd)"6
cd "$ROOT"
6
cd "$ROOT"7
7
8
BUILD_DEB=false
8
BUILD_DEB=false9
SKIP_TESTS=false
9
SKIP_TESTS=false10
AS_ROOT=false
10
AS_ROOT=false11
11
12
for arg in "$@"; do
12
for arg in "$@"; do13
case "$arg" in
13
case "$arg" in14
--skip-tests) SKIP_TESTS=true ;;
14
--skip-tests) SKIP_TESTS=true ;;15
--asroot) AS_ROOT=true ;;
15
--asroot) AS_ROOT=true ;;16
-h|--help)
16
-h|--help)17
echo "Usage: $0 [--skip-tests] [--asroot]"
17
echo "Usage: $0 [--skip-tests] [--asroot]"18
echo "Builds packaging/arch/posprint-<ver>-<rel>-x86_64.pkg.tar.zst"
18
echo "Builds packaging/arch/posprint-<ver>-<rel>-x86_64.pkg.tar.zst"19
exit 0
19
exit 020
;;
20
;;21
*) echo "Unknown option: $arg"; exit 1 ;;
21
*) echo "Unknown option: $arg"; exit 1 ;;22
esac
22
esac23
done
23
done24
24
25
if ! command -v makepkg &>/dev/null; then
25
if ! command -v makepkg &>/dev/null; then26
echo "makepkg not found. On Arch, install base-devel: sudo pacman -S base-devel"
26
echo "makepkg not found. On Arch, install base-devel: sudo pacman -S base-devel"27
exit 1
27
exit 128
fi
28
fi29
29
30
if [[ "$SKIP_TESTS" != "true" ]]; then
30
if [[ "$SKIP_TESTS" != "true" ]]; then31
cargo test
31
cargo test32
fi
32
fi33
33
34
PKGVER="$(grep '^version' Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"
34
PKGVER="$(grep '^version' Cargo.toml | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"35
sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD
35
sed -i "s/^pkgver=.*/pkgver=${PKGVER}/" packaging/arch/PKGBUILD36
36
37
cd packaging/arch
37
cd packaging/arch38
MAKEPKG_FLAGS=(-f --noconfirm)
38
MAKEPKG_FLAGS=(-f --noconfirm)39
if [[ "$AS_ROOT" == "true" ]]; then
39
if [[ "$AS_ROOT" == "true" ]]; then40
MAKEPKG_FLAGS+=(--asroot)
40
MAKEPKG_FLAGS+=(--asroot)41
fi
41
fi42
makepkg "${MAKEPKG_FLAGS[@]}"
42
makepkg "${MAKEPKG_FLAGS[@]}"43
43
44
echo "Arch package:"
44
echo "Arch package:"45
ls -lh posprint-"${PKGVER}"-*-x86_64.pkg.tar.zst
45
ls -lh posprint-"${PKGVER}"-*-x86_64.pkg.tar.zst@@ -1,37 +1,37 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5
cd "$ROOT"
6
7
BUILD_DEB=false
8
SKIP_TESTS=false
9
10
for arg in "$@"; do
11
case "$arg" in
12
--deb) BUILD_DEB=true ;;
13
--skip-tests) SKIP_TESTS=true ;;
14
*) echo "Unknown option: $arg"; exit 1 ;;
15
esac
16
done
17
18
echo "Building posprint for Linux (x86_64)..."
19
20
if [[ "$SKIP_TESTS" != "true" ]]; then
21
cargo test
22
fi
23
24
cargo build --release
25
BIN="$ROOT/target/release/posprint"
26
echo "OK: $BIN"
27
ls -lh "$BIN"
28
29
if [[ "$BUILD_DEB" == "true" ]]; then
30
if ! command -v cargo-deb &>/dev/null; then
31
echo "Installing cargo-deb..."
32
cargo install cargo-deb --locked
33
fi
34
cargo deb
35
echo "Debian packages:"
36
ls -lh "$ROOT/target/debian/"*.deb
37
fi
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5
cd "$ROOT"
6
7
BUILD_DEB=false
8
SKIP_TESTS=false
9
10
for arg in "$@"; do
11
case "$arg" in
12
--deb) BUILD_DEB=true ;;
13
--skip-tests) SKIP_TESTS=true ;;
14
*) echo "Unknown option: $arg"; exit 1 ;;
15
esac
16
done
17
18
echo "Building posprint for Linux (x86_64)..."
19
20
if [[ "$SKIP_TESTS" != "true" ]]; then
21
cargo test
22
fi
23
24
cargo build --release
25
BIN="$ROOT/target/release/posprint"
26
echo "OK: $BIN"
27
ls -lh "$BIN"
28
29
if [[ "$BUILD_DEB" == "true" ]]; then
30
if ! command -v cargo-deb &>/dev/null; then
31
echo "Installing cargo-deb..."
32
cargo install cargo-deb --locked
33
fi
34
cargo deb
35
echo "Debian packages:"
36
ls -lh "$ROOT/target/debian/"*.deb
37
fi
@@ -1,37 +1,37 @@1
#!/usr/bin/env bash
1
#!/usr/bin/env bash2
set -euo pipefail
2
set -euo pipefail3
3
4
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
4
ROOT="$(cd "$(dirname "$0")/.." && pwd)"5
cd "$ROOT"
5
cd "$ROOT"6
6
7
BUILD_DEB=false
7
BUILD_DEB=false8
SKIP_TESTS=false
8
SKIP_TESTS=false9
9
10
for arg in "$@"; do
10
for arg in "$@"; do11
case "$arg" in
11
case "$arg" in12
--deb) BUILD_DEB=true ;;
12
--deb) BUILD_DEB=true ;;13
--skip-tests) SKIP_TESTS=true ;;
13
--skip-tests) SKIP_TESTS=true ;;14
*) echo "Unknown option: $arg"; exit 1 ;;
14
*) echo "Unknown option: $arg"; exit 1 ;;15
esac
15
esac16
done
16
done17
17
18
echo "Building posprint for Linux (x86_64)..."
18
echo "Building posprint for Linux (x86_64)..."19
19
20
if [[ "$SKIP_TESTS" != "true" ]]; then
20
if [[ "$SKIP_TESTS" != "true" ]]; then21
cargo test
21
cargo test22
fi
22
fi23
23
24
cargo build --release
24
cargo build --release25
BIN="$ROOT/target/release/posprint"
25
BIN="$ROOT/target/release/posprint"26
echo "OK: $BIN"
26
echo "OK: $BIN"27
ls -lh "$BIN"
27
ls -lh "$BIN"28
28
29
if [[ "$BUILD_DEB" == "true" ]]; then
29
if [[ "$BUILD_DEB" == "true" ]]; then30
if ! command -v cargo-deb &>/dev/null; then
30
if ! command -v cargo-deb &>/dev/null; then31
echo "Installing cargo-deb..."
31
echo "Installing cargo-deb..."32
cargo install cargo-deb --locked
32
cargo install cargo-deb --locked33
fi
33
fi34
cargo deb
34
cargo deb35
echo "Debian packages:"
35
echo "Debian packages:"36
ls -lh "$ROOT/target/debian/"*.deb
36
ls -lh "$ROOT/target/debian/"*.deb37
fi
37
fi@@ -1,26 +1,26 @@
1
#Requires -Version 5.1
2
param(
3
[switch]$SkipTests
4
)
5
6
$ErrorActionPreference = "Stop"
7
$Root = Split-Path -Parent $PSScriptRoot
8
Set-Location $Root
9
10
Write-Host "Building posprint for Windows (x64)..."
11
12
if (-not $SkipTests) {
13
cargo test
14
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
15
}
16
17
cargo build --release
18
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
19
20
$exe = Join-Path $Root "target\release\posprint.exe"
21
if (-not (Test-Path $exe)) {
22
Write-Error "Build failed: $exe not found"
23
}
24
25
Write-Host "OK: $exe"
26
Get-Item $exe | Select-Object FullName, Length, LastWriteTime
1
#Requires -Version 5.1
2
param(
3
[switch]$SkipTests
4
)
5
6
$ErrorActionPreference = "Stop"
7
$Root = Split-Path -Parent $PSScriptRoot
8
Set-Location $Root
9
10
Write-Host "Building posprint for Windows (x64)..."
11
12
if (-not $SkipTests) {
13
cargo test
14
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
15
}
16
17
cargo build --release
18
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
19
20
$exe = Join-Path $Root "target\release\posprint.exe"
21
if (-not (Test-Path $exe)) {
22
Write-Error "Build failed: $exe not found"
23
}
24
25
Write-Host "OK: $exe"
26
Get-Item $exe | Select-Object FullName, Length, LastWriteTime
@@ -1,26 +1,26 @@1
#Requires -Version 5.1
1
#Requires -Version 5.12
param(
2
param(3
[switch]$SkipTests
3
[switch]$SkipTests4
)
4
)5
5
6
$ErrorActionPreference = "Stop"
6
$ErrorActionPreference = "Stop"7
$Root = Split-Path -Parent $PSScriptRoot
7
$Root = Split-Path -Parent $PSScriptRoot8
Set-Location $Root
8
Set-Location $Root9
9
10
Write-Host "Building posprint for Windows (x64)..."
10
Write-Host "Building posprint for Windows (x64)..."11
11
12
if (-not $SkipTests) {
12
if (-not $SkipTests) {13
cargo test
13
cargo test14
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
14
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }15
}
15
}16
16
17
cargo build --release
17
cargo build --release18
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
18
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }19
19
20
$exe = Join-Path $Root "target\release\posprint.exe"
20
$exe = Join-Path $Root "target\release\posprint.exe"21
if (-not (Test-Path $exe)) {
21
if (-not (Test-Path $exe)) {22
Write-Error "Build failed: $exe not found"
22
Write-Error "Build failed: $exe not found"23
}
23
}24
24
25
Write-Host "OK: $exe"
25
Write-Host "OK: $exe"26
Get-Item $exe | Select-Object FullName, Length, LastWriteTime
26
Get-Item $exe | Select-Object FullName, Length, LastWriteTime@@ -70,6 +70,10 @@ fn datetime_to_tm(dt: &chrono::DateTime<Local>) -> tm {
70
70
tm_wday: dt.weekday().num_days_from_sunday() as i32,
71
71
tm_yday: 0,
72
72
tm_isdst: -1,
73
#[cfg(unix)]
74
tm_gmtoff: dt.offset().local_minus_utc() as libc::c_long,
75
#[cfg(unix)]
76
tm_zone: std::ptr::null(),
73
77
}
74
78
}
75
79
@@ -70,6 +70,10 @@ fn datetime_to_tm(dt: &chrono::DateTime<Local>) -> tm {70
tm_wday: dt.weekday().num_days_from_sunday() as i32,
70
tm_wday: dt.weekday().num_days_from_sunday() as i32,
71
tm_yday: 0,
71
tm_yday: 0,
72
tm_isdst: -1,
72
tm_isdst: -1,
73
#[cfg(unix)]
74
tm_gmtoff: dt.offset().local_minus_utc() as libc::c_long,
75
#[cfg(unix)]
76
tm_zone: std::ptr::null(),
73
}
77
}
74
}
78
}
75
79