This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
133 lines (108 loc) · 2.55 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
cargo-features = ["per-package-target"]
[workspace]
resolver = "2"
members = [
"flipper",
"format/*",
"build/*-build",
"build/*-macro",
"build/common/*",
"examples/*",
]
default-members = ["flipper", "."]
[package]
name = "flipper0-sys"
description = "Bindings for Flipper Zero fw"
version = "0.2.15"
edition = "2021"
authors = ["Alex Koz <[email protected]>"]
documentation = "https://docs.rs/flipper0-sys"
keywords = ["api", "ffi", "bindings", "no-std", "flipper-zero"]
categories = ["api-bindings", "external-ffi-bindings", "no-std"]
homepage = "https://github.com/boozook/flipper0"
repository = "https://github.com/boozook/flipper0.git"
license = "MIT"
readme = "crates.io.md"
rust-version = "1.66"
default-target = "thumbv7em-none-eabihf"
build = "src/build/main.rs"
include = [
"/src",
"/gen",
"/.cargo",
"/.rustfmt.toml",
"/rust-toolchain.toml",
"/LICENSE",
"!/examples/*",
]
exclude = [".*/*"]
[badges]
maintenance = { status = "actively-developed" }
[lib]
bench = false
test = false
[[example]]
name = "hello-fap"
path = "examples/hello-fap.rs"
crate-type = ["staticlib"]
[features]
default = [
"allocator-global",
"oom-global",
"panic",
"prebuild",
"use-local-sdk",
"macro",
]
# parts:
allocator = [] # allocator impl
allocator-global = ["allocator"] # global allocator impl
oom-global = [] # global out-of-memory handler
panic = [] # global panic handler
# build methods:
prebuild = [] # use pregenerated bindings
use-local-sdk = [] # look at `FLIPPER_FW_SRC_PATH`, try to build from source
use-remote-sdk = [] # build from remote git repo (slow)
# build options:
derive-default = []
derive-eq = []
derive-copy = []
derive-hash = []
derive-ord = []
derive-partialeq = []
derive-partialord = []
derive-debug = [] # derive Debug, default for debug profile
# extras:
macro = ["proc-macros", "proc-macros/export-fam-infallible"]
[dependencies.proc-macros]
package = "flipper0-macro"
version = "0.1.3"
path = "build/proc-macro"
optional = true
[build-dependencies]
rustygit = "0.4"
semver = "1.0"
wax = "0.5"
csv = "1.1"
[build-dependencies.build-cfg]
package = "flipper0-build-cfg"
version = "0.1.3"
path = "build/common/cfg"
[build-dependencies.bindgen]
version = "0.61.0"
features = ["runtime", "which-rustfmt"]
default-features = true
[package.metadata.docs.rs]
default-target = "thumbv7em-none-eabihf"
targets = []
all-features = true
[profile.dev]
opt-level = 'z'
lto = true
[profile.release]
panic = "abort"
opt-level = 'z'
lto = true
codegen-units = 1
debug = false
debug-assertions = false