mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-24 20:43:07 +00:00
b61c8e588a
* Update to edition 2018 Update mdbook to 0.3.5 Command: sed -i '/extern crate/ {N;s/\n$//}' src/**.md; sed -i 's/extern crate error_chain;/use error_chain::error_chain;/; s/extern crate lazy_static;/use lazy_static::lazy_static;/; s/extern crate bitflags;/use bitflags::bitflags;/; s/extern crate serde_json;/ use serde_json::json;/; s/extern crate serde_derive;/use serde::{Serialize, Deserialize};/; /macro_use/d; /extern crate/ d; s/```rust/```rust,edition2018/; s/bail!/error_chain::&/; s/\(debug\|info\|warn\|error\)!/log::&/;' src/**.md Fix #530 * Update rand-dist.md * Fixes #569 * dump syslog version 4 depends on error-chain v 0.11 and version 5 depends on v 0.12 !!!! Co-authored-by: Andrew Gauger <andygauge@gmail.com>
26 lines
485 B
TOML
26 lines
485 B
TOML
|
|
[book]
|
|
title = "Rust Cookbook"
|
|
description = "Collection of useful Rust code examples"
|
|
authors = ["Rust Language Community"]
|
|
edition = "2018"
|
|
multilingual = false
|
|
language = "en"
|
|
src = "src"
|
|
|
|
[output.html]
|
|
mathjax-support = false
|
|
# theme = "theme"
|
|
additional-css = ["theme/custom.css"]
|
|
|
|
[output.html.playpen]
|
|
editable = false
|
|
|
|
[output.html.search]
|
|
limit-results = 20
|
|
use-boolean-and = true
|
|
boost-title = 2
|
|
boost-hierarchy = 2
|
|
boost-paragraph = 1
|
|
expand = true
|
|
heading-split-level = 2
|