Module built_in

Module built_in 

Source
Expand description

Built-in tools

MacrosΒ§

built_in πŸ”’

StructsΒ§

AndroidManifest πŸ”’
AndroidSdk πŸ”’

ConstantsΒ§

APK_HELP πŸ”’
COPY_HELP πŸ”’
ENV_TOOL
FAIL_HELP πŸ”’
GLOB_HELP πŸ”’
MAX_RECURSION πŸ”’
RP_HELP πŸ”’
SHF_HELP πŸ”’
SH_HELP πŸ”’
WARN_HELP πŸ”’
ZR_APP
Env var set to package.metadata.zng.about.app or package.name
ZR_APP_ID
Env var set to package.metadata.zng.about.app_id or β€œqualifier.org.app” in snake_case
ZR_CACHE_DIR
Env var set to dir that the tool can use to store intermediary data for the specific request.
ZR_CRATE_NAME
Env var set to package.name in snake_case
ZR_DESCRIPTION
Env var set to package.description
ZR_FINAL
Env var set when it is running a tool that requested zng-res::on-final= again.
ZR_HELP
Env var set when it needs the tool print the help text shown in cargo zng res --tools.
ZR_HOMEPAGE
Env var set to package.homepage
ZR_LICENSE
Env var set to package.license
ZR_ORG
Env var set to package.metadata.zng.about.org or the first package.authors
ZR_PKG_AUTHORS
Env var set to package.authors
ZR_PKG_NAME
Env var set to package.name
ZR_QUALIFIER
Env var set to package.metadata.zng.about.qualifier or the first components ZR_APP_ID except the last two
ZR_REQUEST
Env var set to the request file that called the tool.
ZR_REQUEST_DD
Env var set to the request file parent dir.
ZR_SOURCE_DIR
Env var set to the resources source directory.
ZR_TARGET
Env var set to the target file implied by the request file name.
ZR_TARGET_DD
Env var set to the target file parent dir.
ZR_TARGET_DIR
Env var set to the resources build target directory.
ZR_VERSION
Env var set to package.version
ZR_WORKSPACE_DIR
Env var set to the Cargo workspace directory that is parent to the res source.

StaticsΒ§

BUILT_INS
BUILT_IN_FNS πŸ”’

FunctionsΒ§

apk πŸ”’
copy πŸ”’
copy_dir_all πŸ”’
display_path
Format the path in the standard way used by cargo-zng.
fail πŸ”’
glob πŸ”’
help
Print the help and exit if is help request.
path
Get a ZR_ path var.
read_line πŸ”’
read_lines πŸ”’
read_path πŸ”’
replace πŸ”’
rp πŸ”’
run
sh πŸ”’
sh_options πŸ”’
sh_run πŸ”’
sh_run_try πŸ”’
shf πŸ”’
symlink_warn πŸ”’
warn πŸ”’