Skip to content

Conversation

@seddonym
Copy link
Collaborator

@seddonym seddonym commented Sep 5, 2025

This moves the writing of the data map file into Rust.

There are two main issues with this at the moment:

  1. The unit tests don't work: the file system test double doesn't seem to maintain state correctly. I think that's because we clone the inner file system within rust when we pass it in, but I don't understand fully.
  2. There seems to be a compatibility issue with old cache files. If we change the cache file format anyway in this PR it probably doesn't matter if we sort that out.

Because this is defined in rust, it allows us to push down more logic
into Rust.
Tests are failing because the file system isn't stateful between calls
across the boundary (I think because we clone the inner file system when
passing it in). Is this inevitable?
There are a couple of problems with this:

- It's incompatible with the old json format for some reason.
- The unit tests don't work because the file system that's passed in
  doesn't maintain its state between the two read / write calls.
@Peter554
Copy link
Collaborator

Peter554 commented Nov 2, 2025

@seddonym I have a passing version of this over here #259

@Peter554
Copy link
Collaborator

Peter554 commented Nov 5, 2025

Closing, since we merged #259

@Peter554 Peter554 closed this Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants