- Rust Quick Start Guide
- Daniel Arbuckle
- 175字
- 2021-06-10 19:46:01
Dynamic libraries, software distribution, and Rust
For the most part, Rust avoids using dynamic libraries. Instead, all of the dependencies of a Rust program are linked directly into the executable, and only select operating system libraries are dynamically linked. This makes Rust programs a little larger than you might expect, but a few megabytes are of no concern in the era of gigabytes. In exchange, Rust programs are very portable and immune to dynamically linked library version issues.
That means that, if a Rust program works at all, it's going to work on pretty much any computer running roughly the same operating system and architecture it was compiled for, with no hassles. You can take your release version of a Rust program, zip it up, and email it to someone else with confidence that they will have no problem running it.
This doesn't entirely eliminate external dependencies. If your program is a client, the server it connects to needs to be available, for example. However, it does greatly simplify the whole packaging and distribution process.
- Effective C#:改善C#代碼的50個(gè)有效方法(原書(shū)第3版)
- Python高級(jí)編程
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語(yǔ)言實(shí)現(xiàn)+微課視頻)
- 數(shù)據(jù)結(jié)構(gòu)(Python語(yǔ)言描述)(第2版)
- Practical Windows Forensics
- Mastering C# Concurrency
- Learning Apache Kafka(Second Edition)
- Modular Programming in Java 9
- Android應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)
- Everyday Data Structures
- Spring 5 Design Patterns
- Simulation for Data Science with R
- 程序員的成長(zhǎng)課
- Hadoop Blueprints
- HTML 5與CSS 3權(quán)威指南(第4版·上冊(cè))