October 2018
Beginner
180 pages
4h 48m
English
If a library that our program depends on is published on https://crates.io/, all we have to do to link it is add its linking code to the dependencies section. Let's say we want to use serde (a tool for turning Rust data into formats such as JSON and back) in our program. First, we find its linking code with: cargo search serde.
This will print out a list of matches that looks something like this:
serde = "1.0.70" # A generic serialization/deserialization framework serde_json = "1.0.24" # A JSON serialization file format serde_derive_internals = "0.23.1" # AST representation used ...
Read now
Unlock full access