toml icon indicating copy to clipboard operation
toml copied to clipboard

Examples need improvement - missing basic example that reads from a file, not a string variable.

Open kyleproj opened this issue 1 year ago • 1 comments

It seems a bit silly to make a library about reading toml files but the examples provided "decode.rs" and "enum_external.rs" both read from a string variable embedded in the code, and not an actual example.toml file.

Please provide an example "basic.rs", this should be the capstone example that everyone goes to when trying to figure out how to use your library.

Here's what it should do:

  1. Read from an actual toml file "assets/example.toml" (rather than an embedded string)
  2. Read in each variable type, int, string, bool, array
  3. print the result of each value.

Thanks

kyleproj avatar Feb 13 '24 06:02 kyleproj