Expand description
Utilities for implementing cargo-zng-res-{tool}
executables.
Note don’t depend on cargo-zng
, just copy the source code of the utilities you need.
Constants§
- Env var set to package.metadata.zng.about.app or package.name
- Env var set to dir that the tool can use to store intermediary data for the specific request.
- Env var set to package.name in snake_case
- Env var set to package.description
- Env var set when it is running a tool that requested
zng-res::on-final=
again. - Env var set when it needs the tool print the help text shown in
cargo zng res --tools
. - Env var set to package.homepage
- Env var set to package.license
- Env var set to package.metadata.zng.about.org or the first package.authors
- Env var set to package.authors
- Env var set to package.name
- Env var set to package.metadata.zng.about.qualifier
- Env var set to the request file that called the tool.
- Env var set to the request file parent dir.
- Env var set to the resources source directory.
- Env var set to the target file implied by the request file name.
- Env var set to the target file parent dir.
- Env var set to the resources build target directory.
- Env var set to package.version
- Env var set to the Cargo workspace directory that is parent to the res source.
Functions§
- Format the path in the standard way used by cargo-zng.
- Get a
ZR_
path var.