File tree Expand file tree Collapse file tree
src/main/java/dev/restate/sdk/core/sharedcore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ val compileRustToWasm by
3939 outputs.file(wasmFile)
4040 }
4141
42+ val cargoFmt by
43+ tasks.registering(Exec ::class ) {
44+ group = " formatting"
45+ description = " Format the Rust WASM wrapper crate with cargo fmt"
46+ workingDir = rustSrcDir
47+ commandLine(" cargo" , " fmt" )
48+ }
49+
50+ tasks.matching { it.name == " spotlessApply" }.configureEach { dependsOn(cargoFmt) }
51+
4252val copyWasm by
4353 tasks.registering(Copy ::class ) {
4454 group = " build"
Original file line number Diff line number Diff line change 2929class SharedCoreInstance {
3030
3131 private static final Logger LOG = LogManager .getLogger (SharedCoreInstance .class );
32- private static final CBORMapper CBOR = CBORMapper .builder ()
32+ private static final CBORMapper CBOR =
33+ CBORMapper .builder ()
3334 .defaultPropertyInclusion (
34- JsonInclude .Value .construct (
35- JsonInclude .Include .NON_NULL ,
36- JsonInclude .Include .NON_NULL
37- )
38- )
35+ JsonInclude .Value .construct (
36+ JsonInclude .Include .NON_NULL , JsonInclude .Include .NON_NULL ))
3937 .build ();
4038 private static final WasmModule WASM_MODULE =
4139 dev .restate .sdk .core .sharedcore .generated .SharedCoreWasm .load ();
You can’t perform that action at this time.
0 commit comments