spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

Transition away from conflicting feature flags in favor of separate crates #417

Closed neysofu closed 2 years ago

neysofu commented 2 years ago

Follow-up PR to #416. This PR fixes many of the problems that we've had in the past related to mutually exclusive Cargo features. In particular, it refactors conditional compilation of the ffi and mock flags into their own separate crates, which allows Cargo to easily avoid conflicts automatically and prepares the ground for fixing #414.

neysofu commented 2 years ago

Good point about source-code reusability both for compiling against FFI and testing purposes (mock). Let met think about a solution.

neysofu commented 2 years ago

@neysofu Since we're keeping the Cargo.lock files (and .gitignore-ing the other artifacts), that's the only comment I have on this PR. We can go ahead and merge it.

Yes we are for now just to keep moving forward, but I've created an issue and we'll definitely address it in the future.