-
Notifications
You must be signed in to change notification settings - Fork 153
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
Conversation
r? @adamgreig (rust-highfive has picked a reviewer for you, use r? to override) |
src/util.rs
Outdated
@@ -73,6 +73,20 @@ impl Default for Target { | |||
} | |||
} | |||
|
|||
#[allow(unused)] |
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 allow unused? Should this not be defined in main.rs
maybe?
src/lib.rs
Outdated
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)?; |
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.
oops :D
this should probably be mentioned in the changelog.
Correctly use config when using
svd2rust::generate
as a library
f802fd5
to
995708b
Compare
Should be fixed |
350edd5
to
72f5745
Compare
Rebased |
How would one use this? Are there parsable examples we could/should include? |
Espressif test was disabled. See esp-rs/xtensa-lx#14 |
4c25ef2
to
9b2a6e8
Compare
For testing with CI. New |
83bcf59
to
a443218
Compare
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.
LGTM, nice!
bors merge
Build succeeded: |
No description provided.