Conversation
|
r? @Emilgardis (rust_highfive has picked a reviewer for you, use r? to override) |
|
cc @therealprof Looks like it works: |
|
Sweet! |
|
|
||
| [dependencies.svd-parser] | ||
| git = "https://github.com/rust-embedded/svd" | ||
| branch = "anyhow" |
There was a problem hiding this comment.
Assuming this is just for the draft.
We could use the new git+version support added for publishing crates added recently, but I'm not sure myself how to properly use it.
That would also not be backwards compatible
| .context("couldn't open the SVD file")? | ||
| .read_to_string(xml) | ||
| .chain_err(|| "couldn't read the SVD file")?; | ||
| .context("couldn't read the SVD file")?; |
There was a problem hiding this comment.
Missed this when implementing, should probably be uppercase "C"
There was a problem hiding this comment.
cannot vs couldn't vs can not
I prefer cannot for this
| .lock() | ||
| .read_to_string(xml) | ||
| .chain_err(|| "couldn't read from stdin")?; | ||
| .context("couldn't read from stdin")?; |
|
|
||
| let cluster_size = cluster_size_in_bits(cluster, &defs) | ||
| .chain_err(|| format!("Cluster {} has no determinable `size` field", cluster.name))?; | ||
| .context(format!("Cluster {} has no determinable `size` field", cluster.name))?; |
There was a problem hiding this comment.
Think there are some other places in rust-embedded/svd#98 that could do the same, but I'm sure it doesnt really matter in optimized builds.
|
We can merge this as is, if we do we'd bump the required cargo version to publish, but not to compile (published) crate. |
|
First we need make new release of |
|
By the way what MSRV version now? Can we merge #381 ? |
|
@burrbull It changes the MSRV of the PACs to 1.37? I don't think we want to do that just yet. Bumping the MSRV of svd or svd2rust would be fine. |
|
bors try |
tryBuild failed |
|
bors try |
tryBuild failed |
|
|
|
bors try |
tryBuild succeeded |
|
Now it works on stable, but without backtrace. If compile |
|
@burrbull Can you rebase this, fix the conflicts and add a ChangeLog entry? |
|
Looks like std::backtrace::Backtrace not stable yet. |
|
Rebased |
|
bors try |
tryBuild succeeded: |
|
Build succeeded: |
rust-embedded/svd#98