Skip to content

Commit 09a06b2

Browse files
committed
Move the example into an independent crate
To avoid exporting Ravedude, .cargo/config.toml, rust-toolchain.toml that were present at the root of the repository, create a binary crate to have a standalone example
1 parent 71911f5 commit 09a06b2

File tree

5 files changed

+38
-1
lines changed

5 files changed

+38
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[build]
2+
target = "avr-none"
3+
rustflags = ["-C", "target-cpu=atmega328p"]
4+
5+
[target.'cfg(target_arch = "avr")']
6+
runner = "ravedude"
7+
8+
[unstable]
9+
build-std = ["core"]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "arduino-uno-pcd8544"
3+
version = "0.0.0"
4+
authors = ["Nabil Elqatib <nabilelqatib@gmail.com>"]
5+
edition = "2021"
6+
license = "MIT OR Apache-2.0"
7+
8+
[[bin]]
9+
name = "arduino-uno-pcd8544"
10+
test = false
11+
bench = false
12+
13+
[dependencies]
14+
panic-halt = "1.0.0"
15+
pcd8544-hal = { path = "../.." }
16+
arduino-hal = { git = "https://github.com/Rahix/avr-hal", rev = "ravedude-0.2.0", features = ["arduino-uno"] }
17+
18+
19+
[profile.dev]
20+
panic = "abort"
21+
lto = true
22+
opt-level = "s"
23+
24+
[profile.release]
25+
panic = "abort"
26+
codegen-units = 1
27+
lto = true
28+
opt-level = "s"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
22
channel = "nightly-2025-04-27"
3-
components = [ "rust-src" ]
3+
components = ["rust-src"]
44
profile = "minimal"
File renamed without changes.

0 commit comments

Comments
 (0)