Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Rust CI and update cssparser dep and lock #3175

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Jan 24, 2025

  • bump to https://github.com/mazznoer/csscolorparser-rs/releases/tag/v0.7.0 and fix related code
  • update all lock file to latest with cargo update
  • validate that the rustutils crate is valid
  • add MSRV (tested with cargo msrv find + CI for it
  • ensure rustutils crate is not published, and set version to 0.0.0 as it has no internal version

@nyurik nyurik requested a review from louwers January 24, 2025 05:40
@nyurik nyurik changed the title chore: add Rust CI chore: add Rust CI and update cssparser dep and lock Jan 24, 2025
Copy link
Collaborator

@louwers louwers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this is part of setting up infrastructure for Rust development. Nevertheless, before enabling Rust tests on CI, we should probably actually have some tests?

* validate that the rustutils crate is valid
* currently uses hardcoded CI script, but should move it all to justfile similar to many other similar crates
* add MSRV (tested with `cargo msrv find` + CI for it
* ensure rustutils crate is not published, and set version to 0.0.0 as it has no internal version
Copy link
Collaborator

@louwers louwers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the developer docs on Rust? It's in rust.md

@nyurik
Copy link
Member Author

nyurik commented Jan 24, 2025

fixed, thx. Eventually we may want to move some content to the rustutils/README.md

@louwers
Copy link
Collaborator

louwers commented Jan 24, 2025

fixed, thx. Eventually we may want to move some content to the rustutils/README.md

During the last TSC meeting I suggested we should consolidate all developer documentation since it is really hard to browse README.md files sprinkled throughout the repo.

@nyurik
Copy link
Member Author

nyurik commented Jan 24, 2025

ok, works for me

rustutils/justfile Outdated Show resolved Hide resolved
@louwers louwers enabled auto-merge (squash) January 27, 2025 18:02
@louwers louwers merged commit 428c0b8 into maplibre:main Jan 27, 2025
32 checks passed
Copy link

Benchmark Results ⚡

Benchmark                                                     Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------------------------------
OVERALL_GEOMEAN                                            +0.0058         +0.0056             0             0             0             0

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-3175-compared-to-main.txt

Copy link

Bloaty Results 🐋

Compared to main

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  [ = ]       0  [ = ]       0    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3175-compared-to-main.txt

Compared to d387090 (legacy)

    FILE SIZE        VM SIZE    
 --------------  -------------- 
   +31% +36.1Mi  +438% +26.2Mi    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3175-compared-to-legacy.txt

@nyurik nyurik deleted the rust-ci branch January 27, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants