rinf

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

MIT License

Downloads
653K
Stars
1.9K
Committers
15

Bot releases are visible (Hide)

rinf - v4.19.0

Published by temeddix 11 months ago

What's Changed

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

rinf - v4.18.0

Published by temeddix 11 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/cunarist/rinf/compare/v4.17.1...v4.18.0

rinf - v4.17.1

Published by temeddix 11 months ago

What's Changed

Now rinf message --watch works recursively on Linux too.

Full Changelog: https://github.com/cunarist/rinf/compare/v4.17.0...v4.17.1

rinf - v4.17.0

Published by temeddix 11 months ago

What's Changed

Full Changelog: https://github.com/cunarist/rinf/compare/v4.16.3...v4.17.0

rinf - Version 4.16.3

Published by temeddix 11 months ago

  • Updated package descriptions.
rinf - Version 4.16.2

Published by temeddix 11 months ago

  • Improved guides to avoid misconceptions about the communication system. Rinf only uses FFI without any web server.
rinf - Version 4.16.1

Published by temeddix 12 months ago

  • Fixed the broken rinf template --bridge command
rinf - Version 4.16.0

Published by temeddix 12 months ago

  • Vastly organized files, dependencies, and code readability. Now the hub crate is much cleaner than before. If you already have an app using older Rinf versions, it is recommended to run rinf template --bridge and add rinf = "4.16.0" to Cargo.toml of the hub crate.

Now it's much cleaner to write code and add dependencies inside the hub crate. web_alias module was removed and is replaced with the tokio_with_wasm crate.

native/hub/Cargo.toml of 4.16.0:

[package]
# Do not change the name of this crate.
name = "hub"
version = "0.1.0"
edition = "2021"

[lib]
# `lib` is required for non-library targets,
# such as tests and benchmarks.
# `cdylib` is for Linux, Android, Windows, and web.
# `staticlib` is for iOS and macOS.
crate-type = ["lib", "cdylib", "staticlib"]

[dependencies]
rinf = "4.16.0"
tokio_with_wasm = "0.3.2"
wasm-bindgen = "0.2.87"
prost = "0.12.0"
sample_crate = { path = "../sample_crate" }

native/hub/Cargo.toml of 4.15.2:

[package]
# Do not change the name of this crate.
name = "hub"
version = "0.1.0"
edition = "2021"

[lib]
# `lib` is required for non-library targets,
# such as tests and benchmarks.
# `cdylib` is for Linux, Android, Windows, and web.
# `staticlib` is for iOS and macOS.
crate-type = ["lib", "cdylib", "staticlib"]

# These are dependencies for non-web platforms.
[target.'cfg(not(target_family = "wasm"))'.dependencies]
libc = "0.2"
dart-sys = { version = "4.0.2" }
allo-isolate = { version = "0.1.20", features = ["zero-copy"] }
tokio = { version = "1.28.2", features = ["rt-multi-thread", "time"] }
os-thread-local = "0.1.3"
backtrace = "0.3.69"

# These are dependencies for the web.
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen = { version = "0.2.87" }
wasm-bindgen-futures = "0.4.37"
js-sys = "0.3.64"
web-sys = { version = "0.3.64", features = [
    "DedicatedWorkerGlobalScope",
    "MessagePort",
    "Blob",
    "BlobPropertyBag",
    "Worker",
    "Url",
    "BroadcastChannel",
] }
async_wasm_task = "0.2.3"

[dependencies]
bytemuck = "1.11.0"
lazy_static = "1.4.0"
tokio = { version = "1.28.2", features = ["sync", "macros"] }
prost = "0.12.0"
sample_crate = { path = "../sample_crate" }
rinf - Version 4.15.2

Published by temeddix 12 months ago

  • Now the web API fetching example uses http instead of https in the example app.
rinf - Version 4.15.1

Published by temeddix 12 months ago

  • Now the reqwest crate will be disabled when compiling the example app for Android.

The reqwest crate supports all platforms, including web. However, compiling it for Android on Windows can be challenging
due to its dependency on the openssl-sys crate, which requires the corresponding C library to be installed on the system. Compiling reqwest for Android is possible with the right system setup, but it's now intentionally disabled in our sample crate to ensure that the example app 'just works'.

rinf - Version 4.15.0

Published by temeddix 12 months ago

  • Allowed setting custom timeout when using requestToRust(). Thanks @cipherchabon!
rinf - Version 4.14.0

Published by temeddix 12 months ago

  • Added a web API fetching example to the template.
  • Fixed various things such as template comments, code linting issues.
rinf - Version 4.13.2

Published by temeddix 12 months ago

  • Fixed small things.
rinf - Version 4.13.1

Published by temeddix 12 months ago

  • Fixed formatting issues in Dart code.
rinf - Version 4.13.0

Published by temeddix 12 months ago

  • Improved the template code by disabling CPU-intensive tasks and removing unneeded dependency features.
  • Improved CLI outputs from rinf wasm.
  • Improved various guides and template comments.

This is the first version to use automated GitHub publishing workflow to pub.dev and crates.io for stable consistency across platforms, as discussed in #192.

rinf - Version 4.12.5

Published by temeddix 12 months ago

This is an experimental publication performed by a GitHub workflow.