-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
87 lines (76 loc) · 3.75 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
# SPDX-FileCopyrightText: © 2023 Jinwoo Park ([email protected])
#
# SPDX-License-Identifier: CC0-1.0
[package]
name = "billmock-app-rs"
edition = "2021"
version = "0.4.0"
authors = ["Jinwoo Park <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "application side of billmock hardware, powered by rust-embedded"
# feature name starting with "hw_" is reserved for mass production config generator
[features]
default = ["billmock_default"]
hotfix_hwbug_host_inhibit_floating = [] # #19 bug (https://github.com/pmnxis/billmock-app-rs/issues/19)
billmock_default = ["hw_mini_0v5"] # To use rust-analzyer utilizing noDefaultFeatures on vscode
eeprom = []
svc_button = [] # SVC button
hw_0v2 = ["hotfix_hwbug_host_inhibit_floating"]
hw_0v3 = ["hotfix_hwbug_host_inhibit_floating"]
hw_0v4 = ["eeprom"]
hw_mini_0v4 = ["eeprom"]
hw_mini_0v5 = ["eeprom", "svc_button"]
[dependencies]
embassy-sync = { version = "0.6.0", features = ["defmt"] }
embassy-executor = { version = "0.6.0", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
embassy-futures = { version = "0.1.0", features = ["defmt"] }
embassy-time = { version = "0.3.0", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] }
embassy-stm32 = { version = "0.1.0", features = ["defmt", "time-driver-any", "stm32g030c8", "memory-x", "unstable-pac", "exti", "time"] } # "unstable-traits" for use InputPin trait for gpio
embassy-embedded-hal = { version = "^0.2.0" }
defmt = "0.3.6"
defmt-rtt = "0.4"
cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } # 0.7.6
cortex-m-rt = "0.7.3" # 0.7.0
panic-probe = { version = "0.3", features = ["print-defmt"] }
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
static_cell = { version = "1.3", features = ["nightly"] }
num_enum = { version = "0.7.0", default-features = false } # Application specific import (only `no_std` crates alllowed)
bit_field = "0.10"
nonmax = { version = "0.5.3", default-features = false, features = [] } # to use common NonMax
static_assertions = "1.1.0"
env_to_array = { git = "https://github.com/pmnxis/env-to-array.git", branch = "dynamic_array_patch", features = ["hex"] }
zeroable = "0.2.0"
const-zero = "0.1.1"
# Application specific library
# card-terminal-adapter = { path = "card-terminal-adapter" }
# billmock-plug-card = { path = "serial-arcade-example" }
# The above dependency configurations are intentionally set to an external address in this repository
# for the purpose of compiling both the original and NDA code simultaneously.
# However, in reality, during a regular build, due to the patched content in `.cargo/config.toml`,
# the code accesses the locally stored directory directly without connecting to the URL.
# `billmock-plug-card` would be replaced to NDA library that working on real field with dependency injection
# details : https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section
card-terminal-adapter = { path = "card-terminal-adapter" }
billmock-plug-card = { git = "https://github.com/pmnxis/billmock-app-rs.git" }
billmock-otp-dev-info = { git = "https://github.com/pmnxis/billmock-mptool.git" }
[build-dependencies]
git2 = "0.18" # Git library for Rust
cargo_metadata = "0.18"
mp-fingerprint-type = { git = "https://github.com/pmnxis/billmock-mptool.git" }
hex = "0.4"
card-terminal-adapter = { path = "card-terminal-adapter" }
billmock-plug-card = { git = "https://github.com/pmnxis/billmock-app-rs.git" }
[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false # <-
lto = 'fat'
opt-level = "s" # or "z"
overflow-checks = false # <-
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # <-
lto = 'fat'
opt-level = "s"
overflow-checks = true # <-