jni-rs | Rust bindings to the Java Native Interface — JNI | Wrapper library
kandi X-RAY | jni-rs Summary
kandi X-RAY | jni-rs Summary
Rust bindings to the Java Native Interface — JNI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jni-rs
jni-rs Key Features
jni-rs Examples and Code Snippets
Community Discussions
Trending Discussions on jni-rs
QUESTION
I'm using an android Java app for the GUI of my program, and am trying to debug the lower-level rust kernel for the GUI. Whereas stdout works on the java side, any printlns from rust side do not show up in the console (android studio). I'm using JNI-RS for the FFI on the rust side. Is this expected behavior? How might the problem be alleviated (without printing to files)?
...ANSWER
Answered 2020-Aug-28 at 23:07For Android you have to use logcat instead of stdout (more details here and there) . The one possible way is to use android_logger or any other crate which provides logcat support.
You can found more information about stdout redirection there.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jni-rs
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page