diplomat
typeshare
diplomat | typeshare | |
---|---|---|
6 | 10 | |
452 | 30 | |
3.1% | - | |
8.8 | 0.0 | |
3 days ago | over 4 years ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
diplomat
-
ffizz: Build a Beautiful C API in Rust
The tooling for the first kind -- calling Rust from another language -- is a bit less developed, and tends to rely on code generation that doesn't necessarily produce a natural C API. cbindgen, uniffi, cxx, and Diplomat all take this course.
-
ICU4X 1.2: Now With Text Segmentation and More on Low-Resource Devices
I don't think that accurately describes what ICU4X does. It generates code directly in the language needed using Diplomat. Which currently supports JS/TS/Wasm, C, C++, and .NET, but we plan to support more (Dart is actively being worked on, there is a lot of interest in Java). Diplomat is designed to be relatively easy to write backends for: you have to write code that converts its internal IR to bindings code, so you mostly need to understand that internal IR and figure out how to idiomatically map it to other languages.
- 1Password releases Typeshare, the "ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI"
-
Multi-language library support: Is it possible?
The ICU4X team is developing diplomat - https://github.com/rust-diplomat/diplomat/
-
Anyone interested in open-sourcing high-level memory-safe bindgen for Dart/Flutter <–> Rust?
I'm not that interested in a separate tool for this but it would be really cool to have a dart plugin as a part of Diplomat. Diplomat's not fully polished yet but it's totally okay to add new language backends to it. (Eventually I plan to restructure it so that it has a cleaner plugin interface, but for now "checked into tree" is fine for backends)
typeshare
-
Using rust to generate typescript client
It doesn’t generate a complete client but 1Password’s Typeshare can generate TypeScript from Rust data structures https://github.com/1password/typeshare
-
Is rust overkill for most back-end apps that could be done quickly by NodeJS or PHP?
Aren't there things like typeshare to aid with that case?
-
Bloom's 2 Sigma Problem
Sure. I would love some help. I am visiting my family all March (I am typing this from the airport), so I don't know how much time I'll have to work on trane for the next month. But maybe that gives you some time to use it, and read the code and docs.
I am not going to put my personal email here, and I don't see an option to send private messages on hn, although it's probably out there somewhere. Probably in the commits, lol. Worst case, feel free to open an issue on the trane repo.
As a first ask, what do you think of this: https://github.com/1Password/typeshare?
I figured writing the UI in rust is probably not a good idea. The ecosystem for UI is very immature and the language itself is probably overkill. But doing it in typescript/html/css requires you to understand the internal data structures (all the JSON files you see in the courses are just serialized rust objects).
I found that repo and it seems like a promising approach to autogenerate the types and make the interaction easier.
-
Generating java code from rust structs
How does this compare to typeshare?
-
Upcoming Q and A re: Typeshare, a tool to help Rust developers generate consistent type schema
Recently, 1Password open-sourced Typeshare, to help Rust developers create FFI (foreign function interfaces). Curious to learn more? Join the team behind the tool this week on Zoom at 11a Eastern to discuss Typeshare and answer any questions.
-
Open Source Project
Newly open-sourced project that might be handy for some of you all https://github.com/1Password/typeshare
- Typeshare: Synchronize type definitions between Rust and other languages
- 1Password releases Typeshare, the "ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI"
-
How to Build a Rust CLI Tool to Generate Typescript Types from Rust
Typeshare by 1Password, the original inspiration for this blog post. It's available on crates.io.
-
Rust in Production: 1Password
For sure! We actually open sourced an early version of it a while back (https://github.com/1Password/typeshare), but it became a slowdown to work on it both for our own internal needs and for the outside world, so that was abandoned and it's since fallen out of sync with the project internally today.
What are some alternatives?
uniffi-rs - a multi-language bindings generator for rust
card_game
flutter_rust_bridge - Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
bitwarden_rs - Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs [Moved to: https://github.com/dani-garcia/vaultwarden]
cbindgen - A project for generating C bindings from Rust code
silver_editor - A small editor for quicksilver and Mergui
wgpu - Cross-platform, safe, pure-rust graphics api.
trane - An automated practice system for learning complex skills
moat - mobile type (currently Swift, Kotlin) generation from Haskell types
trane-math - Official math courses from the Trane Project
airbax - Exception tracking from Elixir to Airbrake
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project