Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put more code behind feature flags? #319

Open
thomaseizinger opened this issue Oct 14, 2019 · 1 comment
Open

Put more code behind feature flags? #319

thomaseizinger opened this issue Oct 14, 2019 · 1 comment

Comments

@thomaseizinger
Copy link
Contributor

Currently, depending on emerald-vault-core brings in a lot of dependencies, like librocksdb-sys which takes a long time to compile.
In addition, the shared library libusb-1.0 needs to be installed in order to compile it.

We are only using emerald-core-vault for the core feature of signing transactions offline. It would be nice if there were a set of feature flags that allows us to not compile all the other code if we are not using it.

I've played around with the current flags and also noticed that they are actually not working. Compiling with --no-default-features for example doesn't work and even if I add --features fs-storage it still fails :(

The CI build doesn't seem to test all the possible combinations. It would be good if it were to avoid these kind of problems.

@splix
Copy link
Member

splix commented Oct 14, 2019

Thank you for your input. We were using it as a standalone server mostly, i.e. always expected all of the features. Though now we started to use it as a lib instead, and I agree it's not well designed/written for such case and needs to be refactored.

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

No branches or pull requests

2 participants