Skip to content

Commit a755f8f

Browse files
authored
Merge pull request #207 from japaric/revert-pr201
Revert PR 201 "Expose internals to lib"
2 parents f51c06b + 1d1f41b commit a755f8f

File tree

3 files changed

+8
-28
lines changed

3 files changed

+8
-28
lines changed

src/lib.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -410,25 +410,6 @@
410410
411411
// NOTE This file is for documentation only
412412

413-
#![recursion_limit = "128"]
414-
415-
extern crate cast;
416-
extern crate either;
417-
#[macro_use]
418-
extern crate error_chain;
419-
extern crate inflections;
420-
#[macro_use]
421-
pub extern crate quote;
422-
pub extern crate svd_parser as svd;
423-
extern crate syn;
424-
425-
mod errors;
426-
pub mod generate;
427-
mod util;
428-
pub mod target;
429-
430-
use target::Target;
431-
432413
/// Assigns a handler to an interrupt
433414
///
434415
/// This macro takes two arguments: the name of an interrupt and the path to the

src/main.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@ extern crate syn;
1414
mod errors;
1515
mod generate;
1616
mod util;
17-
mod target;
1817

1918
use std::fs::File;
2019
use std::{io, process};
2120

2221
use clap::{App, Arg};
2322

2423
use errors::*;
25-
use target::Target;
24+
25+
#[derive(Clone, Copy, PartialEq)]
26+
pub enum Target {
27+
CortexM,
28+
Msp430,
29+
RISCV,
30+
None,
31+
}
2632

2733
impl Target {
2834
fn parse(s: &str) -> Result<Self> {

src/target.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)