News for hackers. Stuff that matters.

lionside

Re:Show HN: Embed ViteJS-compiled assets in your Rust binary on Friday December 27, 2024 @08:59AM (#42522082)
Oh, one more thing! I'd like to share an excerpt from the README to make sure folks considering this approach understand all the cons that I could think of:

```

As with all things in life, there are considerations to take into account before using vite-rs:

    It's one more thing to debug when things go wrong.

    It'll increase compile time. See the note on compile times for large assets.

    For those deploying to embedded devices: it'll increase your binary size.

    Shipping frontend with your backend can slow you down as you'll have to wait for your Rust backend to compile everytime you want to release a new build. Similarly, failing CI/CD pipelines pertaining to the backend will also stop your frontend frontend from deploying.

    It may be faster or cheaper to deploy your frontend on CDNs instead of serving it.
```

Show HN: Embed ViteJS-compiled assets in your Rust binary

https://github.com/Wulf/vite-rs

Dear HN community --Merry Christmas, Happy Hannukah, and all the best in the upcoming new year :)Just wanted to share a crate I've been working on that I finally felt was ready to publish. It's primary purpose is to make it easy to integrate ViteJS with your Rust project. It tries to be a low-touch integration so you can continue using ViteJS as you normally would.The next step for this is to...

( Read More... | 1 comment | 2 points | on HN )
I used to work at Resemble.ai and we used models that did real-time synthesis. I don’t think it’s particularly difficult anymore, even without sacrificing quality.
Checkout https://resemble.ai

I used to work there; great team behind the product!

I’m going to add dsync to create-rust-app [1] so users can apply a database-first approach in rust!

[1] https://github.com/Wulf/create-rust-app

Wowowowow thanks for your efforts behind this!

I’ve integrated vite with a rust backend[1] and so many people have asked me how I managed to achieve SSR because they equate SSR with render+hydrate but it’s really just classical SSR. I think I can finally make their dreams come true because of this.

[1] https://github.com/Wulf/create-rust-app

Re:Vite – Next Generation Front End Tooling on Sunday July 03, 2022 @11:28AM (#31968434)
I switched from CRA to Vite for create-rust-app[1]. If you ever needed to bundle JS/TS in an SSR framework (language agnostic), vite is a great choice :)

[1] https://github.com/Wulf/create-rust-app

Re:Why Rust is a great choice for startups on Tuesday June 14, 2022 @07:18AM (#31737363)
I’ve been working on an OS project to help people get on this bandwagon: create-rust-app [1]. The folks over at shuttle.rs also wrote a blogpost around a similar topic which was a very interesting read as a rust developer. [2]

[1] https://github.com/Wulf/create-rust-app

[2] https://www.shuttle.rs/blog/2021/10/08/building-a-startup-wi...

Re:Show HN: Integrated ViteJS SSR in Rust on Monday May 16, 2022 @05:22AM (#31394968)
Hi HN community,

One of the first requests I got for ‘create-rust-app’ was from a friend of mine regarding ViteJS. At the time, I didn’t know how awesome and fast ViteJS was as opposed to webpack and the name sounded like a JavaScript library so I didn’t really see the point. Upon a second review of the project, I realized the best thing I could do for the rust web dev community was to create an example of how to integrate ViteJS-based SSR in rust. And voilà, here it is. The docs also link to an “awesome list” which references create-rust-app [1].

This integration paves the way for things like adding multiple front end framework choices for the project and potentially doing SSG in rust.

[1] https://github.com/vitejs/awesome-vite#integrations-with-bac...

Haha love the name. Sad to see it’s not an actual framework. For those looking for something more akin to a framework, try create-rust-app [1]. I plan to add a templating plugin soon!

[1] https://github.com/Wulf/create-rust-app

Re:How to speed up the Rust compiler in April 2022 on Wednesday April 13, 2022 @11:32AM (#31015892)
Tytytyty!!

I know this is not realistic, but the only thing rust is missing is faster compilation times. To be fair, it’s already super fast.

I was adding a repl[1] to create-react-app[2] (trying to achieve something like RoR’s console) and it took way too long for it to boot simply because the dependencies for something like a full scale web app take long to compile. Even with incremental compilation, that first boot time was too much.

[1] https://github.com/google/evcxr/blob/main/evcxr_repl

[2] https://github.com/Wulf/create-rust-app

Re:React v18.0 on Tuesday March 29, 2022 @09:16PM (#30850467)
You’ve mentioned two of my favourite technologies :)

In case you want to try rust and react together:

https://github.com/Wulf/create-rust-app

Re:Ask HN: What you up to? (Who doesn't want to be hired?) on Monday November 01, 2021 @09:13PM (#29075621)
Over the past few months, I've been trying to contribute to the rust ecosystem to enable devs to make webapps comfortably.

The latest challenge I've been addressing is auto generating react hooks to use Rust API endpoints. I'm just about ready to publish it soon. These kinds of things are much easier to do in rust rather than other languages.

If you'd like to explore web development in rust:

https://github.com/wulf/create-rust-app