-
Notifications
You must be signed in to change notification settings - Fork 671
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
Make rusqlite optional #4791
Make rusqlite optional #4791
Conversation
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!
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; just a couple nits to address before approving
Also, I think you should update CI with these |
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, just address Jude's comments
@wileyj I'd like to add Note: in the feature we'll also add checks to make sure that clarity compile to |
can you walk me through what you want to do here? is the idea to adjust a current workflow, or are we adding a new one? |
@wileyj Add a new one. We want to make sure that the clarity package passes the check with no default feature and the We can probably do that outside of this PR i guess |
got it - yes, this can be addressed in that actions repo so not a blocker on this PR. i'll ping you outside of this PR |
I think it's better to do the CI work in an other PR. Maybe even after we can compile clarity to wasm |
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.
👍
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR is part of an initiative to reduce the size and the impact of #4756.
Description
Isolate the
rusqlite
dependency instacks-common
andclarity
behind a cargo feature.This allows to use the clarity-vm without the
rusqlite
dependency, as it's done in Clarinet.This PR adds a
canonical
cargo feature tostacks-common
andclarity
.Ultimately, the cargo
features
of these 2 Cargo.toml will get more complex, as they are in #4756 (see here and there). But compared to the other PR, I didn't add a extrasqlite
feature which appears to be useless.Question:
To make sure that the PR works as expected, you can run
And make sure that rusqlite isn't pulled in clarity
> cargo tree -i rusqlite -p clarity --no-default-features --features=developer-mode
(should output
error: package ID specification
rusqlitedid not match any packages
)Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml