Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(*): ODict V2 #639

Open
wants to merge 396 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
396 commits
Select commit Hold shift + click to select a range
1fc3570
fix(ci): update JS CI
Nickersoft Jun 17, 2024
cf66c10
chore(deps): update pnpm to v9.4.0
renovate[bot] Jun 17, 2024
b1491fb
chore(deps): update dependency @types/node to v20.14.3
renovate[bot] Jun 17, 2024
d6cc0e3
chore(deps): update dependency @types/node to v20.14.4
renovate[bot] Jun 18, 2024
60c41d2
chore(deps): update dependency @types/node to v20.14.5
renovate[bot] Jun 18, 2024
db99358
fix(deps): update rust crate actix-web to v4.8.0
renovate[bot] Jun 20, 2024
5ea0944
chore(deps): update dependency node to v20.15.0
renovate[bot] Jun 20, 2024
3795a4b
chore(deps): update dependency @types/node to v20.14.7
renovate[bot] Jun 20, 2024
8b1209f
fix(deps): update rust crate quick-xml to 0.33.0
renovate[bot] Jun 21, 2024
72564ca
chore(deps): update dependency @types/node to v20.14.8
renovate[bot] Jun 22, 2024
bea9454
fix(deps): update rust crate uuid to v1.9.0
renovate[bot] Jun 24, 2024
7fbb066
fix(deps): update rust crate quick-xml to 0.34.0
renovate[bot] Jun 24, 2024
63a5602
fix(deps): update rust crate uuid to v1.9.1
renovate[bot] Jun 25, 2024
ca9bf41
fix(deps): update rust crate serde_json to v1.0.118
renovate[bot] Jun 25, 2024
5572631
fix(deps): update rust crate napi to v2.16.7
renovate[bot] Jun 25, 2024
ff85ab6
fix(deps): update rust crate napi-derive to v2.16.6
renovate[bot] Jun 25, 2024
8d1b409
chore(deps): update dependency @types/node to v20.14.9
renovate[bot] Jun 26, 2024
4f3fefe
fix(deps): update rust crate napi to v2.16.8
renovate[bot] Jun 27, 2024
b29ed90
fix(deps): update rust crate quick-xml to 0.35.0
renovate[bot] Jun 29, 2024
4993e54
fix(deps): update rust crate clap to v4.5.8
renovate[bot] Jun 29, 2024
1e765a1
fix(deps): update rust crate serde_json to v1.0.119
renovate[bot] Jun 30, 2024
f7604f6
chore(deps): update dependency @napi-rs/cli to v2.18.4
renovate[bot] Jul 1, 2024
52f5332
fix(deps): update rust crate napi-derive to v2.16.8
renovate[bot] Jul 1, 2024
7d291a8
fix(deps): update rust crate serde_json to v1.0.120
renovate[bot] Jul 1, 2024
a2a7e28
chore(deps): update dependency @types/node to v20.14.10
renovate[bot] Jul 5, 2024
cb8aa9a
fix(deps): update rust crate serde to v1.0.204
renovate[bot] Jul 6, 2024
5a429b9
chore(deps): update pnpm to v9.5.0
renovate[bot] Jul 7, 2024
cfa9ac3
chore(deps): update dependency node to v20.15.1
renovate[bot] Jul 8, 2024
a1458d9
fix(deps): update rust crate quick-xml to 0.36.0
renovate[bot] Jul 8, 2024
46428be
fix(deps): update rust crate clap to v4.5.9
renovate[bot] Jul 9, 2024
c8aa62c
fix(deps): update rust crate uuid to v1.10.0
renovate[bot] Jul 9, 2024
cdf5f68
fix(deps): update rust crate charabia to v0.8.12
renovate[bot] Jul 9, 2024
32986e7
chore(deps): update dependency gradle to v8.9
renovate[bot] Jul 11, 2024
28aa766
chore(deps): update plugin com.google.devtools.ksp to v2.0.0-1.0.23
renovate[bot] Jul 12, 2024
5f98d7a
chore(deps): update dependency prettier to v3.3.3
renovate[bot] Jul 13, 2024
8a21cd8
fix(deps): update rust crate napi-derive to v2.16.9
renovate[bot] Jul 16, 2024
50f7421
chore(deps): update dependency @types/node to v20.14.11
renovate[bot] Jul 16, 2024
1fe85c3
chore(deps): update pnpm to v9.6.0
renovate[bot] Jul 22, 2024
4d898a3
fix(deps): update rust crate napi-derive to v2.16.10
renovate[bot] Jul 23, 2024
272a7f2
chore(deps): update dependency java to v21.0.4+7.0.lts
renovate[bot] Jul 23, 2024
971843b
chore(deps): update dependency @types/node to v20.14.12
renovate[bot] Jul 23, 2024
405be46
fix(deps): update rust crate clap to v4.5.10
renovate[bot] Jul 23, 2024
d6d65e4
fix(deps): update rust crate env_logger to v0.11.4
renovate[bot] Jul 24, 2024
28c0124
fix(deps): update rust crate quick-xml to v0.36.1
renovate[bot] Jul 24, 2024
70620b8
chore(deps): update dependency node to v20.16.0
renovate[bot] Jul 24, 2024
8efb10f
fix(deps): update rust crate clap to v4.5.11
renovate[bot] Jul 25, 2024
d853494
fix(deps): update rust crate env_logger to v0.11.5
renovate[bot] Jul 25, 2024
e3c1c86
fix(deps): update rust crate charabia to 0.9.0
renovate[bot] Jul 25, 2024
175931e
chore(deps): update dependency @types/node to v20.14.13
renovate[bot] Jul 28, 2024
0988bcf
fix(deps): update rust crate serde_json to v1.0.121
renovate[bot] Jul 28, 2024
a45ba1f
chore(deps): update plugin com.google.devtools.ksp to v2.0.0-1.0.24
renovate[bot] Jul 30, 2024
cc7ab3c
fix(deps): update rust crate clap to v4.5.13
renovate[bot] Jul 31, 2024
53f71a7
fix(deps): update rust crate serde_json to v1.0.122
renovate[bot] Aug 2, 2024
e3bb2d2
chore(deps): update dependency @types/node to v20.14.14
renovate[bot] Aug 2, 2024
769b0fb
fix(deps): update rust crate sea-query to 0.31.0
renovate[bot] Aug 2, 2024
c5d9e0c
fix(deps): update rust crate regex to v1.10.6
renovate[bot] Aug 2, 2024
81a2ad7
chore(deps): update dependency kotlin to v2.0.10
renovate[bot] Aug 6, 2024
60fed5e
chore(deps): update plugin com.google.devtools.ksp to v2.0.10-1.0.24
renovate[bot] Aug 6, 2024
655bbdd
chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.0.10
renovate[bot] Aug 7, 2024
1383b39
chore(deps): update pnpm to v9.7.0
renovate[bot] Aug 7, 2024
14a3b4a
fix(deps): update rust crate serde to v1.0.205
renovate[bot] Aug 8, 2024
98d1f98
chore(deps): update dependency python to v3.12.5
renovate[bot] Aug 8, 2024
7bfb4ae
fix(deps): update rust crate clap to v4.5.14
renovate[bot] Aug 8, 2024
d199c0e
chore(deps): update dependency @types/node to v20.14.15
renovate[bot] Aug 9, 2024
259fa67
fix(deps): update rust crate clap to v4.5.15
renovate[bot] Aug 10, 2024
b02605c
fix(deps): update rust crate actix-web to v4.9.0
renovate[bot] Aug 10, 2024
b3d52f6
fix(deps): update rust crate napi to v2.16.9
renovate[bot] Aug 10, 2024
fadcd99
fix(deps): update rust crate napi-derive to v2.16.11
renovate[bot] Aug 10, 2024
3211406
fix(deps): update rust crate serde to v1.0.206
renovate[bot] Aug 11, 2024
fabbff3
fix(deps): update rust crate serde_json to v1.0.124
renovate[bot] Aug 11, 2024
a09eb23
fix(deps): update rust crate serde to v1.0.207
renovate[bot] Aug 12, 2024
8db1a92
chore(deps): update dependency gradle to v8.10
renovate[bot] Aug 14, 2024
4a9c461
chore(deps): update pnpm to v9.7.1
renovate[bot] Aug 14, 2024
c3387af
fix(deps): update rust crate serde_json to v1.0.125
renovate[bot] Aug 15, 2024
339f3b1
fix(deps): update rust crate serde to v1.0.208
renovate[bot] Aug 15, 2024
4664edb
fix(deps): update rust crate clap to v4.5.16
renovate[bot] Aug 16, 2024
ae76de6
fix(deps): update rust crate pulldown-cmark to v0.11.2
renovate[bot] Aug 16, 2024
276c4b5
chore(deps): update dependency @types/node to v20.15.0
renovate[bot] Aug 16, 2024
af81377
fix(deps): update dependency com.google.guava:guava to v33.3.0-jre
renovate[bot] Aug 17, 2024
0885bf8
fix(deps): update rust crate pulldown-cmark to 0.12.0
renovate[bot] Aug 17, 2024
c3514ce
chore(deps): update dependency @types/node to v20.16.0
renovate[bot] Aug 18, 2024
ff127af
chore(deps): update dependency @types/node to v20.16.1
renovate[bot] Aug 19, 2024
d28c8ac
fix(deps): update rust crate rkyv to v0.7.45
renovate[bot] Aug 20, 2024
d07a1e4
chore(deps): update dependency node to v20.17.0
renovate[bot] Aug 21, 2024
724baeb
chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.0.20
renovate[bot] Aug 22, 2024
0a9a242
chore(deps): update dependency kotlin to v2.0.20
renovate[bot] Aug 22, 2024
cf4cbdf
chore(deps): update pnpm to v9.8.0
renovate[bot] Aug 22, 2024
aba48e2
chore(deps): update plugin com.google.devtools.ksp to v2.0.20-1.0.24
renovate[bot] Aug 23, 2024
cc493f2
fix(deps): update rust crate serde_json to v1.0.127
renovate[bot] Aug 23, 2024
81bc6c2
fix(deps): update rust crate serde to v1.0.209
renovate[bot] Aug 24, 2024
5e66ddc
chore(deps): update pnpm to v9.9.0
renovate[bot] Aug 26, 2024
94cc4b7
chore(deps): update dependency @types/node to v20.16.2
renovate[bot] Aug 28, 2024
659fb47
chore(deps): update dependency @types/node to v20.16.3
renovate[bot] Sep 1, 2024
a309c08
chore(deps): update dependency @types/node to v20.16.4
renovate[bot] Sep 4, 2024
dc051c2
chore(deps): update dependency @types/node to v20.16.5
renovate[bot] Sep 4, 2024
9b353fb
chore(deps): update plugin com.google.devtools.ksp to v2.0.20-1.0.25
renovate[bot] Sep 5, 2024
8e7a73a
chore(deps): update dependency gradle to v8.10.1
renovate[bot] Sep 9, 2024
3755351
chore(deps): update dependency python to v3.12.6
renovate[bot] Sep 9, 2024
a8c5512
chore(deps): update pnpm to v9.10.0
renovate[bot] Sep 9, 2024
6cbdea5
fix(deps): update rust crate clap to v4.5.17
renovate[bot] Sep 16, 2024
b3d0101
fix(deps): update rust crate napi to v2.16.10
renovate[bot] Sep 16, 2024
8662e0d
fix(deps): update rust crate napi-derive to v2.16.12
renovate[bot] Sep 16, 2024
f0c14c1
fix(deps): update rust crate pulldown-cmark to v0.12.1
renovate[bot] Sep 16, 2024
231c9ca
fix(deps): update rust crate charabia to v0.9.1
renovate[bot] Sep 19, 2024
271c2b7
fix(deps): update rust crate serde to v1.0.210
renovate[bot] Sep 19, 2024
cbe6142
fix(deps): update rust crate serde_json to v1.0.128
renovate[bot] Sep 19, 2024
9325997
chore(deps): update rust crate insta to v1.40.0
renovate[bot] Sep 19, 2024
f3da123
fix(deps): update rust crate napi to v2.16.11
renovate[bot] Sep 20, 2024
3f7e916
chore(deps): update pnpm to v9.11.0
renovate[bot] Sep 20, 2024
5c58088
fix(deps): update rust crate quick-xml to v0.36.2
renovate[bot] Sep 20, 2024
20599e2
fix(deps): update rust crate clap to v4.5.18
renovate[bot] Sep 20, 2024
8921f03
chore(deps): update dependency @types/node to v20.16.6
renovate[bot] Sep 23, 2024
cd17d65
chore(deps): update dependency gradle to v8.10.2
renovate[bot] Sep 24, 2024
a316c49
fix(deps): update dependency com.google.guava:guava to v33.3.1-jre
renovate[bot] Sep 24, 2024
88b2620
chore(deps): update dependency @types/node to v20.16.7
renovate[bot] Sep 25, 2024
c4512ce
chore(deps): update dependency @types/node to v20.16.8
renovate[bot] Sep 25, 2024
4e1381e
chore(deps): update dependency @types/node to v20.16.9
renovate[bot] Sep 25, 2024
b276cc0
fix(deps): update rust crate regex to v1.11.0
renovate[bot] Sep 29, 2024
8f4d2c2
feat(*): update NAPI CI
Nickersoft Sep 29, 2024
af4a48a
chore(*): update NAPI CI
Nickersoft Sep 29, 2024
2be6147
feat(*): add PNPM to CI
Nickersoft Sep 29, 2024
a5490bb
fix(napi): don't freeze lockfile
Nickersoft Sep 30, 2024
cf3dca5
fix(*): update CI
Nickersoft Sep 30, 2024
3f290a2
fix(deps): update rust crate clap to v4.5.19
renovate[bot] Oct 1, 2024
aa0a070
chore(deps): update pnpm to v9.12.0
renovate[bot] Oct 2, 2024
6843dd9
chore(deps): update dependency node to v20.18.0
renovate[bot] Oct 3, 2024
f5f9183
chore(deps): update dependency python to v3.12.7
renovate[bot] Oct 3, 2024
a3e7178
fix(deps): update rust crate sea-query to v0.31.1
renovate[bot] Oct 5, 2024
d3e09d3
fix(deps): update rust crate once_cell to v1.20.2
renovate[bot] Oct 5, 2024
3b6ba63
chore(deps): update pnpm to v9.12.1
renovate[bot] Oct 7, 2024
eb60bf5
chore(deps): update dependency @types/node to v20.16.11
renovate[bot] Oct 8, 2024
1ccb978
chore(deps): update dependency python to v3.13.0
renovate[bot] Oct 8, 2024
c62829d
fix(deps): update rust crate clap to v4.5.20
renovate[bot] Oct 8, 2024
f9cba8e
chore(deps): update dependency kotlin to v2.0.21
renovate[bot] Oct 10, 2024
761c5a2
chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.0.21
renovate[bot] Oct 10, 2024
b5a08ef
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.25
renovate[bot] Oct 11, 2024
6f9b9aa
fix(deps): update rust crate napi to v2.16.12 (#960)
renovate[bot] Oct 13, 2024
dbb16d9
feat(*): upgrade rkyv to 0.8.8
Nickersoft Oct 14, 2024
5d16d70
fix(deps): update rust crate uuid to v1.11.0
renovate[bot] Oct 16, 2024
fff8c84
chore(deps): update pnpm to v9.12.2
renovate[bot] Oct 16, 2024
6b17b43
chore(deps): update dependency @types/node to v20.16.12
renovate[bot] Oct 17, 2024
fa18174
fix(deps): update rust crate sea-query to 0.32.0
renovate[bot] Oct 17, 2024
a12e800
fix(deps): update rust crate pulldown-cmark to v0.12.2
renovate[bot] Oct 17, 2024
bf7c862
chore(deps): update dependency java to v21.0.5+11.0.lts
renovate[bot] Oct 17, 2024
04db145
fix(deps): update rust crate serde_json to v1.0.129
renovate[bot] Oct 17, 2024
93fdce7
fix(deps): update rust crate serde_json to v1.0.131
renovate[bot] Oct 18, 2024
bc3be7f
chore(deps): update dependency @types/node to v20.16.13
renovate[bot] Oct 19, 2024
b1d2ddf
fix(deps): update rust crate serde_json to v1.0.132
renovate[bot] Oct 19, 2024
e1a1e25
fix(deps): update rust crate napi to v2.16.13
renovate[bot] Oct 21, 2024
3758b0b
chore(deps): update dependency @types/node to v20.16.14
renovate[bot] Oct 22, 2024
a5feb88
fix(deps): update rust crate serde to v1.0.213
renovate[bot] Oct 22, 2024
14f3e89
chore(deps): update dependency @types/node to v20.16.15
renovate[bot] Oct 23, 2024
fe73f24
chore(deps): update dependency @types/node to v20.17.0
renovate[bot] Oct 23, 2024
41787e6
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.26
renovate[bot] Oct 23, 2024
00fa785
fix(deps): update rust crate regex to v1.11.1
renovate[bot] Oct 24, 2024
0829127
chore(deps): update dependency @types/node to v20.17.1
renovate[bot] Oct 25, 2024
bd76a2d
chore(deps): update rust crate insta to v1.41.0
renovate[bot] Oct 28, 2024
4c50434
chore(deps): update pnpm to v9.12.3
renovate[bot] Oct 28, 2024
c221e8e
fix(deps): update rust crate quick-xml to 0.37.0
renovate[bot] Oct 28, 2024
ee6e8c4
fix(deps): update rust crate serde to v1.0.214
renovate[bot] Oct 28, 2024
b868c64
chore(deps): update dependency @types/node to v20.17.2
renovate[bot] Oct 28, 2024
e00a736
chore(deps): update dependency @types/node to v22
renovate[bot] Oct 29, 2024
79af1c5
chore(deps): update dependency @types/node to v22.8.4
renovate[bot] Oct 29, 2024
2dbbefa
chore(deps): update dependency node to v22
renovate[bot] Oct 29, 2024
1994b44
chore(deps): update dependency @swc/jest to v0.2.37
renovate[bot] Oct 30, 2024
9f6362f
chore(deps): update dependency @types/node to v22.8.5
renovate[bot] Oct 31, 2024
3a4fe8f
chore(deps): update dependency @types/node to v22.8.6
renovate[bot] Oct 31, 2024
de0ed45
chore(deps): update rust crate insta to v1.41.1
renovate[bot] Oct 31, 2024
46464db
chore(deps): update dependency @types/node to v22.8.7
renovate[bot] Nov 3, 2024
15aa1dc
chore(deps): update dependency @types/node to v22.9.0
renovate[bot] Nov 5, 2024
9e72892
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.27 …
renovate[bot] Nov 8, 2024
60af67d
feat(*): add publish command and update Cargo.toml
Nickersoft Nov 9, 2024
f5992eb
feat(*): exclude files from crate
Nickersoft Nov 9, 2024
ceb591a
chore(deps): update dependency gradle to v8.11 (#994)
renovate[bot] Nov 11, 2024
7cd9756
fix(deps): update rust crate serde to v1.0.215 (#995)
renovate[bot] Nov 12, 2024
9cbe610
fix(deps): update rust crate indicatif to v0.17.9 (#996)
renovate[bot] Nov 12, 2024
aa32e9e
chore(deps): update pnpm to v9.13.0 (#997)
renovate[bot] Nov 13, 2024
65505e0
fix(deps): update rust crate clap to v4.5.21 (#998)
renovate[bot] Nov 14, 2024
27a2d14
chore(deps): update pnpm to v9.13.1 (#999)
renovate[bot] Nov 14, 2024
456ae66
chore(deps): update pnpm to v9.13.2 (#1000)
renovate[bot] Nov 15, 2024
d10041a
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.28 …
renovate[bot] Nov 16, 2024
981c223
feat(*): deployment changes (#1002)
Nickersoft Nov 16, 2024
84c9a71
feat(ci): update to use release-please-action v4
Nickersoft Nov 16, 2024
480a4a0
feat(ci): update release-please branches
Nickersoft Nov 16, 2024
aa51cb3
feat(*): update napi config
Nickersoft Nov 16, 2024
08097f8
fix(ci): fix release-please action
Nickersoft Nov 16, 2024
87bc623
chore(deps): update dependency pnpm to v9.13.2 (#1005)
renovate[bot] Nov 16, 2024
fc790df
feat: update release please config
Nickersoft Nov 16, 2024
f4f874d
Merge branch 'v2' of github.com:TheOpenDictionary/odict into v2
Nickersoft Nov 16, 2024
bcd37e4
feat: update release please config
Nickersoft Nov 16, 2024
379e699
fix: update release please config
Nickersoft Nov 17, 2024
8cc6b44
feat: update initial version of cli and lib
Nickersoft Nov 17, 2024
98a7618
feat: fix versions to v2 for cli and lib
Nickersoft Nov 17, 2024
63b93a4
fix(release-please): ignore node Cargo file
Nickersoft Nov 17, 2024
6313ad2
fix(ci): use Mise action instead of PNPM
Nickersoft Nov 17, 2024
0275910
feat(*): replace just runners with mise tasks
Nickersoft Nov 17, 2024
8c3478c
fix(java): fix tests
Nickersoft Nov 17, 2024
ce9c477
fix(ci): fix tests
Nickersoft Nov 17, 2024
414d9c7
fix(*): fix tasks
Nickersoft Nov 17, 2024
0bdeac4
fix(node): depend test on build
Nickersoft Nov 17, 2024
96614fd
fix(deps): update rust crate serde_json to v1.0.133 (#1009)
renovate[bot] Nov 17, 2024
7b509c6
fix(deps): update rust crate uniffi to 0.28.0 (#1006)
renovate[bot] Nov 17, 2024
6f75e7a
feat(ci): update Node version and switch back to Corepack
Nickersoft Nov 17, 2024
996e8de
Revert "fix(ci): use Mise action instead of PNPM"
Nickersoft Nov 17, 2024
6651600
fix(tasks): fix SO error with build-all
Nickersoft Nov 17, 2024
e2960f5
fix: update tasks to use PNPM workspaces
Nickersoft Nov 17, 2024
163584a
fix(napi): update CI
Nickersoft Nov 17, 2024
807cd13
fix(napi): update test script and FreeBSD build
Nickersoft Nov 17, 2024
f717247
fix(deps): update rust crate quick-xml to v0.37.1 (#1011)
renovate[bot] Nov 18, 2024
6870489
fix(napi): update CI
Nickersoft Nov 18, 2024
887b216
fix(napi): upload full dist dir
Nickersoft Nov 18, 2024
928d53d
fix(ci): update Napi CI
Nickersoft Nov 18, 2024
6b3fa9b
fix: add cargo-insta as dependency
Nickersoft Nov 18, 2024
66db18c
chore(deps): update pnpm to v9.14.1 (#1010)
renovate[bot] Nov 20, 2024
bcebc36
chore(deps): update pnpm to v9.14.2 (#1013)
renovate[bot] Nov 20, 2024
ba39a43
feat(napi): update CI
Nickersoft Nov 23, 2024
3169c01
fix(*): move away from corepack and update Node CI
Nickersoft Nov 23, 2024
6071107
fix(*): add back corepack
Nickersoft Nov 23, 2024
86f6a71
fix: update Napi CI
Nickersoft Nov 23, 2024
06d93d0
feat(napi): test out NAPI alpha
Nickersoft Nov 23, 2024
62b1b73
chore(deps): update dependency @napi-rs/cli to v2.18.4 (#1014)
renovate[bot] Nov 23, 2024
023ca2c
feat(*): add cargo dist to tools
Nickersoft Nov 24, 2024
99d8436
feat: change binary name to odict
Nickersoft Nov 24, 2024
274b9d8
fix: mark Node bindings as unpublishable
Nickersoft Nov 24, 2024
98ba808
feat: add library publish workflow
Nickersoft Nov 24, 2024
c688d43
feat: fix NAPI CI (#1015)
Nickersoft Nov 24, 2024
42c2afb
fix: disable NAPI upgrades
Nickersoft Nov 24, 2024
6bcea66
feat(*): reduce unnecessary Lazy declarations and remove once_cell (#…
Nickersoft Nov 24, 2024
2dd0028
chore(deps): update pnpm to v10.0.0-alpha.3 (#1018)
renovate[bot] Nov 25, 2024
2aae0ee
chore(deps): update pnpm to v10.0.0-alpha.4 (#1019)
renovate[bot] Nov 25, 2024
af6f4c4
fix(deps): update rust crate rkyv to v0.8.9 (#1020)
renovate[bot] Nov 25, 2024
a0c7ba7
fix(deps): update rust crate charabia to v0.9.2 (#1021)
renovate[bot] Nov 27, 2024
5260c4d
chore(deps): update dependency kotlin to v2.1.0 (#1022)
renovate[bot] Nov 27, 2024
7ef1fc8
chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#1023)
renovate[bot] Nov 27, 2024
4c6f03e
chore(deps): update plugin com.google.devtools.ksp to v2.1.0-1.0.29 (…
renovate[bot] Nov 28, 2024
4fddd74
chore(deps): update pnpm to v10.0.0-beta.0 (#1025)
renovate[bot] Nov 28, 2024
bb62629
chore(deps): update pnpm to v10.0.0-beta.1 (#1026)
renovate[bot] Nov 29, 2024
c3dd253
chore(deps): update dependency act to v0.2.70 (#1027)
renovate[bot] Dec 1, 2024
572a0c1
fix(deps): update rust crate sea-query to v0.32.1 (#1028)
renovate[bot] Dec 2, 2024
3cd314a
fix(deps): update rust crate napi-derive to v2.16.13 (#1029)
renovate[bot] Dec 3, 2024
b8b8fcc
fix(deps): update rust crate clap to v4.5.22 (#1030)
renovate[bot] Dec 4, 2024
fd52949
chore(deps): update dependency python to v3.13.1 (#1032)
renovate[bot] Dec 4, 2024
2a9cf83
chore(deps): update dependency node to v22.12.0 (#1031)
renovate[bot] Dec 4, 2024
04d0896
fix(deps): update dependency com.squareup.moshi:moshi to v1.15.2 (#1033)
renovate[bot] Dec 5, 2024
ddbd48d
fix(deps): update dependency com.squareup.moshi:moshi-kotlin to v1.15…
renovate[bot] Dec 6, 2024
0ebeb56
fix(deps): update dependency com.squareup.moshi:moshi-kotlin-codegen …
renovate[bot] Dec 6, 2024
228ca8a
fix(deps): update rust crate clap to v4.5.23 (#1036)
renovate[bot] Dec 6, 2024
8c49830
chore(deps): update pnpm to v10.0.0-beta.2 (#1037)
renovate[bot] Dec 9, 2024
797dfea
fix(deps): update rust crate serde to v1.0.216 (#1038)
renovate[bot] Dec 11, 2024
518a0e0
chore(deps): update pnpm to v10.0.0-beta.3 (#1039)
renovate[bot] Dec 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
10 changes: 1 addition & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

examples/wiktionary.xml filter=lfs diff=lfs merge=lfs -text
45 changes: 45 additions & 0 deletions .github/workflows/cli-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Tests

on:
push:
branches: [v2]
pull_request:
branches: [v2]

jobs:
test:
name: Build
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- name: linux-amd64
runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
- name: win-amd64
runner: windows-latest
target: x86_64-pc-windows-msvc
- name: macos-amd64
runner: macos-latest
target: x86_64-apple-darwin
- name: macos-arm64
runner: macos-latest
target: aarch64-apple-darwin
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"
- name: Add Rust target
run: rustup target add ${{ matrix.target }}
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Build CLI
run: cargo build --verbose --locked --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: code
path: /home/runner/work/odict
327 changes: 327 additions & 0 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
#
# Copyright 2022-2024, axodotdev
# SPDX-License-Identifier: MIT or Apache-2.0
#
# CI that:
#
# * checks for a Git Tag that looks like a release
# * builds artifacts with dist (archives, installers, hashes)
# * uploads those artifacts to temporary workflow zip
# * on success, uploads the artifacts to a GitHub Release
#
# Note that a GitHub Release with this tag is assumed to exist as a draft
# with the appropriate title/body, and will be undrafted for you.

name: Release
permissions:
"contents": "write"

# This task will run whenever you push a git tag that looks like a version
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where
# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION
# must be a Cargo-style SemVer Version (must have at least major.minor.patch).
#
# If PACKAGE_NAME is specified, then the announcement will be for that
# package (erroring out if it doesn't have the given version or isn't dist-able).
#
# If PACKAGE_NAME isn't specified, then the announcement will be for all
# (dist-able) packages in the workspace with that version (this mode is
# intended for workspaces with only one dist-able package, or with all dist-able
# packages versioned/released in lockstep).
#
# If you push multiple tags at once, separate instances of this workflow will
# spin up, creating an independent announcement for each one. However, GitHub
# will hard limit this to 3 tags per commit, as it will assume more tags is a
# mistake.
#
# If there's a prerelease-style suffix to the version, then the release(s)
# will be marked as a prerelease.
on:
pull_request:
push:
tags:
- 'cli**[0-9]+.[0-9]+.[0-9]+*'

jobs:
# Run 'dist plan' (or host) to determine what tasks we need to do
plan:
runs-on: "ubuntu-20.04"
outputs:
val: ${{ steps.plan.outputs.manifest }}
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
tag-flag: ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }}
publishing: ${{ !github.event.pull_request }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dist
# we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.25.1/cargo-dist-installer.sh | sh"
- name: Cache dist
uses: actions/upload-artifact@v4
with:
name: cargo-dist-cache
path: ~/.cargo/bin/dist
# sure would be cool if github gave us proper conditionals...
# so here's a doubly-nested ternary-via-truthiness to try to provide the best possible
# functionality based on whether this is a pull_request, and whether it's from a fork.
# (PRs run on the *source* but secrets are usually on the *target* -- that's *good*
# but also really annoying to build CI around when it needs secrets to work right.)
- id: plan
run: |
dist ${{ (!github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)) || 'plan' }} --output-format=json > plan-dist-manifest.json
echo "dist ran successfully"
cat plan-dist-manifest.json
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v4
with:
name: artifacts-plan-dist-manifest
path: plan-dist-manifest.json

# Build and packages all the platform-specific things
build-local-artifacts:
name: build-local-artifacts (${{ join(matrix.targets, ', ') }})
# Let the initial task tell us to not run (currently very blunt)
needs:
- plan
if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }}
strategy:
fail-fast: false
# Target platforms/runners are computed by dist in create-release.
# Each member of the matrix has the following arguments:
#
# - runner: the github runner
# - dist-args: cli flags to pass to dist
# - install-dist: expression to run to install dist on the runner
#
# Typically there will be:
# - 1 "global" task that builds universal installers
# - N "local" tasks that build each platform's binaries and platform-specific installers
matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}
runs-on: ${{ matrix.runner }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json
steps:
- name: enable windows longpaths
run: |
git config --global core.longpaths true
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dist
run: ${{ matrix.install_dist }}
# Get the dist-manifest
- name: Fetch local artifacts
uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: target/distrib/
merge-multiple: true
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- name: Build artifacts
run: |
# Actually do builds and make zips and whatnot
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "dist ran successfully"
- id: cargo-dist
name: Post-build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell.
shell: bash
run: |
# Parse out what we just built and upload it to scratch storage
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"

cp dist-manifest.json "$BUILD_MANIFEST_NAME"
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: artifacts-build-local-${{ join(matrix.targets, '_') }}
path: |
${{ steps.cargo-dist.outputs.paths }}
${{ env.BUILD_MANIFEST_NAME }}

# Build and package all the platform-agnostic(ish) things
build-global-artifacts:
needs:
- plan
- build-local-artifacts
runs-on: "ubuntu-20.04"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cached dist
uses: actions/download-artifact@v4
with:
name: cargo-dist-cache
path: ~/.cargo/bin/
- run: chmod +x ~/.cargo/bin/dist
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
- name: Fetch local artifacts
uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: target/distrib/
merge-multiple: true
- id: cargo-dist
shell: bash
run: |
dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
echo "dist ran successfully"

# Parse out what we just built and upload it to scratch storage
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"

cp dist-manifest.json "$BUILD_MANIFEST_NAME"
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: artifacts-build-global
path: |
${{ steps.cargo-dist.outputs.paths }}
${{ env.BUILD_MANIFEST_NAME }}
# Determines if we should publish/announce
host:
needs:
- plan
- build-local-artifacts
- build-global-artifacts
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: "ubuntu-20.04"
outputs:
val: ${{ steps.host.outputs.manifest }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cached dist
uses: actions/download-artifact@v4
with:
name: cargo-dist-cache
path: ~/.cargo/bin/
- run: chmod +x ~/.cargo/bin/dist
# Fetch artifacts from scratch-storage
- name: Fetch artifacts
uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: target/distrib/
merge-multiple: true
- id: host
shell: bash
run: |
dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json > dist-manifest.json
echo "artifacts uploaded and released successfully"
cat dist-manifest.json
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v4
with:
# Overwrite the previous copy
name: artifacts-dist-manifest
path: dist-manifest.json
# Create a GitHub Release while uploading all files to it
- name: "Download GitHub Artifacts"
uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: artifacts
merge-multiple: true
- name: Cleanup
run: |
# Remove the granular manifests
rm -f artifacts/*-dist-manifest.json
- name: Create GitHub Release
env:
PRERELEASE_FLAG: "${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"
RELEASE_COMMIT: "${{ github.sha }}"
run: |
# If we're editing a release in place, we need to upload things ahead of time
gh release upload "${{ needs.plan.outputs.tag }}" artifacts/*

gh release edit "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --draft=false

publish-homebrew-formula:
needs:
- plan
- host
runs-on: "ubuntu-20.04"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLAN: ${{ needs.plan.outputs.val }}
GITHUB_USER: "axo bot"
GITHUB_EMAIL: "[email protected]"
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
steps:
- uses: actions/checkout@v4
with:
repository: "TheOpenDictionary/homebrew-odict"
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
# So we have access to the formula
- name: Fetch homebrew formulae
uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: Formula/
merge-multiple: true
# This is extra complex because you can make your Formula name not match your app name
# so we need to find releases with a *.rb file, and publish with that filename.
- name: Commit formula files
run: |
git config --global user.name "${GITHUB_USER}"
git config --global user.email "${GITHUB_EMAIL}"

for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do
filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output)
name=$(echo "$filename" | sed "s/\.rb$//")
version=$(echo "$release" | jq .app_version --raw-output)

export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew update
# We avoid reformatting user-provided data such as the app description and homepage.
brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true

git add "Formula/${filename}"
git commit -m "${name} ${version}"
done
git push

announce:
needs:
- plan
- host
- publish-homebrew-formula
# use "always() && ..." to allow us to wait for all publish jobs while
# still allowing individual publish jobs to skip themselves (for prereleases).
# "host" however must run to completion, no skipping allowed!
if: ${{ always() && needs.host.result == 'success' && (needs.publish-homebrew-formula.result == 'skipped' || needs.publish-homebrew-formula.result == 'success') }}
runs-on: "ubuntu-20.04"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
Loading
Loading