Giter Site home page Giter Site logo

Comments (2)

epage avatar epage commented on August 23, 2024

Thats a good question that I overlooked in the docs and have since rectified it.

toml_edit::easy is meant for when want toml-rs and toml_edit but want either consistency in behavior or to keep your number of dependencies low. The design of toml-rs prevents us from this being format-preserving.

I will say the toml_edit API has gotten easier over time.

do you guys have any advice on replacing toml-rs?

Porting toml-rs code to toml_edit?

My first would be to only focus on doing that where its needed. If you have places where you only read TOML, feel free to keep that using toml-rs.

Beyond that,

  • Check your use of serde. We can't preserve formatting through that, though we could make it easier to insert chunks of new TOML data into a format-preserving Document via serde
  • If you are using the toml::Value API, the toml_edit::Document API won't be too different. The biggest issue will be that we have two table types, Table and InlineTable and two array types, Array and ArrayOfTables. TableLike and our Index / IndexMut APIs help gloss over some of these details.

from toml.

GabrielBG0 avatar GabrielBG0 commented on August 23, 2024

Thanks! This was really helpful, i really appreciate the time!

from toml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.