~ruther/avr-device

ce2fbacc16b344863e18a7f186e46486bf823460 — Rahix 4 years ago d11a9c2
Include generated files instead of build-script

Signed-off-by: Rahix <rahix@rahix.de>
3 files changed, 9 insertions(+), 25 deletions(-)

M Cargo.toml
D build.rs
M macros/Cargo.toml
M Cargo.toml => Cargo.toml +5 -1
@@ 11,7 11,11 @@ readme = "README.md"
keywords = ["avr", "arduino"]
categories = ["no-std", "embedded", "hardware-support"]

build = "build.rs"
include = [
    "/src/**/*.rs",
    "/LICENSE-*",
    "/README.md",
]

[features]
atmega1280 = []

D build.rs => build.rs +0 -24
@@ 1,24 0,0 @@
use std::process;

fn main() {
    // Just run `make` to generate the chip definitions
    if !process::Command::new("make").status().unwrap().success() {
        eprintln!(
            "
avr-device: Running `make` resulted in a failure.

    Please make sure, you have all dependencies
    installed.  They are:
        - atdf2svd
        - svd2rust
        - form
        - rustfmt (for the nightly toolchain!)
        - PyYAML

    For more info, look at README file:
        https://github.com/Rahix/avr-device/blob/master/README.md
"
        );
        panic!("make failed");
    }
}

M macros/Cargo.toml => macros/Cargo.toml +4 -0
@@ 8,6 8,10 @@ description = "Attribute macros for re-export in `avr-device`"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Rahix/avr-device"

include = [
    "src/*.rs"
]

[lib]
proc-macro = true


Do not follow this link