Aren't you tired (ಸುಸ್ತಾಗಿದ್ದೀರಾ?) of writing Rust programs in just English? Feel like you've had enough of the usual syntax and want something with a little more... local south-indian flavor (ನಮ್ಮೂರ ಸೊಗಡು)? Want to try something different, perhaps in a language that's both exotic and feels like home (ನಮ್ಮ ಭಾಷೆಯಲ್ಲಿ!)?
Then Tukku (ತುಕ್ಕು), which is the Kannada word for Rust (ತುಕ್ಕು), is here to save your day! It lets you write Rust programs using ಕನ್ನಡ – that means using ಕನ್ನಡ keywords, and perhaps adopting some Kannada-style function names or idioms (ಕನ್ನಡದ ವಿಶಿಷ್ಟ ಶೈಲಿ!).
Don't worry! ತುಕ್ಕು, the Kannada Rust, is fully compatible with standard English-Rust. So you can easily mix and match (ಬೆರೆಸಿ ಬಳಸಬಹುದು) both in your projects, using the power of Rust with the beauty of Kannada.
Here are some of the Kannada keywords you can use in your Rust code:
ಸಾರ್ವಜನಿಕ→pub(public)ಕಾರ್ಯ→fn(function)ಮಾಡು→let(let)ಯದಿ→if(if)ಅಥವಾ→else(else)ರಚನೆ→struct(struct)ವರ್ಗ→enum(enum)ಬದಲು→mut(mutable)ಮುದ್ರಿಸು→println!(print)ಯಾವಾಗ→while(while)ಮುಖ್ಯ→main(main)
kannada! {
ಸಾರ್ವಜನಿಕ ಕಾರ್ಯ ಮುಖ್ಯ() {
ಮಾಡು ಬದಲು x = 5;
ಯಾವಾಗ x > 0 {
ಮುದ್ರಿಸು!("ಧನಾತ್ಮಕ");
x = x - 1;
}
}
}See the examples to get a rough sense of the whole syntax. ಅಷ್ಟೇ, that's it.
If you want to show some simple examples run
cargo run --example main
First of all ಧನ್ಯವಾದಗಳು, for considering participating in this... ಸಂತೋಷಕರ project!
Feel free to throw in a few Kannada ಗುರುತುಗಳು or sprinkle some Kannada ಸೊಗಡು here and there in the code. Once you have something, open a pull-request against the ಮುಖ್ಯ branch (that's the main branch).
Please don't introduce swear words, though. ನಮ್ಮ 'ತುಕ್ಕು' ಕೋಡಿನಲ್ಲಿ ಅಂತಹ ಶಬ್ದಗಳು ಒಂಥರಾ ವಿಚಿತ್ರವಾಗಿ ಕೇಳಿಸುತ್ತವೆ! (Such words sound somewhat weird in our 'Tukku' code!)
- ಸುಮ್ನೆ timepass
- playing with raw proc macros
Here are some other language flavors of Rust you can enjoy!
- Dutch: roest
- German: rost
- Polish: rdza
- Italian: ruggine
- Russian: Ржавый
- Esperanto: rustteksto
- Toki Pona: jaki kiwen
- Hindi: zung
- Hungarian: rozsda
- Chinese: xiu (锈)
- Spanish: rustico
- Korean: Nok (녹)
- Finnish: ruoste
- Arabic: sada
- Turkish: pas
- Vietnamese: gỉ
- Japanese: sabi (錆)
- Danish: rust?
- Marathi: gan̄ja
- Romanian: rugină
- Czech: rez
- Ukrainian: irzha
- Bulgarian: ryzhda
- Slovak: hrdza
- Catalan: rovell
- Corsican: rughjina
- Indonesian: karat
- Lithuanian: rūdys
- Greek: skouriasmeno
- Thai: sanim (สนิม)
- Swiss: roeschti
- Swedish: rost
- Croatian: hrđa
- Persian: zangar (زنگار)
- Malagasy: arafesina
- Latin: ferrugo
- Norwegian: korrosjon
- Estonian: rooste
- All of the above: unirust
The image (rust_pic.jpeg) included in this repository was generated by a diffusion model (Google Gemini) and is provided for representation purposes only. Use of this image in other projects, especially for commercial purposes, is not permitted.
The rest of the code in this repository is open source and may be used in accordance with the WTFPL license. This restriction applies only to the AI-generated image.