Skip to content

Pre-generate tables.rs instead of doing it in build.rs? #7

Closed
@NobodyXu

Description

@NobodyXu

Generating tables.rs requires unicode-linebreak to pull in regex and hashbrown as build-dependencies, plus running the generation at compile-time, which makes compilation a lot slower.

Since LineBreak.txt doesn't change that often, generating it manually won't make it much harder to maintain,

I can submit a PR to convert the build.rs to a separate crate that is never published and can be run locally to consume the LineBreak.txt and generate src/tables.rs, does it sound good to you?

If you insist on keeping the build.rs, it might be a good idea to switch to regex-lite rust-lang/regex#961

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions