-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathuniffi.toml
More file actions
22 lines (19 loc) · 957 Bytes
/
Copy pathuniffi.toml
File metadata and controls
22 lines (19 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[bindings.kotlin]
package_name = "computer.iroh"
cdylib_name = "iroh_ffi"
# android = true # enabling this injects androidx.annotation.RequiresApi
# # and Build.VERSION_CODES.UPSIDE_DOWN_CAKE into iroh_ffi.kt,
# # which can't compile under the pure JVM java-library plugin.
# # Re-enable once kotlin/lib is split into a JVM module + a
# # com.android.library AAR module. PR #237's JNI context init
# # (IrohAndroid + src/android_init.rs) works without it.
# `Endpoint::close()` collides with `java.lang.AutoCloseable.close()` which
# uniffi-kotlin implements (non-suspend) on every object. Our close() is async,
# so the JVM sees conflicting overloads. Rename only for the Kotlin binding;
# all other languages keep `close()`.
[bindings.kotlin.rename]
"Endpoint.close" = "shutdown"
[bindings.python]
cdylib_name = "iroh_ffi"
[bindings.swift]
cdylib_name = "iroh_ffi"