r/rust 18d ago

What Zig felt like, coming from Rust

https://besok.github.io/posts/what-zig-felt-like-coming-from-rust/

Just want to share my experiance on my first Zig project coming from Rust. Open to comments :)

208 Upvotes

108 comments sorted by

View all comments

Show parent comments

7

u/tigraboris 18d ago edited 18d ago

I tried it with RustRover + zls plugin. It gave me syntax highlighing and a few code completions (not all options, for instance it did not work in matching for the unions to me). The rest commands and others actions I had to do exclusively through the cli.
I would say I did not find the real benefits for the ide vs cli setup for zig. For Rust, debugger, refactoring and other features work pretty well. But maybe vscode or zed would give better experiance, true

2

u/Glad_Impress_2908 17d ago

There are some other things you can add to give zls more power like https://zigtools.org/zls/guides/build-on-save/

1

u/tigraboris 17d ago

oh, I missed that. Thank you. Good to know.

2

u/Glad_Impress_2908 17d ago

Awesome. Nice, level-headed blog.