Skip to content

feat: rewrite hyprquery in Rust using hyprlang-rs#5

Merged
RAprogramm merged 3 commits intoHyDE-Project:devfrom
RAprogramm:pr-rust-rewrite
Nov 24, 2025
Merged

feat: rewrite hyprquery in Rust using hyprlang-rs#5
RAprogramm merged 3 commits intoHyDE-Project:devfrom
RAprogramm:pr-rust-rewrite

Conversation

@RAprogramm
Copy link
Collaborator

@RAprogramm RAprogramm commented Nov 24, 2025

Summary

  • Complete rewrite of hyprquery in Rust
  • Uses hyprlang-rs for parsing Hyprland configuration
  • Improved performance and maintainability

Changes

  • New Rust implementation replacing the previous codebase
  • Updated README with usage instructions

Closses #2

Complete rewrite from C++ to Rust for better performance and maintainability.

Features:
- Query nested configuration values
- Dynamic variable support ($var)
- Type and regex filtering
- Multiple export formats (plain, JSON, env)
- Source directive following with cycle detection
- Schema-based default values
- Colorful help output

Binary: hyq
Package: hyprquery
@RAprogramm RAprogramm merged commit c1e496d into HyDE-Project:dev Nov 24, 2025
8 checks passed
@RAprogramm RAprogramm deleted the pr-rust-rewrite branch November 24, 2025 00:55
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 95.65217% with 87 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/app.rs 94.87% 27 Missing ⚠️
src/fetch.rs 80.73% 21 Missing ⚠️
src/main.rs 75.92% 13 Missing ⚠️
src/source.rs 95.83% 9 Missing ⚠️
src/error.rs 92.68% 6 Missing ⚠️
src/schema.rs 96.73% 5 Missing ⚠️
src/query.rs 96.80% 3 Missing ⚠️
src/value.rs 98.30% 2 Missing ⚠️
src/defaults.rs 99.15% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

feature: I think it is more convenient to use https://github.com/spinualexandru/hyprlang-rs

2 participants