aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2017-11-12A toml macroDavid Tolnay-0/+3
2017-07-22fix docs and addGarrett Berg-1/+1
2017-06-23updated toml version in the docs 0.4.2debris-1/+1
2017-05-02Update doc urls to 0.4Alex Crichton-2/+2
Closes #168
2017-04-24Fixed the serde dependency in the documentationDzmitry Malyshau-1/+1
2017-04-05group mod statements consistentlyColin Kiegel-1/+1
2017-04-05doc - group link definitionsColin Kiegel-2/+1
2017-02-09Remove newline that causes strange renderingJake Goulding-1/+0
2017-02-09Tighten up the crate-level docsJake Goulding-11/+12
2017-02-08Rewrite crate with serde support from ground upAlex Crichton-489/+151
This commit completely rewrites this crate from the ground up, supporting serde at the lowest levels as I believe serde support was intended to do. This is a major change from the previous versions of this crate, with a summary of changes being: * Serialization directly to TOML is now supported without going through a `Value` first. * Deserialization directly from TOML is now supported without going through a `Value`. Note that due to the TOML format some values still are buffered in intermediate memory, but overall this should be at a minimum now. * The API of `Value` was overhauled to match the API of `serde_json::Value`. The changes here were to: * Add `is_*` accessors * Add `get` and `get_mut` for one-field lookups. * Implement panicking lookups through `Index` The old `index` methods are now gone in favor of `get` and `Index` implementations. * A `Datetime` type has been added to represent a TOML datetime in a first-class fashion. Currently this type provides no accessors other than a `Display` implementation, but the idea is that this will grow support over time for decomposing the date. * Support for the `rustc-serialize` crate has been dropped, that'll stay on the 0.2 and 0.1 release trains. * This crate no longer supports the detection of unused fields, for that though you can use the `serde_ignored` crate on crates.io
2017-01-09Clarify that serde is supportedAlex Crichton-0/+9
Closes #122
2016-12-30Escape control characters when encoding stringsAlex Crichton-0/+6
Closes #126
2016-07-29Touch up the encoder/decoder a bitAlex Crichton-1/+1
* Whitespace things * Don't make `State` public * Remove `#[cfg]` annotations
2016-06-03Clippy runleonardo.yvens-5/+5
2016-04-17Require a newline after table definitionJames Sanderson-1/+1
2016-03-28Add a bunch of negative and positive testsBourgond Aries-0/+28
2016-03-27Fix the indentation to be consistent with the repositoryBourgond Aries-3/+3
2016-03-27Add advanced lookup for table namesBourgond Aries-0/+7
2016-03-27Add a test for lookup_mut_advancedBourgond Aries-0/+9
2016-03-27Implement advanced key lookup for lookup_mutBourgond Aries-37/+6
2016-03-27Implement a more advanced algorithm for lookupBourgond Aries-2/+50
The new algorithm allows the explicit usage of "" and '' to denote key names. This is useful for accessing tables or keys that are named in a non-conventional manner.
2016-03-25Add a test to see if the table's contents have changedBourgond Aries-0/+22
2016-03-25Implement the non-recursive lookup_mutBourgond Aries-31/+95
Also include some tests simply by copying and modifying the other tests for lookup.
2016-03-24Add lookup_mut method for mutable accessBourgond Aries-0/+62
Mutable access may sometimes be desired in order to change values in the toml table. This can be used for dynamic configurations which will be easy to modify and store. lookup_mut requires a recursive method due to the borrow checker not allowing to have more than one mutable reference in the same scope.
2016-01-21Address issues found by rust-clippyCorey Farwell-7/+7
2015-09-25Implement Value::lookup for empty path to return selfKerhong-0/+20
2015-08-12Merge remote-tracking branch 'remotes/origin/master' into serdeErick Tryzelaar-2/+1
2015-08-11Don't need to qualify StringAlex Crichton-2/+1
2015-06-06Rework fix for table redefinition to avoid breaking AST-compatiblityAndrzej Janik-18/+2
2015-06-04Disallow table redefinitionsAndrzej Janik-2/+18
2015-04-02wipAlex Crichton-0/+1
2015-04-02Modularize rustc-serialize supportAlex Crichton-60/+10
* Add rustc-serialize as a default feature * Make room for for serde support
2015-04-01Bump to 0.1.20Alex Crichton-1/+0
2015-03-25Bump to 0.1.19Alex Crichton-1/+1
2015-03-20Implement Encodable for ValueAlex Crichton-2/+51
We can't generically decode into one, but we can generically encode one! Closes #58
2015-03-15Improve test coverageAlex Crichton-2/+2
2015-03-09Reduce usage of unstable featuresAlex Crichton-3/+5
2015-03-03Don't upload extra docs on travisAlex Crichton-0/+1
2015-03-03Add a doc root urlSteven Fackler-1/+1
2015-02-03Bump to 0.1.16Alex Crichton-3/+5
2015-02-02Move show.rs to display.rsAlex Crichton-1/+1
2015-02-02Fix a deprecation warningAlex Crichton-2/+2
2015-01-29Add some feature gatesAlex Crichton-1/+1
2015-01-27Migrate to as many stable functions as possibleAlex Crichton-4/+4
2015-01-15Move tests to integration testsAlex Crichton-1/+1
2015-01-09Bump to 0.1.11Alex Crichton-4/+3
2015-01-08Update to masterValerii Hiora-4/+5
- features - macro reform - String/Show split in formatter - staging
2015-01-06Remove old_orphan_checkAlex Crichton-1/+0
2015-01-06Fallout of serialize traits changesValerii Hiora-0/+1
2015-01-03Update to masterValerii Hiora-1/+2
- updated `rustc-serialize` dependency, in other case `toml-rs` prohibits `rustc-serialize` update on other crates - updated after syntax and lib changes