Flatpak Cargo Generator
This is an unofficial Pypi distribution of the flatpak-cargo-generator script, ensuring library dependencies are installed and making the script is available as flatpak-cargo-generator on your $PATH.
Purpose
Flatpak builds should be reproducible. Therefore they don't get direct network access. To install cargo dependencies in Flatpak's build environment, you need to supply a list of your external dependencies to flatpak-builder along with their expected checksums. flatpak-builder will make sure the dependencies are available offline before you start your cargo build.
Usage
Installation via pipx is recommended:
pipx install flatpak-cargo-generator
When installed, run flatpak-cargo-generator /your/rust/project/Cargo.lock -o /your/flatpak/directory/generated-sources.json to generate a list of cargo sources. In your manifest, you can reference this file under the sources section of your Rust module and then perform an offline cargo build in your module's build-commands section.
See here for the full official instructions. You can see how it's used in practice here.
Prefer installing from an official source?
Download the script from https://github.com/flatpak/flatpak-builder-tools/blob/master/cargo/flatpak-cargo-generator.py and install relevant dependencies.
Are you part of the Flatpak team?
I'd be happy to transfer ownership of the Pypi package to you if you're willing to maintain it. You can get in touch via the Issues section.
How this repo is built
./build.sh
poetry build
AI disclosure
No AI tools are involved in maintaining this distribution. As for the script itself, you'll need to ask the Flathub team.
Metadata
Release files for flatpak-cargo-generator 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flatpak_cargo_generator-0.1.5.tar.gz | 7.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flatpak_cargo_generator-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.6 kB
Release files / flatpak_cargo_generator-0.1.5.tar.gz
| Download URL | flatpak_cargo_generator-0.1.5.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd3f2eac03bf0ef75fc4ce2312711df603350e50cb052d5bb5ba363134643c35
|
|
BLAKE2b-256 checksum How to use checksums |
e16a69b6d86ee4ee13f96b6b174686e808f779a568857e842139c90e82ac763c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / flatpak_cargo_generator-0.1.5-py3-none-any.whl
| Download URL | flatpak_cargo_generator-0.1.5-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a86701d0b1ae4faea12c9ee574f49f0b89e6d03dab32451535fd91f989f1e3e
|
|
BLAKE2b-256 checksum How to use checksums |
a437774d4885185ddbca0f0793da5c331ae5321064a6c0076458e6b7bf0756fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for flatpak-cargo-generator 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for flatpak_cargo_generator-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.