-
Notifications
You must be signed in to change notification settings - Fork 8
Add support for corepc #19
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
Conversation
Currently the `corpec` repository excludes the `node` crate because it has unusual feature requirements - it requires at least one version feature. Add support for testing `node`. The logic in `build_and_test` is general and uses a new var defined in `contrib/test_vars.sh` but does not require this var to exist. The logic in `do_lint` is ugly and specific to `node`. I couldn't think of a cleaner way to do it.
704b5dc to
d6bcfac
Compare
Currently we do not include the `node` crate in the workspace because `run_task` did not support testing it. However `run_task` is patched in rust-bitcoin/rust-bitcoin-maintainer-tools#19 So we can use it now. Include `node` in the workspace. Configure it to work with the newly patched `run_task`. Add a `extra_tests.sh` script that runs the `node` tests.
Currently we do not include the `node` crate in the workspace because `run_task` did not support testing it. However `run_task` is patched in rust-bitcoin/rust-bitcoin-maintainer-tools#19 So we can use it now. Include `node` in the workspace. Configure it to work with the newly patched `run_task`. Add a `extra_tests.sh` script that runs the `node` tests.
Currently we do not include the `node` crate in the workspace because `run_task` did not support testing it. However `run_task` is patched in rust-bitcoin/rust-bitcoin-maintainer-tools#19 So we can use it now. Include `node` in the workspace. Configure it to work with the newly patched `run_task`. Add a `extra_tests.sh` script that runs the `node` tests.
Currently we do not include the `node` crate in the workspace because `run_task` did not support testing it. However `run_task` is patched in rust-bitcoin/rust-bitcoin-maintainer-tools#19 So we can use it now. Include `node` in the workspace. Configure it to work with the newly patched `run_task`. Add a `extra_tests.sh` script that runs the `node` tests. In order to get MSRV building we make all deps use `default-features = false` then explicitly enable just what we need.
Currently we do not include the `node` crate in the workspace because `run_task` did not support testing it. However `run_task` is patched in rust-bitcoin/rust-bitcoin-maintainer-tools#19 So we can use it now. Include `node` in the workspace. Configure it to work with the newly patched `run_task`. Add a `extra_tests.sh` script that runs the `node` tests. In order to get MSRV building we make all deps use `default-features = false` then explicitly enable just what we need.
|
In d6bcfac: This seems reasonable to me. I think that we could make this a bit simpler and more general though -- rather than having a whitelist of exact features that we need to keep up to date, we could have a blacklist of feature combos that aren't allowed. (Or even just a flag to blacklist "no features at all", which is really all we need.) I think we can use the same blacklist in the clippy thing -- so rather than special-casing corepc we special-case "crates that can't be built with the empty feature set". But what you've done here is ok with me. This repo is inherently going to be crufty and need some special-cases, and isn't necessarily supposed to be easily usable outside the rust-bitcoin ecosystem. |
|
Cool. Lets merge as is and I can improve it at another time if/when I get motivation. |
|
ACK d6bcfac |
Currently the
corpecrepository excludes thenodecrate because it has unusual feature requirements - it requires at least one version feature.Add support for testing
node. The logic inbuild_and_testis general and uses a new var defined incontrib/test_vars.shbut does not require this var to exist.The logic in
do_lintis ugly and specific tonode. I couldn't think of a cleaner way to do it.