Skip to content

Releases: cunarist/rinf

v6.3.1

01 Feb 18:15
Compare
Choose a tag to compare

Full Changelog: v6.3.0...v6.3.1

  • Fixed a small glitch with codegen.

v6.3.0

01 Feb 17:44
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.2.0...v6.3.0

  • The interface code has been organized. Now the bridge Rust module is gone and the API makes more sense. Please refer to the example code to upgrade.

v6.2.0

30 Jan 14:57
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.1.0...v6.2.0

  • Now custom installation of protoc works. This is useful when you don't have full access to GitHub APIs, which is needed for automatic protoc installation. Thanks @TENX-S!
  • Signal handling has become more efficient.

v6.1.0

24 Jan 03:59
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.0.1...v6.1.0

  • Now rustSignalStream's listen can be called multiple times. Thanks @rabbitson87!

v6.0.1

23 Jan 17:31
Compare
Choose a tag to compare

Full Changelog: v6.0.0...v6.0.1

  • Improved CLI output texts.
  • js Dart package was removed.

v6.0.0

22 Jan 13:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.4.0...v6.0.0

  • You need to run rinf template, cargo install rinf again to use this new version.
  • Now the communication between Dart and Rust is much simpler. You can mark messages in .proto files so that Rinf's code generator can generate channels in-between. This new system is not compatible with older Rinf versions, so please check the docs before you upgrade.
  • Added the ability to customize Rinf's behaviors by writing fields inside pubspec.yaml file. Thanks @thlorenz!
  • Allowed users to check when the documentation page was made and edited. Thanks @VictorieeMan!
  • Now it's possible to quit rinf message --watch by pressing q on your keyboard.
  • Internal code has been organized.

v6.0.0-beta

19 Jan 17:18
Compare
Choose a tag to compare

What's Changed

  • Organize code and docs by @temeddix in #274
  • Add a new GitHub Action that checks installing from the user's perspective by @temeddix in #275
  • Organize event driven system by @temeddix in #277
  • Added last edit date to mkdocs documentation by the "git-revision-date-localized-plugin" by @VictorieeMan in #276

New Contributors

Full Changelog: v6.0.0-alpha...v6.0.0-beta

v6.0.0-alpha

17 Jan 12:51
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.4.0...v6.0.0-alpha

There's a new simple codegen mechanism, and the mechanism is as follows. // [RINF:DART-SIGNAL] and // [RINF:RUST-SIGNAL] comment marks the message as communcation channel, so that the codegen can understand that it should provide additional mechanism for them.

The previous REST-style API will be deprecated. There are only two-way channels now. However, you can achieve request-response pattern quite easily as written in the docs.

From Dart to Rust

// proto

// [RINF:DART-SIGNAL]
message DataInput { ... }

would allow us to do

// Dart

dataInputSend(DataInput( ... ), null);

and

// Rust

let receiver = data_input_receiver();
while let Some(data_input) = receiver.recv().await {
    // Custom Rust logic here
}

From Rust to Dart

// proto

// [RINF:RUST-SIGNAL]
message DataOutput { ... }

would allow us to do

// Dart

dataOutputStream.listen((dataOutput) {
    // Custom Dart logic here
}

and

// Rust

data_output_send(DataOutput{ ... }, None);

v5.4.0

15 Jan 06:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.3.1...v5.4.0

  • Now users do not have to manually install protoc binary executable anymore. Protobuf compiler is now automatically installed. Note that you need to run cargo install rinf again to use this new version.

v5.3.1

13 Jan 16:41
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.3.0...v5.3.1

  • Fixed a bug with rinf message that omits mod.rs inside a folder without any message.