Skip to content

Commit 134592e

Browse files
committed
Initial commit.
According to: rust-lang/rust#109000 (comment)'
0 parents  commit 134592e

File tree

6 files changed

+456
-0
lines changed

6 files changed

+456
-0
lines changed

.cargo/config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rustflags = ["-Z emit-stack-sizes"]
2+
3+
[target.avr-atmega328p]
4+
runner = "qemu-system-avr -M uno -nographic -serial tcp::5678,server=on -bios"
5+
6+
[build]
7+
target = "avr-atmega328p.json"
8+
9+
[unstable]
10+
build-std = ["core"]

Cargo.lock

Lines changed: 311 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[package]
2+
name = "avr-bug"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
panic-halt = "0.2.0"
8+
ufmt = "0.1.0"
9+
noble-secp256k1 = { git = "https://github.com/xphoniex/noble-secp256k1-rs", default-features = false, features = ["8-bit"] }
10+
hmac-sha256 = { version = "1.1.6", default-features = false, features = ["opt_size"] }
11+
12+
[dependencies.arduino-hal]
13+
git = "https://github.com/rahix/avr-hal"
14+
rev = "4c9c44c314eb061ee20556ef10d45dea36e75ee4"
15+
features = ["arduino-uno"]
16+
17+
[dependencies.avr-device]
18+
version = "0.5.0"
19+
20+
[profile.dev]
21+
panic = "abort"
22+
debug = true
23+
lto = true
24+
opt-level = "s"
25+
26+
[profile.release]
27+
panic = "abort"
28+
codegen-units = 1
29+
debug = true
30+
lto = true
31+
#opt-level = "s"
32+
#opt-level = "z"
33+
opt-level = 2
34+
strip = true
35+
36+
[profile.dev.package.compiler_builtins]
37+
overflow-checks = false

avr-atmega328p.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"arch": "avr",
3+
"atomic-cas": false,
4+
"cpu": "atmega328p",
5+
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
6+
"eh-frame-header": false,
7+
"exe-suffix": ".elf",
8+
"executables": true,
9+
"late-link-args": {
10+
"gcc": [
11+
"-lgcc"
12+
]
13+
},
14+
"linker": "avr-gcc",
15+
"linker-is-gnu": true,
16+
"llvm-target": "avr-unknown-unknown",
17+
"max-atomic-width": 8,
18+
"no-default-libraries": false,
19+
"pre-link-args": {
20+
"gcc": [
21+
"-mmcu=atmega328p",
22+
"-Wl,--as-needed,--print-memory-usage,--detailed-mem-usage",
23+
"-fpack-struct",
24+
"-fshort-enums",
25+
"-Wstack-usage=20",
26+
"-Wall","-Wextra","-fstack-usage"
27+
]
28+
},
29+
"target-c-int-width": "16",
30+
"target-pointer-width": "16"
31+
}

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "nightly"
3+
components = [ "rust-src" ]
4+
profile = "minimal"

0 commit comments

Comments
 (0)