Writing a Library with Rust

preview_player
Показать описание
Watch to see how you can: write your own Rust library and how to leverage workspaces for additional efficiency and performance. -- Libraries are essential for software development as it allows developers to share their code in a standardized way that, sometimes, automates setting up the code’s dependencies. In this video, Herbert will walk us through creating an empty Rust library with a cargo command. While presenting, Herbert will give a brief introduction to workspaces and the benefits of using a workspace in Rust.

This video is cut from a December 2022 webinar titled “Rust Foundations” with Herbert Wolverson.

To access the full webinar sign up here :

Things you will learn :
- Cargo command to init Rust library.
- Cargo command to view dependencies.
- Benefits of using workspaces in Rust.

What’s your favorite way to share your code with other developers/engineers?
Comment below or tweet us on twitter & let us know, we want to hear from you! ~ If you found this video helpful, hit that like button & subscribe for more content like this.

----

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

I believe the command should be "cargo init --lib greeter" and not "cargo init -lib greater" (In the very fist slide)

PS: I am new to rust, I am not sure if the latter command also works but it did give me an error.

japnitsingh