Release 0.1.0 - REST API sample + CC/AR env vars + path fix#35
Merged
andrefigas merged 4 commits intomainfrom Feb 7, 2026
Merged
Release 0.1.0 - REST API sample + CC/AR env vars + path fix#35andrefigas merged 4 commits intomainfrom
andrefigas merged 4 commits intomainfrom
Conversation
ReflectionJVM and ReflectionNative used File(extension.rustPath) which resolved relative to the Gradle daemon working directory instead of the project root, causing "Could not find lib.rs" errors. Changed to FileUtils.getRustDir(project, extension) which correctly resolves relative to project.rootProject.projectDir.
Pass CC_<target> and AR_<target> env vars to cargo build, pointing to the NDK clang and llvm-ar. This enables compilation of Rust crates that depend on C code via cc-rs (e.g. ring, openssl-sys, libsqlite3-sys) which was previously failing with "failed to find tool clang.exe".
3afa51c to
9b3b167
Compare
New sample demonstrating HTTP client implemented purely in Rust using Tokio runtime, reqwest with rustls-tls, and serde for JSON parsing. Calls the Dog API (dog.ceo) with three JNI functions: getRandomDog, listBreeds, and getBreedImage. This sample exercises the new CC/AR env var support since reqwest depends on ring (C/ASM via cc-rs).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sample/restapi) using Tokio + reqwest + serde calling the Dog APITest plan
sample/restapiwithgradlew assembleDebug(exercises CC/AR env vars)sample/kotlinto verify path resolution fix