Skip to content

Further refinements to the Driver Config API#166

Merged
rneswold merged 9 commits intoDrMemCS:mainfrom
rneswold:config-api
Jan 26, 2026
Merged

Further refinements to the Driver Config API#166
rneswold merged 9 commits intoDrMemCS:mainfrom
rneswold:config-api

Conversation

@rneswold
Copy link
Contributor

This PR ties the configuration structure to both the driver and the Registrator. By tying them together with the type system, the driver manager can convert the TOML entries into the Rust structure and then pass it to both methods.

I set up a DrMem node with a logic node in which a `def` expression
could return no value (i.e. no "else" clause in an "if-statement".) I
wasn't sure it would get forwarded to the controlling expression.

This commit adds a test that verifies yes, if a `def` doesn't return a
value, then the device doesn't get updated.
With this commit, the driver and registrator APIs share the type of
the configuration instead of each of them parsing the TOML data. The
driver manager will do the conversion and pass the type to each
method.
@rneswold rneswold merged commit 3d524f0 into DrMemCS:main Jan 26, 2026
3 checks passed
@rneswold rneswold deleted the config-api branch January 26, 2026 06:22
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