chore: remove FFI layer#776
Conversation
Delete the `dash-spv-ffi` and `key-wallet-ffi` crates and remove the optional `ffi` feature, `ffi` module, `build.rs`, and `cbindgen.toml` from `dash-network`. It is no longer used by anything. Keeping it around for potential future use just eats time and tokens to keep it in sync with the Rust API, make sure it's tested and working, and review all the changes happening to it. I think it makes more sense to just generate a new FFI layer if we ever come up with a use case or if someone actually requests it. If someone is actually using it they will probably look into here and are welcome to open an issue, so we can consider reverting the PR. But at the moment all the effort we put into this is better put into something else.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #776 +/- ##
=============================================
+ Coverage 72.66% 76.31% +3.65%
=============================================
Files 320 291 -29
Lines 70319 60846 -9473
=============================================
- Hits 51098 46437 -4661
+ Misses 19221 14409 -4812
|
|
Sam currently doesn't want to remove the KeyWallet wrappers, he is worried about a hypothetical future swift consumer that wants the key derivation features so key-wallet-ffi and dash-network/ffi cannot be removed. I honestly think that focusing in what we need first is a better idea than trying to maintain ffi layers that we don't internally use |
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
Delete the
dash-spv-ffiandkey-wallet-fficrates and remove the optionalffifeature,ffimodule,build.rs, andcbindgen.tomlfromdash-network. It is no longer used by anything. Keeping it around for potential future use just eats time and tokens to keep it in sync with the Rust API, make sure it's tested and working, and review all the changes happening to it.I think it makes more sense to just generate a new FFI layer if we ever come up with a use case or if someone actually requests it. If someone is actually using it they will probably look into here and are welcome to open an issue, so we can consider reverting the PR.
But at the moment all the effort we put into this is better put into something else.