Skip to content

Commit 132b4fe

Browse files
authored
Remove TeaVM-WASI support (#1202)
This has been unmaintained for quite some time now and has never reached feature parity with other backends. In preparation for #1192 this commit removes the teavm-java generator entirely with a "tombstone" left in the README about the last commit which had the code.
1 parent 86e8ae2 commit 132b4fe

File tree

11 files changed

+8
-2612
lines changed

11 files changed

+8
-2612
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
matrix:
6060
os: [ubuntu-latest, macos-latest, windows-latest]
6161
# moonbit removed from language matrix for now - causing CI failures
62-
lang: [c, rust, teavm-java, go, csharp]
62+
lang: [c, rust, go, csharp]
6363
exclude:
6464
# For now csharp doesn't work on macos, so exclude it from testing.
6565
- os: macos-latest
@@ -99,14 +99,6 @@ jobs:
9999
shell: powershell
100100
if: matrix.os == 'windows-latest' && matrix.lang == 'moonbit'
101101
102-
- run: ci/download-teavm.sh
103-
if: matrix.lang == 'teavm-java'
104-
- uses: actions/setup-java@v4
105-
if: matrix.lang == 'teavm-java'
106-
with:
107-
java-version: '18'
108-
distribution: 'adopt'
109-
110102
- uses: actions/setup-go@v4
111103
if: matrix.lang == 'go'
112104
with:
@@ -160,7 +152,6 @@ jobs:
160152
- run: cargo build --no-default-features
161153
- run: cargo build --no-default-features --features rust
162154
- run: cargo build --no-default-features --features c
163-
- run: cargo build --no-default-features --features teavm-java
164155
- run: cargo build --no-default-features --features go
165156
- run: cargo build --no-default-features --features csharp
166157
- run: cargo build --no-default-features --features markdown

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ wit-component = "0.227.0"
4242
wit-bindgen-core = { path = 'crates/core', version = '0.40.0' }
4343
wit-bindgen-c = { path = 'crates/c', version = '0.40.0' }
4444
wit-bindgen-rust = { path = "crates/rust", version = "0.40.0" }
45-
wit-bindgen-teavm-java = { path = 'crates/teavm-java', version = '0.40.0' }
4645
wit-bindgen-go = { path = 'crates/go', version = '0.40.0' }
4746
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.40.0' }
4847
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.40.0' }
@@ -60,7 +59,6 @@ wit-bindgen-rust = { workspace = true, features = ['clap'], optional = true }
6059
wit-bindgen-c = { workspace = true, features = ['clap'], optional = true }
6160
wit-bindgen-markdown = { workspace = true, features = ['clap'], optional = true }
6261
wit-bindgen-moonbit = { workspace = true, features = ['clap'], optional = true }
63-
wit-bindgen-teavm-java = { workspace = true, features = ['clap'], optional = true }
6462
wit-bindgen-go = { workspace = true, features = ['clap'], optional = true }
6563
wit-bindgen-csharp = { workspace = true, features = ['clap'], optional = true }
6664
wit-component = { workspace = true }
@@ -71,7 +69,6 @@ default = [
7169
'c',
7270
'rust',
7371
'markdown',
74-
'teavm-java',
7572
'go',
7673
'csharp',
7774
'moonbit',
@@ -80,7 +77,6 @@ default = [
8077
c = ['dep:wit-bindgen-c']
8178
rust = ['dep:wit-bindgen-rust']
8279
markdown = ['dep:wit-bindgen-markdown']
83-
teavm-java = ['dep:wit-bindgen-teavm-java']
8480
go = ['dep:wit-bindgen-go']
8581
csharp = ['dep:wit-bindgen-csharp']
8682
csharp-mono = ['csharp']

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ cd MyApp
325325
dotnet new nugetconfig
326326
```
327327

328-
In the `nuget.config` after `<clear />`make sure you have:
328+
In the `nuget.config` after `<clear />`make sure you have:
329329

330330
```
331331
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
@@ -347,7 +347,7 @@ In the MyApp.csproj add the following to the property group:
347347
Add the native-aot compiler (substitute `win-x64` for `linux-x64` on Linux):
348348

349349
```
350-
dotnet add package Microsoft.DotNet.ILCompiler.LLVM --prerelease
350+
dotnet add package Microsoft.DotNet.ILCompiler.LLVM --prerelease
351351
dotnet add package runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM --prerelease
352352
```
353353

@@ -361,10 +361,11 @@ Checkout out [componentize-dotnet](https://github.com/bytecodealliance/component
361361

362362
### Guest: Java
363363

364-
Java bytecode can be compiled to WebAssembly using
365-
[TeaVM-WASI](https://github.com/fermyon/teavm-wasi). With this generator,
366-
`wit-bindgen` will emit `*.java` files which may be used with any JVM language,
367-
e.g. Java, Kotlin, Clojure, Scala, etc.
364+
This project historically had some support for
365+
[TeaVM-WASI](https://github.com/fermyon/teavm-wasi), but it was unmaintained for
366+
a long time and never was at feature parity with other generators, so it was
367+
removed. The last commit with support for TeaVM-WASI was
368+
https://github.com/bytecodealliance/wit-bindgen/commit/86e8ae2b8b97f11b73b273345b0e00340f017270.
368369

369370
### Guest: TinyGo
370371

ci/download-teavm.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

ci/publish.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const CRATES_TO_PUBLISH: &[&str] = &[
2222
"wit-bindgen-rust",
2323
"wit-bindgen-go",
2424
"wit-bindgen-csharp",
25-
"wit-bindgen-teavm-java",
2625
"wit-bindgen-markdown",
2726
"wit-bindgen-moonbit",
2827
"wit-bindgen-rust-macro",

crates/teavm-java/Cargo.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)