Skip to content

Revert MDBX FFI C# binding and entry type update changes#4

Merged
zzstar101 merged 2 commits into
masterfrom
codex/revert-mdbx-ffi-csharp-entry-type
Jun 4, 2026
Merged

Revert MDBX FFI C# binding and entry type update changes#4
zzstar101 merged 2 commits into
masterfrom
codex/revert-mdbx-ffi-csharp-entry-type

Conversation

@zzstar101

Copy link
Copy Markdown
Collaborator

Summary

  • Reverts e90ab65dc7220c36328c535aac114730c0240d56 to restore the MDBX FFI guard that prevents update_entry from changing an entry's type.
  • Reverts fdf33827bbe44c6c29ae3abf0ac9646803aca00f, removing the C# UniFFI binding exposure, uniffi.toml, and the PowerShell binding generation script.
  • Restores the previous mdbx-ffi dependency/version surface and smoke test coverage.

Test Plan

  • cargo test -p mdbx-ffi

Copilot AI review requested due to automatic review settings June 4, 2026 12:18
@zzstar101 zzstar101 merged commit 7707792 into master Jun 4, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts prior changes to the mdbx-ffi UniFFI surface by reintroducing a guard that prevents update_entry from mutating an entry’s type, and by removing the C# UniFFI binding configuration and generation script.

Changes:

  • Restores update_entry behavior to reject entry-type changes (constraint violation if the requested type doesn’t match the stored type).
  • Removes C# binding artifacts (uniffi.toml and PowerShell generation script) and trims the exposed FFI API accordingly.
  • Updates lockfile/dependency graph (notably via the UniFFI version change in mdbx-ffi).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/generate-csharp-bindings.ps1 Removed PowerShell script used to generate C# UniFFI bindings.
crates/mdbx-ffi/uniffi.toml Removed C# UniFFI bindings configuration.
crates/mdbx-ffi/tests/ffi_smoke.rs Removes attachment and entry-type-mutation assertions; keeps generic smoke coverage.
crates/mdbx-ffi/src/lib.rs Removes attachment/project-list APIs and enforces “no entry type changes” in update_entry.
crates/mdbx-ffi/Cargo.toml Changes UniFFI dependency version requirement.
Cargo.lock Reflects dependency resolution changes (UniFFI and transitive updates).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 12 to 17
mdbx-core = { path = "../mdbx-core" }
mdbx-storage = { path = "../mdbx-storage" }
serde_json = { workspace = true }
thiserror = { workspace = true }
uniffi = "=0.29.4"
uniffi = "0.31.1"
zeroize = { workspace = true }
Comment on lines 157 to 159
vault
.delete_entry(source.project_id.clone(), created.entry_id.clone())
.unwrap();
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