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

rtz: 0.5.3 -> 0.7.0 #337471

Merged
merged 1 commit into from
Aug 31, 2024
Merged

rtz: 0.5.3 -> 0.7.0 #337471

merged 1 commit into from
Aug 31, 2024

Conversation

samueltardieu
Copy link
Contributor

Description of changes

Changes

Breaking Changes

  • New data has been ingested (see README for sources and dates). This does not break functionality, but may break any tests that rely on the results of lookups via the data in this package.

Major Improvements

  • Upgraded all dependencies.
  • Added default open CORS policy to the web server.
  • Added ability to automatically push web analytics to Application Insights.
  • Reworked alignment for bincode assets.
  • Fixed issues with using double-precision feature.
  • Stabilized to stable Rust 1.80.

Full Changelog: twitchax/rtz@v0.5.3...v0.7.0.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@samueltardieu
Copy link
Contributor Author

samueltardieu commented Aug 26, 2024

cc @figsoda

@@ -27,6 +27,12 @@ rustPlatform.buildRustPackage rec {
};
};

patches = [
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be cargoPatches to correctly work?

Copy link
Contributor Author

@samueltardieu samueltardieu Aug 26, 2024

Choose a reason for hiding this comment

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

From what I understand, using cargoPatches would be required if the patched Cargo.lock was used as a source for nixpkgs dependency vendoring. Here we have to provide an explicit cargoLock anyway because there is a git dependency that needs to be checked, so the regular patches works fine.

patches = [
# Use a vendored version of uitoipa-swagger-ui which does not require
# network access at build time.
./vendored-uitoipa-swagger-ui.patch
Copy link
Member

Choose a reason for hiding this comment

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

Seems like we could avoid the patch by fetching it ourselves in a FOD and setting SWAGGER_UI_DOWNLOAD_URL to a file: URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very interesting idea, let me try that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@JarvisCraft
Copy link
Contributor

@samueltardieu, since no more nightly features are used, env.RUSTC_BOOTSTRAP can be removed (tested it builds without it)

@samueltardieu
Copy link
Contributor Author

since no more nightly features are used, env.RUSTC_BOOTSTRAP can be removed (tested it builds without it)

Good catch, updated.

@samueltardieu
Copy link
Contributor Author

Note: additionally, I've proposed that rtz use the  vendored feature flag for utoipa-swagger-ui which would let us remove the hardcoded swagger-ui version (twitchax/rtz#9).

@samueltardieu
Copy link
Contributor Author

Anything else to do? (ping @alyssais)

Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

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

Seems like it should be marked broken on x86_64-darwin — would you mind opening a followup PR for that? I'm not going to hold this one back for that, so that we can unbreak it for Linux users.

@alyssais alyssais merged commit 4478f42 into NixOS:master Aug 31, 2024
25 of 26 checks passed
@samueltardieu
Copy link
Contributor Author

Seems like it should be marked broken on x86_64-darwin — would you mind opening a followup PR for that? I'm not going to hold this one back for that, so that we can unbreak it for Linux users.

Sure, I've opened #338589 to try and fix it.

@samueltardieu samueltardieu deleted the rtz-0.7.0 branch September 11, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants