Skip to content

Commit 9443aeb

Browse files
authored
chore(bridge): switch to property with closure (#74)
* chore(bridge): switch to property with closure Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * fix: install llvm on test container Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * chore: switch to property_with_closure Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * chore: switch to globSync Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> * chore: bump version Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com> --------- Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
1 parent 7b881fe commit 9443aeb

File tree

15 files changed

+358
-560
lines changed

15 files changed

+358
-560
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,23 @@ version = "2.2.3"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
napi = { version = "2.11.2", default-features = false, features = ["napi6", "tokio_rt"] }
11-
napi-derive = "2.11.1"
12-
tokio = "1.25.0"
13-
futures = "0.3.26"
10+
napi = { version = "2.12.4", default-features = false, features = [
11+
"napi2",
12+
"napi3",
13+
"napi4",
14+
"napi5",
15+
"napi6",
16+
"tokio_rt"
17+
] }
18+
napi-derive = "2.12.3"
19+
tokio = "1.26.0"
20+
futures = "0.3.27"
1421
java-locator = "0.1.3"
1522
lazy_static = "1.4.0"
1623
rand = "0.8.5"
1724
glob = "0.3.1"
1825
java-rs = { git = "https://github.com/MarkusJx/java-rs" }
19-
# TODO: remove this once the PR is merged
26+
# TODO: remove this once the next version of napi-sys is released
2027
libloading = "0.7.4"
2128

2229
[build-dependencies]

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ The bindings to java are located in a separate package, [java-rs](https://github
2525
npm i java-bridge
2626
```
2727

28+
## Command line interface
29+
30+
This module also provides a command line interface that allows you to generate typescript definitions for your java classes.
31+
The command line interface is called `java-ts-definition-generator` and can be installed using `npm install -g java-ts-definition-generator`.
32+
The full documentation can be found [here](https://github.com/MarkusJx/java-ts-definition-generator).
33+
2834
## Build instructions
2935

3036
_This is only required for development purposes. When installing the package using `npm i`, you can skip this._
@@ -288,9 +294,3 @@ const guard = stdout.enableRedirect(
288294
13. `char` or `java.lang.Character` values will be converted to `string`
289295
14. Java arrays will be converted to javascript arrays, applying the rules mentioned above except
290296
15. Byte arrays will be converted to `Buffer` and vice-versa
291-
292-
## Command line interface
293-
294-
This module also provides a command line interface that allows you to generate typescript definitions for your java classes.
295-
The command line interface is called `java-ts-definition-generator` and can be installed using `npm install -g java-ts-definition-generator`.
296-
The full documentation can be found [here](https://github.com/MarkusJx/java-ts-definition-generator).

0 commit comments

Comments
 (0)