Cargo Workspaces

preview_player
Показать описание
The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.

Chapters:
0:00​ Intro
1:05 Creating a Workspace
2:58 Creating Second Package in Workspace
4:49 External Dependencies
7:05 Adding a Test to a Workspace
10:57 Extending Cargo with Custom Commands
11:28 Outro

#letsgetrusty​​ #rust​lang​ #tutorial
Рекомендации по теме
Комментарии
Автор

Workspace is a powerful tool, indeed! My mind is flying thinking at the possibilities and how I would apply it in my projects. Thanks for sharing!

adanjsuarez
Автор

Great video! One comment: at 5:05 when you say that the Cargo.lock in the workspace ensures that all your crates use the same version of the dependency, that's not strictly true. Each crate in your workspace has its own Cargo.toml file which may declare a different version of the dependency. This creates no build-time or run-time error, but you will see in the Cargo.lock file that there is one entry for each version depended on for that library. I think what you could say about the single Cargo.lock file is that it only downloads a single copy of each combination of library + version.

Joe_Skeen
Автор

the workspace feature is great, and thank you for your great explaination

MohammedAhmed-idry
Автор

Wow!! This is a best useful tutorial for Rustacean!!

albedobond
Автор

This has been incredibly useful! Going to re-work my existing rust project to use workspaces

jobrown
Автор

GREAT content as always. In particular, I was having trouble actually calling the package in my main file after splitting it into a workspace. IDK if it was necessary to cover cargo install in this video but it didn't hinder my experience

dabzilla
Автор

Wow, its like yarn workspaces if we compare it to the web development world. Awesome

krtirtho
Автор

Very useful! Is workspaces a good solution if I want to publish one package of my project as open source, and keep the rest closed? I guess I would have to use git submodules to link in the open source libs to my closed source workspace. Or maybe there's a better solution for that?

Erfa
Автор

Hey Bogdan, what extension you use in order to be displayed automatically the variable type

nadejdapandelieva
Автор

Hey, pls do a cli app in which the computer, switches on the caps lock, num lock and etc....

dibyojyotibhattacharjee