- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 167字
- 2021-07-02 14:11:47
Linking and interoperability
Rust compiles to native code like many other languages, which is great because it expands the available libraries and lets you choose the best technology to solve a problem. "Playing nice with others" has always been a major design goal of Rust.
Interoperability on that level is as simple as declaring the function that you want to import and dynamically linking a library that exports this function. This process is largely automated: the only thing required is to create and declare a build script that compiles the dependency and then tells the linker where the output is located. Depending on what type of library you built, the linker does what is necessary to include it into the Rust program: static or dynamic linking (the default).
If there is only one native library that is to be linked dynamically, the manifest file offers a links property to specify that. Programmatically, it's very easy to interact with these included libraries by using the Foreign Function Interface.
- 我們都是數據控:用大數據改變商業、生活和思維方式
- 企業數字化創新引擎:企業級PaaS平臺HZERO
- 有趣的二進制:軟件安全與逆向分析
- Voice Application Development for Android
- 數據庫開發實踐案例
- Live Longer with AI
- 數據驅動設計:A/B測試提升用戶體驗
- Oracle RAC日記
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- 聯動Oracle:設計思想、架構實現與AWR報告
- 智慧城市中的大數據分析技術
- Gideros Mobile Game Development
- 利用Python進行數據分析(原書第2版)
- Kubernetes快速進階與實戰