Skip to content

Commit d193775

Browse files
committed
Add some more 0.5 Config API changes
I forgot these in rust-lang#2942
1 parent 8e4bc4a commit d193775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ The following is a summary of the changes that may require your attention when u
115115
- [`mdbook-core`](https://docs.rs/mdbook-core/latest/mdbook_core/) — An internal library that is used by the other crates for shared types. You should not depend on this crate directly since types from this crate are re-exported from the other crates as appropriate.
116116
- Changes to `Config`:
117117
- [`Config::get`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.get) is now generic over the return value, using `serde` to deserialize the value. It also returns a `Result` to handle deserialization errors. [#2773](https://github.com/rust-lang/mdBook/pull/2773)
118+
- [`Config::set`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.set) now validates that the config keys and values are valid.
119+
[#2942](https://github.com/rust-lang/mdBook/pull/2942)
120+
- [`Config::update_from_env`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.update_from_env) now returns a `Result` to indicate any errors.
121+
[#2942](https://github.com/rust-lang/mdBook/pull/2942)
118122
- Removed `Config::get_deserialized`. Use `Config::get` instead.
119123
- Removed `Config::get_deserialized_opt`. Use `Config::get` instead.
120124
- Removed `Config::get_mut`. Use `Config::set` instead.

0 commit comments

Comments
 (0)