-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 js-feature non default #10445
Make js-feature non default #10445
Conversation
crates/rpc/rpc/Cargo.toml
Outdated
@@ -84,6 +84,8 @@ jsonrpsee-types.workspace = true | |||
jsonrpsee = { workspace = true, features = ["client"] } | |||
|
|||
[features] | |||
|
|||
js-tracer = ["revm-inspectors/js-tracer"] |
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 likely needs to also be enabled for eth-rpc-types
crates/rpc/rpc/Cargo.toml
Outdated
@@ -84,6 +84,8 @@ jsonrpsee-types.workspace = true | |||
jsonrpsee = { workspace = true, features = ["client"] } | |||
|
|||
[features] | |||
|
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.
let's make js-tracer default here, for this pr, and solve making it non-default in this crate in a followup pr
wait, why does this even compile this should not compile if the feature is not enabled reth/crates/rpc/rpc/src/debug.rs Lines 404 to 405 in bb734e9
|
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
@@ -27,7 +27,7 @@ reth-tasks = { workspace = true, features = ["rayon"] } | |||
reth-transaction-pool.workspace = true | |||
reth-chainspec.workspace = true | |||
reth-execution-types.workspace = true | |||
reth-rpc-eth-types = { workspace = true, features = ["js-tracer"] } |
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 think maybe this place make compile.
@@ -50,6 +50,8 @@ dyn-clone.workspace = true | |||
tracing.workspace = true | |||
|
|||
[features] | |||
default = ["js-tracer"] |
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.
remove this feature then debug.rs can't compile。 The errors
error[E0422]: cannot find struct, variant or union type `TransactionContext` in this scope
--> crates/rpc/rpc/src/debug.rs:121:30
|
121 | Some(TransactionContext {
| ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `TransactionRequest`
|
::: /Users/ysg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-rpc-types-eth-0.2.1/src/transaction/request.rs:17:1
|
17 | pub struct TransactionRequest {
| ----------------------------- similarly named struct `TransactionRequest` defined here
error[E0422]: cannot find struct, variant or union type `TransactionContext` in this scope
--> crates/rpc/rpc/src/debug.rs:269:26
|
269 | Some(TransactionContext {
| ^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `TransactionRequest`
Do we need to touch revm-inspectors? @mattsse
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.
okay, since dealing with features is a bit weird, I want to merge it like this and transition to non default js-trace crate
@nkysg next step would be feature gating all the jstracer usage, e.g. if js-tracer feature is missing this should return an unsupported error: reth/crates/rpc/rpc/src/debug.rs Line 391 in a942467
|
Got it |
towards #10441