worldline / worldline/ProSA

Improve compil time of cargo-prosa package

Open
#19 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The compilation take a lot of time due to build.rs script from a cargo-prosa package.

This is visible through cargo build --timings
compil_timings

The time, come from a sub package generated by the build.rs script to generate configuration files.
It need to be done in another way to gain time.

One thing that could be done, is to do a macro to generate the configuration file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the cargo-prosa package's build.rs script and run cargo build --timings to identify the generated subpackage responsible for the delay. Compare approaches for generating configuration files, including the suggested macro, and verify that configuration generation still works while compilation time improves.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.