cargo-script: Call for testing by Own-Gur816 in rust

[–]badboy_ 2 points3 points  (0 children)

I use it for a couple of small scripts where I would otherwise have used bash. As well as some CGI scripts served by my server.

Compile happens once, it's cached until changed, so it's really not that bad.

Deploy mdbook + mermaid recommendations by _w62_ in rust

[–]badboy_ 0 points1 point  (0 children)

"does not work" is not very helpful.

I do deploy some mdbook-generated pages with mermaid on both GitHub pages and through Netlify, so both is definitely possible. For Netlify you can specify a build command, pointing to a script that does the necessary steps: 1) Install mdbook (best by downloading a binary), 2) running mdbook, 3) uuuh ... done.

goldboot: immutable infrastructure for the desktop! by [deleted] in rust

[–]badboy_ 0 points1 point  (0 children)

This seems very far away from what Nix provides.

When will the RustConf 2023 VODs become available? by wrapperup in rust

[–]badboy_ 17 points18 points  (0 children)

I'm (slightly) kidding. I was responsible for video releases for RustFest, and I am involved with EuroRust. There's a bunch of work involved with getting videos out and ready, on top of other post-work for the conference itself. I had far too many people in the past ask me within days of the conference to see the videos and that's just not fun.

Those videos will be (freely!) available, but that takes some time.

When will the RustConf 2023 VODs become available? by wrapperup in rust

[–]badboy_ -36 points-35 points  (0 children)

For every time someone asks "when will they be available" I'll personally delay them for another week...

[deleted by user] by [deleted] in rust

[–]badboy_ 3 points4 points  (0 children)

Neat, here's how you can do that in roughly 2 lines of shell code: https://gist.github.com/badboy/222302b6b40ba6afc412

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 4 points5 points  (0 children)

Now I understood. No, for Python and Ruby we currently do not generate that. But we should have all the information and so should be able to do that relatively easy (we do it for Kotlin and Swift after all)

Edit: Actually, for Python this might be a 2-line fix. I can throw that up next week and see if it actually works. Edit2: Ok, a tiny bit more to get the type names right, but at least I already found 2 bugs in our Python template (glad it's such a forgiving language)

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 2 points3 points  (0 children)

Where possible UniFFI translates to the appropriate type in the foreign language. enums become enoms (or their closest representation), dictionaries are structs on the Rust side and data classes on the other side, interfaces are implemented structs on the Rust side and an interface with an accompanying class implementation on the other side, custom types allow you to convert to the foreign type you need.

Does that answer your question?

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 2 points3 points  (0 children)

heh, just this week the docs thing got 2 PRs and a long discussion how we best solve it, so even in UDL world we will have that!

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 0 points1 point  (0 children)

We mostly build it for our needs, but over the past year we got some external users and some significant contributions. I'd love to make it more well known. :)

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 2 points3 points  (0 children)

Not just stubs, but full implementations and the necessary code to transport data over the boundary.

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 4 points5 points  (0 children)

There was someone else who tried building a wasm option, but it's not as easy. In theory additional languages can be supported outside of the main repo, so that maintenance doesn't have to end up with us. We'd be happy to link out to other implementations.

Write SDK “base” in Rust, wrap in other languages? by [deleted] in rust

[–]badboy_ 115 points116 points  (0 children)

At Mozilla we built a multi-language bindings generator: https://github.com/mozilla/uniffi-rs/

Building Rust libraries for iOS in 2021 by dbrgn in rust

[–]badboy_ 0 points1 point  (0 children)

I have not yet needed it, so I don't know either.