Skip to content

nix-utils: remove FfiRealisation wrapper, return Realisation directly from query#1581

Open
amaanq wants to merge 1 commit intoNixOS:masterfrom
obsidiansystems:harmonia-daemon-store
Open

nix-utils: remove FfiRealisation wrapper, return Realisation directly from query#1581
amaanq wants to merge 1 commit intoNixOS:masterfrom
obsidiansystems:harmonia-daemon-store

Conversation

@amaanq
Copy link
Copy Markdown
Member

@amaanq amaanq commented Mar 18, 2026

Callers went through FfiRealisation.as_rust() to deserialize the JSON
into a Realisation every time. Inlining that into the trait method
removes the wrapper struct, the unsafe Send/Sync impls, and the extra
conversion step at each call site.

@artemist
Copy link
Copy Markdown
Member

I don't think DaemonLocalStore is being used at all. We also may not want to rely on the Nix remote protocol, as we will not always have a daemon socket available.

@amaanq amaanq force-pushed the harmonia-daemon-store branch 2 times, most recently from 62bfa3c to c91f5dc Compare March 23, 2026 23:34
@amaanq amaanq marked this pull request as ready for review March 24, 2026 15:37
@amaanq amaanq force-pushed the harmonia-daemon-store branch 3 times, most recently from aa4334e to b547264 Compare March 24, 2026 20:38
@amaanq amaanq changed the title Add pure-Rust daemon store client, clean up BaseStore trait nix-utils: remove FfiRealisation wrapper, return Realisation directly from query Mar 24, 2026
@amaanq amaanq force-pushed the harmonia-daemon-store branch from b547264 to 16c16a9 Compare March 25, 2026 01:01
…ctly from query

Callers went through `FfiRealisation.as_rust()` to deserialize the JSON
into a `Realisation` every time. Inlining that into the trait method
removes the wrapper struct, the unsafe Send/Sync impls, and the extra
conversion step at each call site.
@amaanq amaanq force-pushed the harmonia-daemon-store branch from 16c16a9 to 1cfc034 Compare March 25, 2026 03:37
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.

2 participants