Jump to content

Beta release of the rust bindings


rtrbt
 Share

Recommended Posts

Hi,

 

As of yesterday, a beta version of the rust bindings is available. Please tinker around with them and post any bugs, suggestions and other feedback here.

 

The current version of the bindings is attached to this post, including example sources and an example project, which enumerates connected devices. The bindings can also be installed using Cargo by listing

tinkerforge = "2.0"

in the

[dependencies]

secion of a project's Cargo.toml.

 

The bindings require a nightly version of the rust compiler, or the current beta release (version 1.31), which will be released as stable on the 7th of december, according to the road map. The beta can be installed with

rustup install beta

and then can be used with

cargo +beta build

. Also it is possible to set the beta as the default compiler with

rustup default beta

, which allows compiling without additional arguments.

 

Nearly all get and set functions and callback registrations are asynchronous, as they return a wrapper around a Receiver, that converts received bytes into structured data. More information can be found in the binding's readme and here. The documentation on the Tinkerforge home page is not visible yet, as it is still work in progress.

 

Have a lot of fun!

 

Erik

tinkerforge_rust_bindings_2_0_3.zip

tf_rust_example.zip

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...