Conditional Compilation with Cargo Features

preview_player
Показать описание
Today we are learning how to conditionally compile Rust code with cargo features!

Рекомендации по теме
Комментарии
Автор

like this format more. straight away with the content.

ramtinabadi
Автор

Love these videos. Keep up the great work!

AmnesiaPhotography
Автор

Bogdan, do you have any experience with creating a private cargo repository?

TheZdannar
Автор

A follow-up question:
How would you write tests for lib features?
If you #[cfg(...)] annotate your test, will it always run, or only when you run tests with flags that enable the feature?

whited
Автор

How clear it is! I'm looking forward for a series tutorial of rust web devlopment using actix-web 4. Do you have a plan?

herschelma
Автор

I hope he makes more videos like this 👀

typescriptuser
Автор

Thanks for all the information. I enjoy your channel.
Can you do a video on how to call rust code from Java with input and return parameters?

michaelhugi
Автор

Amazing, useful video! Thank you so much 🙏❤

amirhosein_gpr
Автор

What happens if you have tests for features that are disabled by default? I guess the tests will also need to check for the feature being enabled.

lardycake