typeshare
card_game
typeshare | card_game | |
---|---|---|
10 | 5 | |
30 | 8 | |
- | - | |
0.0 | 0.0 | |
over 4 years ago | about 2 years ago | |
Rust | Rust | |
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.
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.
card_game
- ts-rs - generate typescript type declarations from rust types
- Using tarpc or rocket as a game server?
- What’s everyone working on this week (14/2021)?
-
Extend Rust app using Lua
I've used rlua in the past and it works quite well. I also made a wrapper for it (tealr) so it is easier to work with teal (lua + static typing basically). You can explore the repo that uses it here https://github.com/lenscas/card_game/tree/master/server
-
Rust in Production: 1Password
The F# thing: https://github.com/lenscas/card_game/blob/try_godot/shared/src/main.rs and the rust code that reads the schema to create types : https://github.com/lenscas/type_generator
What are some alternatives?
bitwarden_rs - Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs [Moved to: https://github.com/dani-garcia/vaultwarden]
typebinder - Exports TS definitions from Rust module
silver_editor - A small editor for quicksilver and Mergui
fflag
trane - An automated practice system for learning complex skills
rlua - High level Lua bindings to Rust
trane-math - Official math courses from the Trane Project
python-compiler - A compiler for a subset of Python using LLVM
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
gamma - Computational graphs with reverse automatic differentation in the GPU
aerospike-client-rust - Rust client for the Aerospike database
ts-rs - Generate TypeScript bindings from Rust types