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

Rust: Settings type #4839

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

youyuanwu
Copy link
Contributor

Description

Add safe wrapper for QUIC_SETTINGS ffi type.
Add setters for each setting entry using macro.
Changed Configuration new() to use new Settings type and removed the manual ffi type.

MISC:
Preview settings is removed/regressed because the auto generated bindings do not have preview apis yet.
Rust code files are accumulated in src dir. We should add a dedicated dir inside src to keep all rust code together. Will do it in a separate PR.

Testing

Added simple test to set settings using setters, and get the settings using ffi type to verify they match.

Documentation

NA

Copy link

codecov bot commented Feb 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.01%. Comparing base (7b2fbaf) to head (36e1a4a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4839      +/-   ##
==========================================
- Coverage   87.43%   86.01%   -1.43%     
==========================================
  Files          56       56              
  Lines       17634    17634              
==========================================
- Hits        15419    15168     -251     
- Misses       2215     2466     +251     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant