Daniel Porteous (dport)

Results 264 comments of Daniel Porteous (dport)

Ah okay I see what you mean, you mean this: https://github.com/banool/aptos_api_dart/blob/main/lib/src/model/transaction_payload.dart#L39. So our API returns `script_function_payload` but we don't specify that in the spec? I'm not sure what you mean...

Thanks a lot, appreciate all the wisdom. I think this PR should be good to go then.

Hi, I've done everything suggested at http://cjycode.com/flutter_rust_bridge/integrate/ios_headers.html already, and I've done it again multiple times just to make sure. I started by using that template and I didn't change it,...

Hey yeah I did that and it doesn't help, at `frontend/ios` in the attached repo.

1. I just put in logging and can confirm this gets executed, in both debug and release mode. 2. It seems to work. Code in `AppDelegate.swift`: https://gist.github.com/banool/0e2a2f9e325f2d0fd51c6c9e2bfff862, the output from...

Okay I just figured it out. tl;dr, `dummy_method_to_enforce_bundling` doesn't actually do its job. What does work is this in `AppDelegate.swift`: ``` print(wire_download_page) print(wire_platform) print(wire_rust_release_mode) print(new_box_autoadd_options) print(new_uint_8_list) print(free_WireSyncReturnStruct) print(store_dart_post_cobject) ``` As...

Okay a better method is this: ``` let dummy = dummy_method_to_enforce_bundling() print(dummy) ``` It seems they just throw out the function call if you don't use the value from it....

See PR: https://github.com/fzyzcjy/flutter_rust_bridge/pull/502.

Hmm not quite, what I really want is something like this: https://github.com/poem-web/poem/issues/322. This code explains what I want better: ```rust mod remote { #[derive(Debug, Eq, PartialEq)] pub struct Address(pub String);...

I think that's an acceptable bound to have if you want to use this feature. I'll look at the traits some more to make sure I understand what you're talking...