summary refs log tree commit diff
path: root/src/libstd/json.rs
AgeCommit message (Collapse)AuthorLines
2013-02-14Remove all final references to die!Nick Desaulniers-2/+2
2013-02-14Remove DVec from jsonSeo Sanghyeon-3/+3
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-20/+20
2013-02-10added issue for reference in FIXMEJohn Clements-1/+1
2013-02-09json tidyJohn Clements-4/+6
2013-02-09re-special-case Option in JSON encodingJohn Clements-9/+64
2013-02-09json add enum encoder test caseJohn Clements-1/+41
2013-02-09json bugfixJohn Clements-2/+1
2013-02-09tidyJohn Clements-6/+6
2013-02-09json bugfixesJohn Clements-10/+7
2013-02-09fix typos in sample code, add enum to json encoder, add test caseJohn Clements-2/+8
2013-02-09auto merge of #4848 : nikomatsakis/rust/issue-4821-bad-kind-computation, ↵bors-1/+1
r=catamorphism ...ear values to be copied. Rewrite kind computation so that instead of directly computing the kind it computes what kinds of values are present in the type, and then derive kinds based on that. I find this easier to think about. Fixes #4821. r? @catamorphism
2013-02-08Fix subtle error in caching during kind computation that could cause linearNiko Matsakis-1/+1
values to be copied. Rewrite kind computation so that instead of directly computing the kind it computes what kinds of values are present in the type, and then derive kinds based on that. I find this easier to think about. Fixes #4821.
2013-02-07implement BaseIter for LinearMapDaniel Micay-5/+5
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-06remove issue #3148 workarounds (no longer needed)Daniel Micay-8/+0
2013-02-03core: convert ToStr::to_str to take explicit &selfErick Tryzelaar-2/+2
2013-02-03Merge remote-tracking branch 'thestinger/old_map' into incomingBrian Anderson-12/+0
Conflicts: src/test/bench/core-map.rs
2013-02-03Converted the floating point types to the new string conversion functions.Marvin Löbel-2/+2
Also fixed all conflicting calls of the old functions in the rest of the codebase. The set of string conversion functions for each float type now consists of those items: - to_str(), converts to number in base 10 - to_str_hex(), converts to number in base 16 - to_str_radix(), converts to number in given radix - to_str_exact(), converts to number in base 10 with a exact number of trailing digits - to_str_digits(), converts to number in base 10 with a maximum number of trailing digits - implementations for to_str::ToStr and num::ToStrRadix - from_str(), parses a string as number in base 10 including decimal exponent and special values - from_str_hex(), parses a string as a number in base 16 including binary exponent and special values - from_str_radix(), parses a string as a number in a given base excluding any exponent and special values - implementations for from_str::FromStr and num::FromStrRadix
2013-02-03rm commented out std::map code from json moduleDaniel Micay-12/+0
it was replaced by LinearMap
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-21/+21
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-0/+1
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2013-01-25register snapshotsGraydon Hoare-26/+0
2013-01-23Merge pull request #4594 from thestinger/mapTim Chevalier-10/+10
more work on the map trait and TreeMap/LinearMap
2013-01-23fix testsDaniel Micay-1/+1
2013-01-23switch LinearMap to current constructor conventionDaniel Micay-8/+8
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-3/+5
2013-01-23rename hashmap find_ref/get_ref -> find/getDaniel Micay-2/+2
2013-01-23rename send_map to hashmapDaniel Micay-2/+2
This makes the module much more discoverable, and is in line with the 'treemap' naming.
2013-01-14Add cfg attrs to handle auto_encode transitionBrian Anderson-0/+26
2013-01-14Merge remote-tracking branch 'mneumann/f-serialize'Brian Anderson-3/+3
2013-01-10std: Fix pattern match on reference, address an XXXTim Chevalier-18/+16
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+5
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-5/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+5
module scope. r=tjc
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-0/+3
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-3/+11
contain at least two components. r=graydon
2012-12-27Enhance auto_encode to take number of struct fieldsMichael Neumann-3/+3
emit_struct and read_struct takes an additional len:uint parameter which tells us how many fields the struct we are working on has. This is required to implement an Encoder for the msgpack [1] serialization format. To serialize a struct with msgpack you have to use arrays and the size of the array has to be know before each of the elements are written out. JSON as an example doesn't have this problem as it uses '[' and ']' delimiters for arrays. [1]: www.msgpack.org
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-31/+29
2012-12-11libstd: Implement read_managed_str for the JSON deserialiser.Huon Wilson-2/+5
The FIXME is an underlying issue (a core::at_str library) that this doesn't address.
2012-12-07librustc: De-mode pattern bindings. r=nmatsakisPatrick Walton-5/+5
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28Register snapshotsBrian Anderson-139/+0
2012-11-21change json::Deserializer to take a json enumErick Tryzelaar-8/+2
This allows the deserializer to be used on an already parsed json object.
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+139
2012-11-03Remove stage0 stuff that was awaiting snapshotTim Chevalier-26/+0
and re-register snapshots Just removing unneeded code, no review
2012-10-18Rename str::to_unique to str::to_owned.Erick Tryzelaar-1/+1
2012-10-15libstd: make Serializer a trait-level typaramErick Tryzelaar-0/+28
2012-10-12Make moves explicit in std testsTim Chevalier-17/+17
2012-10-11Make to_str pure and fix const parameters for str-mutating functionsTim Chevalier-14/+15
Two separate changes that got intertwined (sorry): Make to_str pure. Closes #3691 In str, change functions like push_char to take an &mut str instead of an &str. Closes #3710