Commit graph

59 commits

Author SHA1 Message Date
d0dbd2dd3f
feat: FromJava impl for primitive arrays 2024-09-24 21:13:15 +02:00
5259d8716d
chore: Merge branch 'feat/intermediate-trait' 2024-09-24 20:39:32 +02:00
9160772fd4
docs: put .jclass() in example expansion 2024-09-24 05:03:42 +02:00
4d2debf789
fix: jni::errors::Error::NullPtr throws NullPtr 2024-09-24 05:02:49 +02:00
47bb45a387
test: nullptr class, nullable returns 2024-09-24 05:02:11 +02:00
358586c513
fix: inline more 2024-09-24 04:46:02 +02:00
a5befdc481
docs: doesnt do the unsafe clone anymore 2024-09-24 04:44:09 +02:00
a3918afaaf
test: passing env and JString 2024-09-24 03:26:37 +02:00
1389f71c97
feat: auto into java object for JNI types 2024-09-24 03:26:24 +02:00
f67b1a7b3f
fix: passing &mut env doesnt break jni fn 2024-09-24 03:15:19 +02:00
d52677eed8
feat: option to force inline inner fn 2024-09-24 03:15:05 +02:00
a7c0b6881e
fix: don't unsafely clone env
was safe but better no unsafe at all
2024-09-24 03:14:45 +02:00
ef9237b74a
docs: simplify a bit example expansion
remove recursive macro expansions basically
2024-09-24 02:52:36 +02:00
3d3bc8b6d5
test: vecs, options, nulls, also build with gradle 2024-09-24 02:29:31 +02:00
218a816c2d
ci: build test lib 2024-09-24 02:01:37 +02:00
b61165c1f5
ci: run tests on any branch 2024-09-24 01:59:30 +02:00
a1f9e8dfc1
test: add simple tests on java side 2024-09-24 01:58:10 +02:00
10547d92b0
chore: temp relative dep to use this from git
TODO change it back before publishing
2024-09-23 18:08:43 +02:00
8e53c475c2
docs: updated readme 2024-09-23 18:02:27 +02:00
0580422abf
chore: add uuid feature 2024-09-23 18:00:31 +02:00
5e69eca9d6
feat: simplify IntoJava family
basically it's all IntoJava, but there's another trait layer,
IntoJavaObject, which downstream library users should implement. Every
IntoJavaObject automatically implements IntoJava too
2024-09-23 17:59:31 +02:00
50be86d2a4
chore: split down main lib file with traits 2024-09-23 14:46:45 +02:00
6f424dadf7
docs: updated README, minimal rustdocs 2024-09-23 00:50:52 +02:00
d6c0aa2f9e
feat: working but questionable intermediate trait implementation 2024-09-23 00:23:42 +02:00
2337ef01c0
fix: use get_string_unchecked for better performance 2024-09-22 21:25:26 +02:00
d6e079eb00
feat: allow passing JObject and JObjectArray directly 2024-09-22 21:16:30 +02:00
521fc36093
feat: intermediate trait between objects and primitives 2024-09-22 20:40:13 +02:00
a12c26328c
feat: tentative Vec<T> impl for objects 2024-09-22 18:53:39 +02:00
66e810015e
feat: added uuid feature 2024-09-22 16:41:11 +02:00
006d76eea9
feat: builtin conversions for &str as well 2024-09-22 16:16:42 +02:00
78b57d6e58
ci: added simple ci, improved readme 2024-09-22 02:12:04 +02:00
cfa0794024
chore: update lockfile 2024-09-22 02:05:38 +02:00
24dc4ef51b
docs: more examples 2024-09-22 02:03:21 +02:00
62c4081694
chore: retab readme 2024-09-22 01:57:39 +02:00
561279d1dd
chore: bump versions 2024-09-22 01:56:11 +02:00
6dc3bd3f43
docs: updated readme 2024-09-22 01:54:26 +02:00
1d00db2648
fix: return type void in result 2024-09-22 01:37:28 +02:00
3a09386878
feat: auto from/into impls, blanket Option<> impl 2024-09-22 01:37:03 +02:00
95eb528549
feat: automatic FromJava conversions 2024-09-22 00:09:46 +02:00
4daaad5faf
feat: allow skipping env/class in args
also removed a bit of clones but added more...
2024-09-21 23:03:02 +02:00
e855659e1a
chore: refactored macro more 2024-09-21 20:46:48 +02:00
f136071c10
feat: JniToolboxError trait also for JniError 2024-09-21 20:15:04 +02:00
8f272bd905
chore: refactored macro a bit 2024-09-21 20:14:51 +02:00
4d511bbcb3
fix: bump also outer crate 2024-09-21 18:50:09 +02:00
0208c500ec
chore: bump versions 2024-09-21 18:49:22 +02:00
19ebaddd6d
feat: impl JniToolboxError, allow returning ptr 2024-09-21 18:48:30 +02:00
f37c1ed7ae
fix: bump version 2024-09-21 18:08:58 +02:00
d3da081886
fix: handle mut modifier in arguments 2024-09-21 18:08:19 +02:00
f00b8dc398
chore: update lockfile 2024-09-21 17:58:45 +02:00
3bd3addc64
fix: use raw exception class path 2024-09-21 17:58:33 +02:00