fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to package into a dart package and upload it to pub.dev for others to use

mdddj opened this issue Β· comments

commented

I found that the plugin depends on this package, there are some scripts in it, but it can't be uploaded to pub.dev, is there any other way to do it?

  rust_lib_aria2_plugin:
    path: rust_builder

Hi, flutter_rust_bridge allows arbitrary approaches for this. For example, you can have a look at cargokit (which is also used by flutter_rust_bridge's default template). Its sample usage will guide you through how to make a publishable package.

commented

Hi, and thank you for your response. I tried adding the cargokit to the plugins folder as outlined in the blog article, along with certain configuration settings. Unfortunately, the cargokit does not initialize correctly. Please find below the list of files I have added or modified for your reference. (Flutter plugin in Rust with no prebuilt binaries)

  await RustLib.init();
image image image

Unfortunately, the cargokit does not initialize correctly.

Hi, seems that the cargokit part has not succeed yet. Then one way is to firstly go through the cargokit tutorial to make a running demo, and (only after success) add flutter_rust_bridge and make it work.

commented

Hi,Thank you, in your way, solved this problem, closed this issue πŸ‘πŸ»πŸ‘πŸ»πŸ‘πŸ»

You are welcome and happy to see it is solved!

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.