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

serde YAML/JSON input #556

Merged
merged 2 commits into from
Jan 17, 2022
Merged

serde YAML/JSON input #556

merged 2 commits into from
Jan 17, 2022

Conversation

burrbull
Copy link
Member

@burrbull burrbull commented Dec 8, 2021

No description provided.

@burrbull burrbull requested a review from a team as a code owner December 8, 2021 08:12
@rust-highfive
Copy link

r? @adamgreig

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Dec 8, 2021
src/util.rs Outdated
@@ -73,6 +73,20 @@ impl Default for Target {
}
}

#[allow(unused)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why allow unused? Should this not be defined in main.rs maybe?

src/lib.rs Outdated
Comment on lines 535 to 542
let mut parser_config = svd_parser::Config::default();
parser_config.validate_level = if config.strict {
svd::ValidateLevel::Strict
} else {
svd::ValidateLevel::Weak
};

let device = svd_parser::parse_with_config(xml, &parser_config)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops :D

this should probably be mentioned in the changelog.

Correctly use config when using svd2rust::generate as a library

@burrbull burrbull force-pushed the serde-parse branch 2 times, most recently from f802fd5 to 995708b Compare December 10, 2021 06:20
@burrbull
Copy link
Member Author

Should be fixed

@burrbull burrbull force-pushed the serde-parse branch 2 times, most recently from 350edd5 to 72f5745 Compare December 11, 2021 07:09
@burrbull
Copy link
Member Author

Rebased

@Emilgardis Emilgardis requested a review from a team December 11, 2021 08:52
@therealprof
Copy link
Contributor

How would one use this? Are there parsable examples we could/should include?

@burrbull
Copy link
Member Author

burrbull commented Jan 4, 2022

Espressif test was disabled. See esp-rs/xtensa-lx#14

@burrbull burrbull force-pushed the serde-parse branch 3 times, most recently from 4c25ef2 to 9b2a6e8 Compare January 15, 2022 17:40
@burrbull
Copy link
Member Author

For testing with CI. New svdtools release needed first.

@burrbull burrbull force-pushed the serde-parse branch 3 times, most recently from 83bcf59 to a443218 Compare January 16, 2022 15:48
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice!

bors merge

@bors
Copy link
Contributor

bors bot commented Jan 17, 2022

Build succeeded:

@bors bors bot merged commit ad58ed3 into master Jan 17, 2022
@bors bors bot deleted the serde-parse branch January 17, 2022 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants