-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat(cli): implement forest-cli f3 manifest #4937
Conversation
#[serde_as] | ||
#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)] | ||
#[serde(rename_all = "PascalCase")] | ||
pub struct F3Manifest { |
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.
@ruseinov These structs should be moved into rust-f3
eventually
@@ -0,0 +1,29 @@ | |||
Manifest: |
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.
Cargo.toml
Outdated
@@ -48,6 +48,7 @@ directories = "5" | |||
displaydoc = "0.2" | |||
ethereum-types = "0.15" | |||
ez-jsonrpc-types = "0.3" | |||
fancy-duration = "0.9" |
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.
It seems like a pretty niche dependency without many users - do you think it makes sense depending on it or can we avoid? https://crates.io/crates/fancy-duration/reverse_dependencies
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 me see if I can find a better replacement. I first spotted https://crates.io/crates/human-duration but found it's not been updated for 3 years
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.
@LesnyRumcajs fancy-duration
is the best I can find under https://crates.io/search?q=duration
chrono::Duration
displays 15s as PT15S
which follows https://en.wikipedia.org/wiki/ISO_8601#Durations but is not super readable for non-tech users
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.
What about humantime
? It's a bit of an abandonware, but we already have it in our dependencies.
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.
Fixed.
@LesnyRumcajs resolved a conflict in CHANGELOG, please re-approve, thanks! |
Summary of changes
This PR ports
lotus f3 manifest
CLI command.Changes introduced in this pull request:
forest-cli f3 manifest
commandOutput:
Reference issue to close (if applicable)
Closes #4932
Other information and links
Change checklist