Skip to content
0:00 / 0:00

#rust#abi#dynamiclinking

why rust libraries may never exist.

Low Level

1.2M subscribers • 13 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Linked in the descriptionrust-lang/rust

Intermediate. Assumes working knowledge.

403K views2 years ago2 recommendations

Programming languagesSystems programmingRustCompilers and interpreters

Low Level explains why Rust lacks a stable ABI, how it affects dynamic linking, and the challenges of creating pre-compiled Rust libraries.

Rust libraries may never exist. Sure, I know what you're thinking: sure they do. In cargo. Well... it's not what you think. In this video we talk about why Rust libraries may never actually exist, and what we can do about it. crabi PR: github.com/rust-lang/rust/pull/105586 🏫 COURSES 🏫 Learn to code in C at lowlevel.academy 📰 NEWSLETTER 📰 Sign up for our newsletter at mailchi.mp/lowlevel/the-low-down 🙌 SUPPORT THE CHANNEL 🙌 Become a Low Level Associate and support the channel at youtube.com/c/LowLevelLearning/join 🛒 GREAT BOOKS FOR THE LOWEST LEVEL🛒 C Programming Language, 2nd Edition: amzn.to/3OKh3q2 C++ Crash Course: A Fast-Paced Introduction: amzn.to/3qdZILK The Rust Programming Language, 2nd Edition: amzn.to/3MHaS36 🔥🔥🔥 SOCIALS 🔥🔥🔥 Low Level Merch!: linktr.ee/lowlevellearning Follow me on Twitter: twitter.com/LowLevelTweets Follow me on Twitch: twitch.tv/lowlevellearning Join me on Discord!: discord.gg/gZhRXDdBYY

Why it's here

2 people recommend this

What people say. Recommended for explaining why Rust compiles every crate from source and the difficulties of dynamic linking in Rust.

u/CoffeeVectorin r/rust • Recommends

On “Why does Rust compile every crate that I include in my project? Why are there no crates as dynamic libraries?”

Low Level Learning has a YouTube video covering this topic.

u/yawninglionroarsin r/rust • Recommends

On “I love rust but...”

Newbie to rust here. But I think this video will cast some light in your question. link to this video

u/CodyTheLearnerin r/embedded • Mentions

On “What do we all think of Rust Programming as an elective”

What are your thoughts on this? link to this video

u/AnnyAskersin r/rust • Mentions

On “Build time is a collective responsibility”

IIRC you can dynamically link in rust w/o using FFI... am I wrong? I think that's he said

u/CodyTheLearnerin r/embedded • Mentions

On “What do we all think of Rust Programming as an elective”

I love crates, but libraries area lil different from what I understand. link to this video This is more context and nuance than I can bring into the conversation.