-
Notifications
You must be signed in to change notification settings - Fork 219
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
feat: remove unused dependencies #5144
feat: remove unused dependencies #5144
Conversation
@@ -42,5 +39,5 @@ wasm-bindgen-test = "0.3.28" | |||
|
|||
[features] | |||
avx2 = ["tari_crypto/simd_backend"] | |||
js = ["getrandom/js", "js-sys"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be needed to provide random to JS. Guessing machete might not take this into account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wasm tests should fail if this is the case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I manually tested this with 'cargo build - - all-features' if the wasm build with this then it is it should be fine. I picked up 2 issues with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo test isn't even compiling on this branch.
anyway, the js
feature is needed by the wasm
feature right beneath it.
test locally in base_layer/key_manager/
by running make test
https://github.com/tari-project/tari/blob/development/base_layer/key_manager/Makefile#L4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Js feature is not removed, its still there. Like you say its used by the wasm
feature branch.
This PR only removes "getrandom/js"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the CI, the key manager wasm tests all pass.
36186e0
to
513af56
Compare
Its weird that the cargo test compiles and runs fine locally not on CI |
I'm happy |
ca9f9af
to
5e0c972
Compare
It all green now, |
5e0c972
to
edb5d8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to merge this PR, but I think it's worth adding a few CI jobs in this PR as well.
- Add a cargo machete job
- Confirm the wasm build is being done
1 can def be a separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Removed all unused dependencies.
Includes
[package.metadata.cargo-machete]
for false positivesHow Has This Been Tested?
Manual, unit tests
Fixes: #5136