From ce2fbacc16b344863e18a7f186e46486bf823460 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 26 Jul 2020 10:52:22 +0200 Subject: [PATCH] Include generated files instead of build-script Signed-off-by: Rahix --- Cargo.toml | 6 +++++- build.rs | 24 ------------------------ macros/Cargo.toml | 4 ++++ 3 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 build.rs diff --git a/Cargo.toml b/Cargo.toml index 1c424838c06ca1ece039070fc5ec7219de521fb0..fce1791e8ac168546945951b3278b9116a1ef261 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/build.rs b/build.rs deleted file mode 100644 index 7badb7ab1b9ff331d2a8ada086eaf9e4ce6a65cc..0000000000000000000000000000000000000000 --- a/build.rs +++ /dev/null @@ -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"); - } -} diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 0272e8d3dff14aa80c3621b87cc0d385078eee26..2d7a5c7f1becbf5414d82cadc859720bd865ddff 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -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