Expand description
§toml-spanner
This create is fork of toml-span adding more support for the toml 1.1.0 spec,
along the way,
§Differences from toml
First off I just want to be up front and clear about the differences/limitations of this crate versus toml
- No
serdesupport for deserialization, there is aserdefeature, but that only enables serialization of theValueandSpannedtypes. - No toml serialization. This crate is only intended to be a span preserving deserializer, there is no intention to provide serialization to toml, especially the advanced format preserving kind provided by
toml-edit. - No datetime deserialization. It would be trivial to add support for this (behind an optional feature), I just have no use for it at the moment. PRs welcome.
§License
This contribution is dual licensed under EITHER OF
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Re-exports§
Modules§
- de
- Core deserialization logic that deserializes toml content to
Value - de_
helpers - Provides helpers for deserializing
Value/ValueInnerinto Rust types - impl_
serde serde - Provides
serde::Serializesupport forValueandSpanned - span
- Provides span helpers
- tokens
- The tokenizer is publicly exposed if you wish to use it instead
- value
- Contains the
ValueandValueInnercontainers into which all toml contents can be deserialized into and either used directly or fed intocrate::Deserializeor your own constructs to deserialize into your own types
Structs§
- Deser
Error - When deserializing, it’s possible to collect multiple errors instead of earlying out at the first error
- Error
- Error that can occur when deserializing TOML.
Enums§
- Error
Kind - Errors that can occur when deserializing a type.
Traits§
- Deserialize
- This crate’s equivalent to
serde::Deserialize - Deserialize
Owned - This crate’s equivalent to
serde::DeserializeOwned