about summary refs log tree commit diff
path: root/src/libstd/json.rs
AgeCommit message (Collapse)AuthorLines
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
2012-10-07Remove the old serializers (needs snapshot)Erick Tryzelaar-5/+5
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-2/+2
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-10-03Remove uses of + mode from libstdTim Chevalier-2/+2
More or less the same as my analogous commit for libcore. Had to remove the forbid(deprecated_modes) pragma from some files -- will restore it after the snapshot.
2012-10-01Add deserializable and more types to serialization2Erick Tryzelaar-62/+114
2012-10-01libstd: remove unused imports from jsonErick Tryzelaar-3/+0
2012-10-01Demode ebml, ebml2, json, parTim Chevalier-4/+4
2012-09-28demode vecNiko Matsakis-1/+1
2012-09-28Long linesBrian Anderson-1/+1
2012-09-28std: Eliminate deprecated patternsBrian Anderson-12/+11
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-12/+17
2012-09-26libstd: port json over to serialization2Erick Tryzelaar-462/+754
2012-09-26Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.Eric Holk-1/+1
2012-09-25Fix long linesTim Chevalier-1/+2
2012-09-25Demode core::resultBrian Anderson-7/+7
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-27/+0
2012-09-21libcore: De-mode strPatrick Walton-11/+11
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+27
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-3/+3
2012-09-19Remove redundant hashmap constructor functions.Graydon Hoare-3/+3
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-3/+3
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-3/+3
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-3/+3
2012-09-18Replace uses of 'unchecked' with 'unsafe'Brian Anderson-1/+1
2012-09-13CamelCase and demode json.rs and deque.rsKevin Cantu-3/+6
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-2/+2
also, change DVec() to work with imm vectors rather than mut ones
2012-09-10Make remaining moves explicit in libstdTim Chevalier-3/+3
2012-09-10Convert std::map to camel caseBrian Anderson-4/+4
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-1/+78
Only called for string patterns.
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-1/+1
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-3/+3
2012-09-04libstd: "import" -> "use"Patrick Walton-8/+5