Build Your Own AI Assistant Part 1 - Creating the Assistant
116316 Views
Is the new Raspberry Pi AI Kit better than Google Coral?
111570 Views
Control Arduino with Python using Firmata / PyFirmata
86865 Views
How to Map with LiDAR - using a Raspberry Pi Zero 2W, RPLidar and Rviz
56603 Views
Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!
52712 Views
Node-Red Automation, MQTT, NodeMCU & MicroPython
51798 Views
Weather Station Display
Pi 10 Inch Mini-rack
Installing and Using DeepSeek-R1:1.5 on a Raspberry Pi with Docker
Gamepad & BurgerBot
Level Up your CAD Skills
Operation Pico
Mini-Rack 3D Design Tutorial
0h 20m
Using the Raspberry Pi Pico's Built-in Temperature Sensor
0h 24m
Getting Started with SQL
0h 32m
Introduction to the Linux Command Line on Raspberry Pi OS
0h 42m
How to install MicroPython
0h 8m
Wall Drawing Robot Tutorial
0h 22m
Learn Linux from the basics to advanced topics.
Learn how to use a Raspberry Pi Pico
Learn MicroPython the best language for MicroControllers
Learn Docker, the leading containerization platform. Docker is used to build, ship, and run applications in a consistent and reliable manner, making it a popular choice for DevOps and cloud-native development.
Learn how to build SMARS robots, starting with the 3D Printing the model, Designing SMARS and Programming SMARS
Learn how to build robots, starting with the basics, then move on to learning Python and MicroPython for microcontrollers, finally learn how to make things with Fusion 360.
Learn Python, the most popular programming language in the world. Python is used in many different areas, including Web Development, Data Science, Machine Learning, Robotics and more.
Learn how to create robots in 3D, using Fusion 360 and FreeCAD. The models can be printed out using a 3d printer and then assembled into a physical robot.
Learn how to create Databases in Python, with SQLite3 and Redis.
KevsRobots Learning Platform
100% Percent Complete
By Kevin McAleer, 2 Minutes
Cargo is not just a package manager; it’s also a Rust project’s build system. It manages building your code, downloading the libraries your code depends on, and building those libraries. This bonus lesson will guide you through creating a new Rust project with Cargo, managing dependencies, and building projects.
To start a new Rust project with Cargo, you can use the following command:
cargo new project_name
This command creates a new directory called project_name containing a Cargo.toml file (the manifest file for Rust projects) and a src directory with a main.rs file. The Cargo.toml file will include basic metadata about your project and a list of dependencies.
project_name
Cargo.toml
src
main.rs
Add dependencies to your project by listing them under [dependencies] in your Cargo.toml file. For example, to add the serde library:
[dependencies]
serde
[dependencies] serde = "1.0"
When you build your project, Cargo will automatically download and compile your dependencies and all of their dependencies.
To build your project, run the following command in your project directory:
cargo build
This command compiles your project and all of its dependencies. If the build is successful, Cargo places the executable in target/debug/project_name.
target/debug/project_name
To build and run your project in one step, you can use:
cargo run
If your project compiles successfully, Cargo will then run the resulting executable.
In this bonus lesson, you learned how to create a new Rust project using Cargo, manage your project’s dependencies, and build and run your project. Cargo is a powerful tool that simplifies many aspects of Rust development, making it easier to manage large projects and their dependencies.
< Previous