-
Notifications
You must be signed in to change notification settings - Fork 217
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: Added Gura support #467
Open
polarathene
wants to merge
8
commits into
rust-cli:main
Choose a base branch
from
polarathene:gura
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Oct 7, 2023
-
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d03821e - Browse repository at this point
Copy the full SHA d03821eView commit details -
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 41ef19e - Browse repository at this point
Copy the full SHA 41ef19eView commit details -
- `ura` => `gura` corrections - `src/lib.rs` add mention for Gura support tests(fix): Use `FileFormat::Gura` chore: Version bump `gura` Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 061f45b - Browse repository at this point
Copy the full SHA 061f45bView commit details -
chore: Appease the linting gods
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 48d7de8 - Browse repository at this point
Copy the full SHA 48d7de8View commit details -
refactor:
from_gura_value
(json referenced)This method seems to be adapted from `format/json.rs:from_json_value()`. - I adjusted the order of matched types to mirror that of `format/json.rs`. - `val` => `value`. - No need to dereference values, in this case we consume the `value` parameter, rather than expect a reference to borrow. No need to use `ref` or `clone()` to create owned values. - Potential Improvement: Adopt the iter + collect pattern used by other formats instead of the `for` loop used for array and object types here. Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 04254a8 - Browse repository at this point
Copy the full SHA 04254a8View commit details -
refactor:
from_gura_value
(json5 referenced)Now adapted to the better approach handled by json5 equivalent method. - DRY, avoid the value wrapper reptition via storing the match value and using a final return afterwards to value wrap: `Value::new(uri, vk)`. - Object and Array kinds now adopt the json5 iter + collect approach. Additionally corrects the `Cargo.toml` feature `ura` to `gura`. As the feature name conflicts with the equivalent dependency name, the feature needs to prefix the dependency with `dep:`, removing the need for the package to include `pacakge = "gura"`. Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 73e4304 - Browse repository at this point
Copy the full SHA 73e4304View commit details -
chore: Use the common parser root check method
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0b781b8 - Browse repository at this point
Copy the full SHA 0b781b8View commit details -
- No `.unwrap()` concern now. - Leverage the common `from_parsed_value` method. - Greatly simplified format support. Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 4140214 - Browse repository at this point
Copy the full SHA 4140214View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.