~ruther/avr-device

ref: f77864dc9935b6cc402024373ec2e645d1d0cbcf avr-device/build.rs -rw-r--r-- 589 bytes
f77864dc — Rahix hack: Make sure you cannot build for more than one chip 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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");
    }
}
Do not follow this link