-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
51 lines (43 loc) · 1.37 KB
/
Cargo.toml
File metadata and controls
51 lines (43 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[package]
name = "rust-arduino-test"
version = "0.1.0"
authors = ["jzuri <jzuritastem@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
# if you want to specify the bin file name, uncomment the following commands
# [[bin]]
# name = "rust-arduino-test"
# test = false
# bench = false
[dependencies]
panic-halt = "0.2.0"
ufmt = "0.2.0"
nb = "1.1.0"
embedded-hal = "1.0"
[dependencies.arduino-hal]
git = "https://github.com/rahix/avr-hal"
rev = "3e362624547462928a219c40f9ea8e3a64f21e5f"
features = ["arduino-uno"]
# 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"
# this "profile.dev.package" is optional
# unfortunately if you wnat to add values together in main loop{} there's a weird error
# something like "undefined reference to core::panicking::panic"
# according to this github forum, this is one solution
# https://github.com/Rahix/avr-hal/issues/131
[profile.dev.package.compiler_builtins]
overflow-checks = false