[package] name = "avr-calc" version = "0.1.0" authors = ["Jakub Pastuszek "] edition = "2021" license = "MIT OR Apache-2.0" [[bin]] name = "avr-calc" test = false bench = false [dependencies] ufmt = "0.2.0" nb = "1.1.0" embedded-hal = "1.0" panic-serial = { version = "0.1.2", features = ["full"] } [dependencies.arduino-hal] git = "https://github.com/rahix/avr-hal" rev = "3c089795cadbbc7fa83f45958128689fee7ba1e4" features = ["arduino-nano"] # The latest releases of `proc-macro2` do not support the rust toolchain that # we use. Thus, we must fix this dependency to an older version where our # toolchain is still supported. See https://github.com/Rahix/avr-hal/issues/537 [build-dependencies.proc-macro2] version = "=1.0.79" # Configure the build for minimal size - AVRs have very little program memory [profile.dev] panic = "abort" lto = true opt-level = "s" [profile.release] panic = "abort" codegen-units = 1 debug = true lto = true opt-level = "s"