rinf

Rust for native business logic, Flutter for flexible and beautiful GUI

MIT License

Downloads
653K
Stars
1.9K
Committers
15

Bot releases are hidden (Show)

rinf - v6.4.0

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v6.3.1...v6.4.0

  • The start and stop mechanism of Rust has become more stable.
rinf - v6.3.1

Published by temeddix 9 months ago

Full Changelog: https://github.com/cunarist/rinf/compare/v6.3.0...v6.3.1

  • Fixed a small glitch with codegen.
rinf - v6.3.0

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/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.
rinf - v6.2.0

Published by temeddix 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/cunarist/rinf/compare/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.
rinf - v6.1.0

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v6.0.1...v6.1.0

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

Published by temeddix 9 months ago

Full Changelog: https://github.com/cunarist/rinf/compare/v6.0.0...v6.0.1

  • Improved CLI output texts.
  • js Dart package was removed.
rinf - v6.0.0

Published by temeddix 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/cunarist/rinf/compare/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.
rinf - v6.0.0-beta

Published by temeddix 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/cunarist/rinf/compare/v6.0.0-alpha...v6.0.0-beta

rinf - v6.0.0-alpha

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/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);
rinf - v5.4.0

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/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.
rinf - v5.3.1

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v5.3.0...v5.3.1

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

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v5.2.0...v5.3.0

  • Now it is possible to use import statements in .proto files.
  • Now you can use Flutter's hot restart properly while developing.
  • Tutorials and guides are improved.
  • Fixed a bug with rinf message, that might fail if some of the folders are empty.
rinf - v5.2.0

Published by temeddix 9 months ago

rinf - v5.1.3

Published by temeddix 9 months ago

rinf - v5.1.2

Published by temeddix 9 months ago

rinf - v5.1.1

Published by temeddix 9 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v5.1.0...v5.1.1

rinf - v5.1.0

Published by temeddix 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/cunarist/rinf/compare/v5.0.0...v5.1.0

This PR removes code copied from flutter_rust_bridge. Take a look at this Reddit post for details.

rinf - v5.0.0

Published by temeddix 10 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v4.20.0...v5.0.0

Please refer to announcement #259 for more infromation.

rinf - v4.20.0

Published by temeddix 10 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v4.19.1...v4.20.0

rinf - v4.19.1

Published by temeddix 10 months ago

Full Changelog: https://github.com/cunarist/rinf/compare/v4.19.0...v4.19.1

This version reflects URL changes. Now the new official URL is rinf.cunarist.com.