GithubHelp home page GithubHelp logo

afoxer-com / rsbind Goto Github PK

View Code? Open in Web Editor NEW
356.0 356.0 29.0 22.43 MB

Invoke rust services just like you write it in native language.

License: Apache License 2.0

Java 3.43% Swift 11.87% C 0.39% Shell 0.08% Rust 82.68% Ruby 1.55%
android binding ffi ios mobile rust uniffi

rsbind's People

Contributors

afoxer-com avatar atul9 avatar sidneywang avatar wangxinsidney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rsbind's Issues

对.a文件的体积影响很大

你好,我这边手头的核心代码本身生成的.a size在优化后是2.6mb, 发现用rsbind生成bridge代码后再统一生成.a文件 size直接就涨到9mb, 是否是引用了额外的std symbol导致的,请问有没有什么手段能把目前用不到的一些bridge能力和相关依赖去掉。。

llvm-strip error

process '"cargo" "rustc" "--target" "x86_64-linux-android" "--lib" "--target-dir" "target" "--release" "--" "-L" "target/cargo-apk-temp-extra-link-libraries"' finished with: exit status: 0
/usr/local/Caskroom/android-ndk/23b/android-ndk-r23b/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip: error: 'target/x86_64-linux-android/release/demo': No such file or directory
/usr/local/Caskroom/android-ndk/23b/android-ndk-r23b/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip: error: 'target/x86_64-linux-android/release/demo': No such file or directory
process '"/usr/local/Caskroom/android-ndk/23b/android-ndk-r23b/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip" "-s" "target/x86_64-linux-android/release/demo"' finished with: exit status: 1

"test_arg_callback"在android项目中调用出现闪退,其他方法都能正常调用

你好,我在android demo工程中尝试callback调用,必现闪退,其他test方法调用倒是ok的,调用代码和闪退信息如下:

`TestContract1.test_arg_callback(new Callback() {
@OverRide
public byte on_callback_u8(byte arg1) {
return 0;
}

        @Override
        public byte on_callback_i8(byte arg1) {
            return 0;
        }

        @Override
        public int on_callback(int arg1, String arg2, boolean arg3, float arg4, double arg5) {
            return 0;
        }

        @Override
        public boolean on_callback2(boolean arg1) {
            return false;
        }

        @Override
        public boolean on_callback_complex(StructSimple arg1) {
            return false;
        }

        @Override
        public boolean on_callback_arg_vec(StructSimple[] arg1) {
            return false;
        }

        @Override
        public boolean on_callback_arg_vec_simple(String[] arg1) {
            return false;
        }

        @Override
        public void on_empty_callback() {

        }
    });`

崩溃信息
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10286 (ple.com.android), pid 10286 (ple.com.android)

How can I debug Rust on Android

I'm trying to develop Android apps by Rust. But when I try to debug it, I can't find the direct way to touch this, only by command lines.
Is there any way more?

He changed the configuration of the new edition.

https://developer.android.com/ndk/guides/other_build_systems

As of NDK r19, the toolchains installed by default with the NDK may be used in-place. The make_standalone_toolchain.py script is no longer needed for interfacing with arbitrary build systems.

To ensure that you build for the correct architecture, either pass the appropriate target with -target when invoking Clang, or invoke the target-prefixed Clang. For example, to compile for 64-bit ARM Android with a minSdkVersion of 21, either of the following will work and you may use whichever you find most convenient:

iOS Demo Failed

module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1 compiler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.