liveBook · Manning

Workspace

As explained in Refactoring to Rust

A Cargo workspace is a collection of related Rust packages that share a lockfile and build output directory.

A Cargo workspace groups related Rust packages under one project. It gives the packages a shared Cargo.lock file and output directory while keeping library and application logic separate. section 10.2

Wasm search workspace

A library performs an API search and XML parsing, while a binary formats results for output. The binary targets wasm32-wasi and runs with WasmEdge.

How Refactoring to Rust covers it

How deep it goes
Demonstrates creation, membership configuration, path dependencies, target configuration, building, and execution.
Examples
Uses paper_search and paper_search_lib to fetch, parse, format, build, and run search results as Wasm.
What you can do after
Builds and runs a workspace containing a Wasm binary that calls reusable library code.
How it connects
Connects Cargo manifests, Rust libraries, binaries, path dependencies, WebAssembly, WASI, and WasmEdge.

Also explained in

Compare how 2 books explain workspace →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Refactoring to Rust. The section links point to the parts of the book it draws on.