{
    "id": "com.example.App",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "25.08",
    "sdk": "org.freedesktop.Sdk",
    "sdk-extensions": [
        "org.freedesktop.Sdk.Extension.rust-stable"
    ],
    "command": "example-app",
    "build-options": {
        "append-path": "/usr/lib/sdk/rust-stable/bin",
        "env": {
            "CARGO_HOME": "/run/build/example-app/cargo"
        }
    },
    "finish-args": [
        "--share=ipc",
        "--socket=wayland",
        "--socket=fallback-x11",
        "--device=dri"
    ],
    "modules": [
        {
            "name": "example-app",
            "buildsystem": "simple",
            "build-commands": [
                "cargo --offline fetch --manifest-path Cargo.toml --verbose",
                "cargo --offline build --release --verbose",
                "install -Dm755 ./target/release/example-app -t /app/bin/"
            ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/example/app.git",
                    "tag": "v1.0.0",
                    "commit": 0
                },
                "cargo-sources.json"
            ]
        }
    ]
}
