Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!
14
pinned by moderators
Posted by
clippy · twir · rust · mutagen · flamer · overflower · bytecount
4 days ago
14
60 comments
99
Posted by
rust · twir · bool_ext
1 day ago
99
2 comments
262
Posted by17 hours ago

Dear Rust community, I'm happy to announce the release of Nickel 1.0, a configuration language developed in Rust. It's somehow a generic but domain specific language, if that makes sense, in that Nickel is specialized in generating configuration (e.g. evaluating to YAML or JSON, typically), but is more expressive than pure serialization formats to make the configuration reusable, maintainable and more correct (opt-in static typing and runtime contracts in particular). It cat target any kind of configuration, but the typical use-case would be fairly large and complex one, like infrastructure-as-code deployments or build systems.

Beside being a Rust codebase, I thought it could be interesting to the community because it's particularly easy to use as a native configuration language for a Rust app, thanks to serde. See for example the tests of the deserializer module, which deserialize Rust structs and enums directly from a Nickel source : https://github.com/tweag/nickel/blob/dc6804acd123257460eef60d615da2eb0a8aca78/src/deserialize.rs#L584

Happy to receive any constructive feedbacks and opinions.

262
53 comments
14
Posted by3 hours ago
14
2 comments
Vote
Posted by1 hour ago
https://www.reddit.com/link/144xw5z/video/et42wry9xx4b1/player

Hey everyone, I wanted to share my latest project with you. I've created a Tetris game using Rust and the Cursive TUI library. It has all the basic features of Tetris, but I've also added some advanced features that reduce the number of keys you need to press.

One of the most useful features is the leftmost and rightmost block movement. This means you can move a block all the way to the left or right of the screen with just one key press. I've also included a counter-clockwise rotation feature, which makes it easier to get your blocks into the right position.

If you're interested in checking it out, you can find the source code on my GitHub repo. Thanks for taking the time to read this, and I hope you enjoy playing my Tetris game!
https://github.com/genieCS/retris

demo: https://youtu.be/S2iB4frfaLo

Vote
0 comments

About Community

A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity.
Created Dec 2, 2010
r/rust topics

237k

Rustaceans

1.1k

Online

Top 1%

Ranked by Size

Related Communities

r/golang

207,079 members

r/cpp_questions

64,004 members

r/typescript

106,195 members

r/Python

1,133,590 members

r/cs50

88,074 members

r/node

232,344 members

r/swift

102,571 members

r/C_Programming

139,682 members

r/learnjavascript

226,131 members

Widget image

r/rust Rules

1.
Observe our code of conduct
2.
Submissions must be on-topic
3.
Constructive criticism only
4.
Keep things in perspective
5.
No endless re-litigation
6.
No low-effort content

Moderators

Moderator list hidden. Learn More