Skip to content

confusion with many build tools and scripts, consolidation? #1885

Description

@orangecms

There are many files for building Rustic:

  • build-dependencies.just to install dependencies
  • maskfile.md wrapping Cargo tasks
  • build.sh / scripts/build.sh (same fiile): wrapping cargo build --release and setting PROJECT_VERSION for a git ref
    • I cannot find where it's used
  • Dockerfile (is that implicitly used by .github/workflows/release-image.yml?)

The README mentions neither the mask nor just tooling.
I'm not seeing them in the CI setup either.
How are they currently used, just locally for development?

I'm currently building for a musl target to get a fully static binary, on Linux for x86_64, using:

CC=x86_64-unknown-linux-musl-gcc RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-musl --release

Can we remove some bits here? At least one of the build.sh files for sure, since it's a duplicate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions