A
A
Anton20012022-01-23 01:19:53
Rust
Anton2001, 2022-01-23 01:19:53

How to use winapi in Rust?

Hello, I have experience writing a simple backend in php and about 2 years of development experience in c#
I didn’t write anything complicated, I didn’t have to. c# my first jap

I decided that I need to master at least 1 native language at least at a minimum level, the choice fell on Rust
Now still in the process of mastering and fixing https://doc.rust-lang.ru/book/
I know that people who write in C and C++ often use winapi
So it became interesting to read about winapi, but in Google I found examples only with C and C++
. Are there examples in Rust somewhere?
Probably a stupid question, sorry. I'm just learning.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Lesnikov, 2022-01-23
@Anton2001

on docs.microsoft.com there is a chapter "Rust for Windows and the windows crate" and there are all sorts of links to a couple more official materials and examples

D
Dmitry Belyaev, 2022-01-23
@bingo347

https://crates.io/crates/winapi

A
Adamos, 2022-01-23
@Adamos

I know that people who write in C and C++ often use winapi

Actually, it's completely optional. Cross-platform libraries have been written in C++ for a hundred years, saving the programmer from digging into this coprolite.
So it's not worth diving deep into it, just to "learn". Learn bad...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question