-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
88 lines (79 loc) · 2.13 KB
/
Cargo.toml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[package]
authors = ["Finomnis <[email protected]>"]
name = "st7565"
edition = "2018"
rust-version = "1.75"
version = "0.6.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/Finomnis/st7565"
description = "Driver for ST7565 based displays."
keywords = ["no-std", "st7565", "lcd", "embedded", "embedded-hal-driver"]
categories = ["embedded", "no-std"]
exclude = [
"/.gitignore",
"/.github/",
"/.vscode/",
"/TODO.txt",
"/UPCOMING_VERSION_CHANGES.txt",
]
[lib]
# Disable this to make the x86_64 tests compile.
# This breaks the on-target tests.
# Sadly, this is not configurable via `cfg()` yet.
harness = false
[dependencies]
display-interface = "0.5.0"
embedded-hal = "1.0.0"
embedded-graphics-core = "0.4.0"
[dev-dependencies]
embedded-graphics = "0.8.0"
noop-attr = "0.1.0"
[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dev-dependencies]
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.0"
defmt = "0.3.0"
defmt-rtt = "0.4.0"
defmt-test = "0.3.0"
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
nrf52840-hal = "0.18.0"
display-interface-spi = "0.5.0"
embedded-hal-bus = "0.2.0"
# cargo build/run
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 3 # <-
overflow-checks = true # <-
# cargo test
[profile.test]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 3 # <-
overflow-checks = true # <-
# cargo build/run --release
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
# NOTE disabled to work around issue rust-lang/rust#90357
# the bug results in log messages not having location information
# (the line printed below the log message that contains the file-line location)
# lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-
# cargo test --release
[profile.bench]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
# see comment in the profile.release section
lto = false
opt-level = 3 # <-
overflow-checks = false # <-