# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "metro_m4" version = "0.14.1" authors = [ "Paul Sajna ", "Wez Furlong ", ] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Board Support crate for the Adafruit Metro M4" readme = "README.md" keywords = [ "no-std", "arm", "cortex-m", "embedded-hal", ] categories = [ "embedded", "hardware-support", "no-std", ] license = "MIT OR Apache-2.0" repository = "https://github.com/atsamd-rs/atsamd" [package.metadata] chip = "ATSAMD51J19A" [lib] name = "metro_m4" path = "src/lib.rs" [[example]] name = "adc" path = "examples/adc.rs" [[example]] name = "blinky_basic" path = "examples/blinky_basic.rs" [[example]] name = "clock_out" path = "examples/clock_out.rs" [[example]] name = "hello" path = "examples/hello.rs" [[example]] name = "i2c" path = "examples/i2c.rs" required-features = ["dma"] [[example]] name = "neopixel_blink" path = "examples/neopixel_blink.rs" [[example]] name = "neopixel_rainbow" path = "examples/neopixel_rainbow.rs" [[example]] name = "pwm" path = "examples/pwm.rs" [[example]] name = "serial" path = "examples/serial.rs" [[example]] name = "spi" path = "examples/spi.rs" [[example]] name = "timer" path = "examples/timer.rs" [[example]] name = "trng" path = "examples/trng.rs" [[example]] name = "usb_logging" path = "examples/usb_logging.rs" required-features = ["usb"] [dependencies.atsamd-hal] version = "0.18.1" default-features = false [dependencies.cortex-m] version = "0.7" features = ["critical-section-single-core"] [dependencies.cortex-m-rt] version = "0.7" optional = true [dependencies.usb-device] version = "0.3.1" optional = true [dev-dependencies.cortex-m] version = "0.7" [dev-dependencies.cortex-m-semihosting] version = "0.3" [dev-dependencies.embedded-hal] version = "1.0" [dev-dependencies.embedded-hal-nb] version = "1.0" [dev-dependencies.panic-halt] version = "0.2" [dev-dependencies.panic-probe] version = "0.3" [dev-dependencies.panic-rtt-target] version = "0.1.1" features = ["cortex-m"] [dev-dependencies.panic-semihosting] version = "0.5" [dev-dependencies.rtt-target] version = "0.3.0" features = ["cortex-m"] [dev-dependencies.smart-leds] version = "0.3" [dev-dependencies.usbd-serial] version = "0.2" [dev-dependencies.ws2812-timer-delay] version = "0.3" [features] default = [ "rt", "atsamd-hal/samd51j", ] dma = ["atsamd-hal/dma"] max-channels = [ "dma", "atsamd-hal/max-channels", ] rt = [ "cortex-m-rt", "atsamd-hal/samd51j-rt", ] usb = [ "atsamd-hal/usb", "usb-device", ] use_semihosting = []