This module is the full runnable compatibility and diagnostics application for rust-java-rest.
It is not the recommended template for a new production service.
It deliberately contains many handlers, response strategies, WebSocket examples, and diagnostics. Those classes are separate from the published production framework JAR.
| Goal | Start with |
|---|---|
| Build a new service | Platform parent plus the smallest starter |
| Learn one endpoint pattern | ../examples |
| Inspect several features together | This compatibility sample |
Do not add this sample JAR as an application dependency.
Run from the rust-java-rest directory:
mvn clean install
mvn -f sample/pom.xml clean package
java -jar sample/target/rust-java-rest-4.6.0-sample.jarVerify the process after startup:
curl http://localhost:8080/app/health
curl http://localhost:8080/diagnostics/routesThe first endpoint must be healthy. Stop the process before switching binaries or profiles.
The application reads server.port and the remaining runtime limits from
sample/src/main/resources/rust-spring.properties plus any external overlay.
| Need | Artifact |
|---|---|
| Production dependency | com.reactor:rust-java-rest:4.6.0 |
| Full compatibility application | sample/target/rust-java-rest-4.6.0-sample.jar |
| Self-contained lean runtime classpath | target/rust-java-rest-4.6.0-core-runtime.jar |
| Build-only processors | rust-java-rest-4.6.0-codegen.jar |
The codegen JAR belongs on the annotation-processor path. It is not a runtime dependency.
- Do not use this full sample's RSS as the framework baseline. Its class and route surface is intentionally much larger than a normal service.
- Use native binaries from the same build. The current source tree expects REST ABI
29.
For normal application development, return to the five-minute project setup.