[rust-dev] Configuration files library for Rust

Gaetan gaetan at xeberon.net
Sat Jan 4 12:26:23 PST 2014


I m interessed on having your feedback on json and yaml vs toml for
instance.
Le 4 janv. 2014 19:28, "Paul Nathan" <pnathan at vandals.uidaho.edu> a écrit :

> On 1/4/14 10:00 AM, Michael Neumann wrote:
> >
> > Am 04.01.2014 18:38, schrieb Corey Richardson:
> >> oslo.config looks decent. On some projects I've worked on, we started
> >> out using INI files but found them severely lacking once we wanted to
> >> extend the options. We ended up using libconfig[0], which I think is
> >> an excellent library. In multibuilder[1], we use extra::serialize to
> >> load a config directly into the struct we'll be using. It's super
> >> convenient, but a bit unfortunate in that it's impossible to make a
> >> field truly optional (Option<T> requires the field to be null, iirc).
> >>
> >> [0] http://www.hyperrealm.com/libconfig/
> >> [1] https://github.com/huonw/multibuilder/blob/master/main.rs#L68
> >
> > There is also TOML [1], an extended version of the INI config file
> format,
> > which is used by a variety of languages.
> >
> > [1]: https://github.com/mojombo/toml
> >
> > Regards,
> >
> >   Michael
> >
> > _______________________________________________
> > Rust-dev mailing list
> > Rust-dev at mozilla.org
> > https://mail.mozilla.org/listinfo/rust-dev
> > .
> >
>
> I've used YAML, JSON, and INI extensively for configuration, and I
> confess that each have their problems.
>
> I agree that TOML is an excellent idea (I wrote the Common Lisp TOML
> parser).  I just don't know off-hand how widely its been picked up in
> the past year.
>
> --
> Regards,
> Paul
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140104/8d25215d/attachment.html>


More information about the Rust-dev mailing list