added rest api

This commit is contained in:
Shautvast 2024-07-03 13:27:55 +02:00
parent 8af6881d3e
commit a7bfe88d1c

View file

@ -7,8 +7,7 @@ Work in Progress. Proof of concept works, but needs optimization. Try this at ho
Running: Running:
* Update the path to the rust lib (temp fix) in ExceptionLogger for your setup * Update the path to the rust lib (temp fix) in ExceptionLogger for your setup
* mvn clean install * mvn clean install `#maven also takes care of cargo`
* cd rustlib; cargo build
* create a minimal class in a separate project * create a minimal class in a separate project
```java ```java
public class Main { public class Main {
@ -19,5 +18,9 @@ public class Main {
``` ```
* run it with (adjust paths): * run it with (adjust paths):
``` bash ``` bash
cd api; RUST_LOG=info cargo run
```
```
java22 -javaagent:$EXCEPTIONAL_PROJECT/exceptional/agent/target/exceptional-agent-1.0-SNAPSHOT.jar --enable-preview -classpath $YOUR_CLASSPATH Main java22 -javaagent:$EXCEPTIONAL_PROJECT/exceptional/agent/target/exceptional-agent-1.0-SNAPSHOT.jar --enable-preview -classpath $YOUR_CLASSPATH Main
``` ```