·
22 commits
to main
since this release
This release adds some final touches to the lib before version 1.0.0.
Full Changelog: v0.3.0-alpha...v0.4.0-alpha
Breaking Changes
- Method
Topic::name_mutnow returns a&mut Stringinstead of a&mut str. AnnouncedTopicsandAnnouncedTopicstructs no longer implementEq.- Trait
NetworkTableDatano longer has aClonerequirement. - Removed error variants
ReceiveMessageError::FailedDeserializingJsonandReceiveMessageError::FailedDeserializingMsgPackin favor of warn logs Topic::subscribeandTopicCollection::subscribenow return aResult.
Additions
- Created method
Client.connect_setupthat allows a callback to be called once the client has connected. DataTypenow implementsCopy- Created a non-generic version of
Publisherto allow for publishing arbitrary data at runtime viaTopic::generic_publish. - Created a way to retrieve a topic's value via
AnnouncedTopic::value. - Added feature
publish_bypassthat adds bypass versions of publishing as a workaround to a NetworkTables bug. - Created a cheaply-clonable
ClientHandle, accessed viaClient::handle, that can be used in asynchronous environments.
Improvements
- Tracing is now much more reliable and contains more information.
- Channel capacity for websocket messages greatly increased, reducing lagged errors.
- Several more docs are now clearer and include examples.