1# Serializing and Deserializing Modules
2
3You can also browse this source code online and clone the wasmtime
4repository to run the example locally:
5
6* [Rust](https://github.com/bytecodealliance/wasmtime/blob/main/examples/serialize.rs)
7* [C](https://github.com/bytecodealliance/wasmtime/blob/main/examples/serialize.c)
8* [C++](https://github.com/bytecodealliance/wasmtime/blob/main/examples/serialize.cc)
9
10This example shows how to compile a module once and serialize its compiled representation to disk and later deserialize it to skip compilation on the critical path. See also the [pre-compilation example](examples-pre-compiling-wasm.md) for ahead-of-time compilation.
11
12## Host Source
13
14<!-- langtabs-start -->
15
16```rust
17{{#include ../examples/serialize.rs}}
18```
19
20```c
21{{#include ../examples/serialize.c}}
22```
23
24```cpp
25{{#include ../examples/serialize.cc}}
26```
27
28<!-- langtabs-end -->
29