I am currently evaluating the rust SDK for usage in a rust project: https://github.com/consensus-shipyard/ipc/pull/1297 (the relevant code is under dagger/dagger.rs, run with cargo run from the repo root).
I am using a set of directory mappings to pass artifacts back to the host AND use these in the following steps. Unfortunately, I don't see any of the calls I am making being cached despite only ever chaning the dagger/dagger.rs file.
There are two questions:
- how is caching supposed to work, I found the existing documentation to be a bit lacking, particularly around diagnosing, particularly why a cache was invalidated
- does the order of
with_execandwith_mounted_directorymatter? I suppose so for the following execution context, but hopefully (?) less so far caching.
It'd be great if you could point me in the right direction