pub enum Manifest {
Raw(Value),
Structured {Show 21 fields
name: Option<String>,
appid: String,
apptype: String,
stack_size: Option<usize>,
icon: Option<String>,
entry_point: Option<String>,
flags: Vec<String>,
cdefines: Vec<String>,
requires: Vec<String>,
conflicts: Vec<String>,
provides: Vec<String>,
order: Option<isize>,
sdk_headers: Vec<String>,
sources: Vec<String>,
fap_version: Option<(String, String)>,
fap_icon: Option<String>,
fap_libs: Vec<String>,
fap_category: Option<String>,
fap_description: Option<String>,
fap_author: Option<String>,
fap_weburl: Option<String>,
},
}
Variants
Raw(Value)
For custom fields.
Structured
Fields
appid: String
String, application id within the build system. Used for specifying which applications to include in build configuration and to resolve dependencies and conflicts.
apptype: String
Member of FlipperAppType.* enumeration. Valid values are:
SERVICE
: System service, created at early startupSYSTEM
: Application not being shown in any menus. Can be started by other apps or from CLIAPP
: Regular application for main menuPLUGIN
: Application to be built as a part of firmware an to be placed in Plugins menuDEBUG
: Application only visible in Debug menu with debug mode enabledARCHIVE
: One and only Archive appSETTINGS
: Application to be placed in System settings menuSTARTUP
: Callback function to run at system startup. Does not define a separate appEXTERNAL
: Application to be built as .fap pluginMETAPACKAGE
: Does not define any code to be run, used for declaring dependencies and application bundles
stack_size: Option<usize>
Stack size, in bytes, to allocate for application on its startup. Note that allocating a stack that is too small for an app to run will cause system crash due to stack overflow, and allocating too much stack space will reduce usable heap memory size for apps to process data. Note: you can use ps and free CLI commands to profile your app’s memory usage.
icon: Option<String>
Animated icon name from built-in assets to be used when building app as a part of firmware.
cdefines: Vec<String>
C preprocessor definitions to declare globally for other apps when current application is included in active build configuration.
requires: Vec<String>
List of application IDs to also include in build configuration, when current application is referenced in list of applications to build.
conflicts: Vec<String>
List of application IDs that current application conflicts with. If any of them is found in constructed application list, fbt will abort firmware build process.
order: Option<isize>
Order of an application within its group when sorting entries in it. The lower the order is, the closer to the start of the list the item is placed. Used for ordering startup hooks and menu entries.
sdk_headers: Vec<String>
List of C header files from this app’s code to include in API definitions for external applications.
sources: Vec<String>
list of strings, file name masks, used for gathering sources within app folder. Default value of [“.c”] includes C and CPP source files.
fap_version: Option<(String, String)>
Tuple, 2 numbers in form of (x,y): application version to be embedded within .fap file. Default value is (0,1), meanig version “0.1”.
fap_icon: Option<String>
Name of a .png file, 1-bit color depth, 10x10px, to be embedded within .fap file.
fap_libs: Vec<String>
List of extra libraries to link application against. Provides access to extra functions that are not exported as a part of main firmware at expense of increased .fap file size and RAM consumption.
fap_category: Option<String>
String, may be empty. App subcategory, also works as path of FAP within apps folder in the file system.
String, may be empty. Application’s author.