---
title: "Rust \"did you know\": Cargo dependency renames"
url: https://daily.dev/posts/rust-did-you-know-cargo-dependency-renames-1wejgszcc
source_url: https://www.youtube.com/watch?v=AtwxA6POFyw
type: video:youtube
source: "Jon Gjengset"
published: 2026-05-31T07:48:39.763Z
updated: 2026-05-31T09:19:13.999Z
tags: ["rust"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rust "did you know": Cargo dependency renames

**[Jon Gjengset](https://daily.dev/sources/jonhoo)** · 1 min read · 0 upvotes · 0 comments

## Summary

A quick tip about Cargo.toml dependency renaming in Rust: you can assign a custom name to a dependency by placing your desired name on the left-hand side of the dependency declaration and specifying the real crate name in the `package` field. This technique also allows you to include multiple major versions of the same crate simultaneously in your project.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=AtwxA6POFyw>

---

Tags: [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/rust-did-you-know-cargo-dependency-renames-1wejgszcc)
