Skip to content

Commit 48ed793

Browse files
author
Jorge Aparicio
committed
switch to the svd-parser crate, which is available on crates.io
1 parent d0cd2e0 commit 48ed793

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ clap = "2.14.0"
1010
inflections = "1.0.0"
1111
quasi = "*"
1212
quasi_macros = "*"
13-
14-
[dependencies.svd]
15-
git = "https://github.com/japaric/svd"
16-
optional = false
13+
svd-parser = "0.1.1"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
extern crate aster;
66
extern crate inflections;
77
extern crate quasi;
8-
extern crate svd;
8+
extern crate svd_parser as svd;
99
extern crate syntax;
1010

1111
use syntax::ast::{Item, Ty};

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
extern crate clap;
55
extern crate svd2rust;
6-
extern crate svd;
6+
extern crate svd_parser as svd;
77
extern crate syntax;
88

99
use std::ascii::AsciiExt;
@@ -13,7 +13,6 @@ use syntax::ext::base::DummyResolver;
1313
use syntax::parse::ParseSess;
1414
use syntax::print::pprust;
1515

16-
use svd::Device;
1716
use clap::{App, Arg};
1817

1918
fn main() {
@@ -38,7 +37,7 @@ fn main() {
3837
let xml = &mut String::new();
3938
File::open(matches.value_of("input").unwrap()).unwrap().read_to_string(xml).unwrap();
4039

41-
let d = Device::parse(xml);
40+
let d = svd::parse(xml);
4241
match matches.value_of("peripheral") {
4342
None => {
4443
for peripheral in d.peripherals.iter() {

0 commit comments

Comments
 (0)