-
Notifications
You must be signed in to change notification settings - Fork 88
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
Mark js-sys
as optional for identity_core
#1405
Mark js-sys
as optional for identity_core
#1405
Conversation
In iotaledger#1397 my intention was to make the `js-sys` dependency mutually exclusive with the feature `custom_time`. As it turns out, it's not that simple and mixing target specific dependencies with feature specific dependencies does not actually work. See [here](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies) and [here](https://doc.rust-lang.org/cargo/reference/features.html#mutually-exclusive-features). So this removes the broken feature reference in the dependency declaration and instead marks it as `optional`. Also, the feature `custom_time` takes precedence over `js-sys` so these do not actually conflict and one _could_ enable both.
@itsyaasir: Sorry to bother you again, but I made a mistake in #1397 and this PR fixes it. |
@frederikrothenberger |
@itsyaasir: Yes, the optional is required, otherwise you cannot compile to But we should be able to enable it by default (still gated by the |
That should be fine. We are also using the js-sys dependency for wasm bindings with ts |
@itsyaasir: I made it a default feature. |
Did you forget to push the changes ? I can't see the dependency being a default feature. You modified this |
@itsyaasir: Yes, my bad. I got confused about the default switches. Fixed now. |
Co-authored-by: Yasir <[email protected]>
Description of change
In #1397 my intention was to make the
js-sys
dependency mutually exclusive with the featurecustom_time
. As it turns out, it's not that simple and mixing target specific dependencies with feature specific dependencies does not actually work. See here and here.So this removes the broken feature reference in the dependency declaration and instead marks it as
optional
. Also, the featurecustom_time
takes precedence overjs-sys
so these do not actually conflict and one could enable both.Type of change
Add an
x
to the boxes that are relevant to your changes.How the change has been tested
Existing tests
Change checklist
Add an
x
to the boxes that are relevant to your changes.