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

deprecate driver mode #225

Merged
merged 1 commit into from
Jun 8, 2024
Merged

deprecate driver mode #225

merged 1 commit into from
Jun 8, 2024

Conversation

camshaft
Copy link
Owner

@camshaft camshaft commented Jun 8, 2024

Initially, DriverMode was designed to give various drivers options for how to generate values, either in Forced mode, which basically tries everything it can to generate a valid value, or Direct mode, which maps the underlying bytes directly to a value and bails if not possible. In practice, DriverMode is confusing, inconsistent, and poorly documented.

This change deprecates the use of DriverMode and instead just uses a combination of the two in places where it makes sense. Essentially, the way generators are implemented no longer depend on the driver type itself.

@camshaft camshaft force-pushed the deprecate-driver-mode branch from 489722a to 0967772 Compare June 8, 2024 13:45
@camshaft camshaft force-pushed the deprecate-driver-mode branch from 0967772 to 56a1415 Compare June 8, 2024 13:49
@camshaft camshaft marked this pull request as ready for review June 8, 2024 14:07
@camshaft camshaft merged commit e40f5af into master Jun 8, 2024
8 of 9 checks passed
@camshaft camshaft deleted the deprecate-driver-mode branch June 8, 2024 14:15
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