neon_arch commited on
Commit
4993da4
·
1 Parent(s): 93fd8f8

:sparkles: feat: multiple profiles to support various devices with other architectures (#566)

Browse files

- Add 2 profiles with binary size reduction feature to allow devices
with low storage to compile/build the app with smaller size.
- Add 3 profiles to allow devices with low powered cpus or other
architectures like arm to compile apps using less cpu usage.
- Add 6 profiles with hybrid of both for both low powered cpu and low
storage devices.

Files changed (1) hide show
  1. Cargo.toml +44 -0
Cargo.toml CHANGED
@@ -127,6 +127,50 @@ codegen-units = 1
127
  rpath = false
128
  strip = "symbols"
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  [features]
131
  use-synonyms-search = ["thesaurus/static"]
132
  default = ["memory-cache"]
 
127
  rpath = false
128
  strip = "symbols"
129
 
130
+ [profile.bsr1]
131
+ inherits = "release"
132
+ opt-level = "s"
133
+
134
+ [profile.bsr2]
135
+ inherits = "bsr"
136
+ opt-level = "z"
137
+
138
+ [profile.lpcb1]
139
+ inherits = "release"
140
+ codegen-units = 16
141
+
142
+ [profile.lpcb2]
143
+ inherits = "lpcb1"
144
+ lto = "off"
145
+
146
+ [profile.lpcb3]
147
+ inherits = "lpcb2"
148
+ opt-level = 2
149
+
150
+ [profile.bsr_and_lpcb1]
151
+ inherits = "lpcb1"
152
+ opt-level = "s"
153
+
154
+ [profile.bsr_and_lpcb2]
155
+ inherits = "lpcb2"
156
+ opt-level = "s"
157
+
158
+ [profile.bsr_and_lpcb3]
159
+ inherits = "lpcb3"
160
+ opt-level = "s"
161
+
162
+ [profile.bsr_and_lpcb4]
163
+ inherits = "lpcb1"
164
+ opt-level = "z"
165
+
166
+ [profile.bsr_and_lpcb5]
167
+ inherits = "lpcb1"
168
+ opt-level = "z"
169
+
170
+ [profile.bsr_and_lpcb6]
171
+ inherits = "lpcb1"
172
+ opt-level = "z"
173
+
174
  [features]
175
  use-synonyms-search = ["thesaurus/static"]
176
  default = ["memory-cache"]