Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ReactorScram committed Jan 31, 2024
0 parents commit b348a5b
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
64 changes: 64 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "toml_edit_repro"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
toml_edit = "0.21.0"
20 changes: 20 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use toml_edit::{Document, value};

const INPUT: &str = "[package]\r
name = \"toml_edit_repro\"
version = \"0.1.0\"
edition = \"2021\"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
toml_edit = \"0.21.0\"
";

fn main() {
let mut doc = INPUT.parse::<Document>().expect("invalid doc");
assert_eq!(doc.to_string(), INPUT);
println!("All good");
}


0 comments on commit b348a5b

Please sign in to comment.