Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Cli + Config #246

wants to merge 2 commits into from

Conversation

aniketfuryrocks
Copy link
Contributor

No description provided.

@@ -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"
Copy link
Collaborator

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> {
Copy link
Collaborator

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

Copy link
Collaborator

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>,
Copy link
Collaborator

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.

Copy link
Collaborator

@grooviegermanikus grooviegermanikus left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants