toml
toml copied to clipboard
Rust TOML Parser
Consider the following code: ```rust use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] struct Foo { bar: Baz, } #[derive(Deserialize, Serialize)] enum Baz { Test(Test) } #[derive(Deserialize, Serialize)] struct Test { name: String,...
`toml_edit` is pretty slow to compile, one of the slowest dependencies of `cargo`. My suspicion is the number of macros for `combine` is the core problem (due to the extra...
Basically the same error as seen as https://github.com/alexcrichton/toml-rs/issues/428 Reproduction code: ```rust fn main() { let brackets = "[".repeat(20000); let input_string = format!("x={}", &brackets); input_string.parse::().unwrap(); } ```
This is probably carried over from toml-rs, but reproducing anyway. ```rust use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] pub struct Module1 { x: u8, y: u8 } #[derive(Debug, Deserialize, Serialize)] pub...
See [toml::Spanned](https://docs.rs/toml/latest/toml/struct.Spanned.html) for inspiration
> serde_cbor is unmaintained | Details | | | ------------------- | ---------------------------------------------- | | Status | unmaintained | | Package | `serde_cbor` | | Version | `0.11.2` | | URL...
> Potential segfault in the time crate | Details | | | ------------------- | ---------------------------------------------- | | Package | `time` | | Version | `0.1.44` | | URL | [https://github.com/time-rs/time/issues/293](https://github.com/time-rs/time/issues/293)...
> Potential segfault in `localtime_r` invocations | Details | | | ------------------- | ---------------------------------------------- | | Package | `chrono` | | Version | `0.4.19` | | URL | [https://github.com/chronotope/chrono/issues/499](https://github.com/chronotope/chrono/issues/499) |...
It's currently pretty painful to remove items matching a given condition from an array or table with `toml_edit` due to the lack of a `retain`-like method. You need one "pass"...