-
Notifications
You must be signed in to change notification settings - Fork 66
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
Cli + Config #246
Cli + Config #246
Conversation
@@ -16,7 +16,7 @@ solana-rpc-client-api = { workspace = true } | |||
solana-transaction-status = { workspace = true } | |||
solana-version = { workspace = true } | |||
serde = { workspace = true } | |||
serde_json = { workspace = true } | |||
serde_json = "1.0.108" |
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.
why not change the version in workspace itself.
use quote::{quote, ToTokens}; | ||
use syn::{Data, Expr}; | ||
|
||
struct Arg<'a> { |
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.
Why do you have to do this, why cant you do the same as yellowstone-grpc justing using serde parse. It would be simpler to maintain rather than doing some custom stuff ?
https://github.com/rpcpool/yellowstone-grpc/blob/master/yellowstone-grpc-geyser/src/config.rs
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 does not even enable to create sections, that we had discussed about.
ty: &'a syn::Type, | ||
desc: Option<Expr>, | ||
default: Option<Expr>, | ||
short: Option<Expr>, |
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.
short is no longer required, the config file should be readable.
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.
@aniketfuryrocks could you provide+commit an example for local config.json please
No description provided.