-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (53 loc) · 1.39 KB
/
Cargo.toml
File metadata and controls
68 lines (53 loc) · 1.39 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "atmega"
authors = ["Kestrel"]
version = "0.1.0"
edition = "2021"
build = "build.rs"
readme = "README.md"
repository = "https://github.com/commonkestrel/atmega"
description = "A fast, easy, recognizable interface for the ATmega328p"
keywords = ["atmega", "arduino", "avr", "uno", "atmega328p"]
categories = ["no-std", "no-std::no-alloc", "embedded"]
license = "MIT"
exclude = ["/.vscode"]
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
[badges]
maintenance = { status = "actively-developed" }
[profile.dev]
opt-level = 2
lto = true
[profile.release]
strip = true
lto = true
codegen-units = 1
opt-level = "z"
[dependencies]
atmega_macros = { path = "./macros", optional = true }
[features]
default = ["millis"]
## The millis function consumes the TIMER0_OVF interrupt
millis = []
## The serial buffer consumes all incoming serial traffic as well as the USART_RX interrupt
serial-buffer = []
## The interrupts macro requires compilation of the syn, quote, and proc_macro2 crates
interrupt-macro = ["atmega_macros"]
twowire = []
[[example]]
name = "fade"
path = "examples/fade.rs"
[[example]]
name = "serial"
path = "examples/serial.rs"
[[example]]
name = "blink"
path = "examples/blink.rs"
[[example]]
name = "interrupt"
path = "examples/interrupt.rs"
required-features = ["interrupt-macro"]
[[example]]
name = "ds1307"
path = "examples/ds1307.rs"
required-features = ["twowire"]