Skip to main content

rust_anything/
codegen_kotlin.rs

1//! Kotlin's generated artifacts are Java artifacts.
2//!
3//! A Kotlin top-level function compiles to a static method on `<File>Kt`, and `@JvmStatic`
4//! in an `object` compiles to a static method on that class. Java source can call both, so
5//! the Java JNI codegen, batch codegen, reflection driver and shadow generation are reused
6//! unchanged. Keeping one generator also keeps generated code under the same clippy gate.
7
8pub use crate::codegen_java::{
9    DRIVER_JAVA, ERROR_JAVA, JSON_JAVA, WIRE_JAVA, native_class, shadows, targets, typed_rs,
10    wire_rs, wrappers,
11};