are

v1.1.0

Advanced Resource Embedder

Build StatusTest StatuscodecovDocumentation Status

The resource embedder allows to embed files in binaries by producing C, Ada or Go source files that contain the original files.

To generate a config.ads and config.adb Ada package with the resources, you may use:

are --lang=Ada -o src --resource=config --name-access --fileset='**/*.conf' config

Complex resource integrations are best described with and XML and are generated with:

are --lang=Ada -o src --rule=package.xml --name-access .

For Ada, it generates the following package declaration with the Get_Content function that gives access to the files. The Ada body contains the content of each embedded file.

Ada
package Config is
  function Get_Content (Name : in String)
    return access constant String;
end Config;

Install

Globally install this crate:

alr install are

Add to your project:

alr with are

Crate Information

Authors

Maintainers

Maintainers (GitHub pseudo)

Release Date

4 years ago

First Release

7/12/2021

License

Statistics

Dependencies: 1

Dependents: 0

Versions: 6

Dependencies

xmlada~21.0.0