about summary refs log tree commit diff
path: root/src/libstd/serialize.rs
AgeCommit message (Collapse)AuthorLines
2013-05-04Register snapshotsBrian Anderson-978/+0
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-56/+1089
mutable fields in the process
2013-04-27only use #[no_core] in libcoreDaniel Micay-1/+0
2013-04-13initial iterator object libraryDaniel Micay-0/+15
2013-04-10syntax: add {read,emit}_enum_struct_variant{,_field}Erick Tryzelaar-3/+11
2013-04-10std: add serialize {read,emit}_tuple{,_arg,_struct,_struct_arg}Erick Tryzelaar-0/+12
2013-04-10std: rename {read,emit}_field to {read,emit}_struct_fieldErick Tryzelaar-3/+13
2013-04-10std: clean up the order of {De,En}codable methodsErick Tryzelaar-7/+6
2013-04-10Revert map.each to something which takes two parametersNiko Matsakis-3/+3
rather than a tuple. The current setup iterates over `BaseIter<(&'self K, &'self V)>` where 'self is a lifetime declared *in the each method*. You can't place such a type in the impl declaration. The compiler currently allows it, but this will not be legal under #5656 and I'm pretty sure it's not sound now.
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-9/+9
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-30move dlist from core -> stdDaniel Micay-1/+1
Closes #3549
2013-03-29std: Add Deque::eachi and a Deque serializer supportErick Tryzelaar-0/+26
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-4/+4
2013-03-29std: add serialization support for dlist, linearset, triemap, trieset, ↵Erick Tryzelaar-1/+183
treemap, and treeset
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-22/+0
2013-03-29Register snapshotsBrian Anderson-6/+0
2013-03-29std: add Encoder::emit_map and Decoder::read_mapErick Tryzelaar-2/+61
2013-03-29std: remove Encoder::read_rec and Decoder::emit_recErick Tryzelaar-2/+0
2013-03-29std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt}Erick Tryzelaar-6/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_vec and ↵Erick Tryzelaar-57/+58
Decoder::read_{owned,managed}_vec
2013-03-29std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed}Erick Tryzelaar-11/+5
2013-03-29std: remove Encoder::emit_{owned,managed}_str and ↵Erick Tryzelaar-15/+7
Decoder::read_{owned,managed}_str
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-2/+8
This allows read_option to be used with a custom option type instead of just core::Option.
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-2/+8
This allows read_option to be used with a custom option type instead of just core::Option.
2013-03-27std: Decode::read_enum_variant should pass in the variant namesErick Tryzelaar-0/+8
Because the json::Decoder uses the string variant name, we need a way to correlate the string to the enum index. This passes in a static &[&str] to read_enum_variant, which allows the json::Decoder to know which branch it's trying to process.
2013-03-27std: add option type directly to serialize::{En,De}codeErick Tryzelaar-17/+12
2013-03-27std: serializing Options should use the right caseErick Tryzelaar-4/+4
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-3/+3
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-27/+27
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-3/+3
notation. rs=delifetiming
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-32/+32
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-3/+3
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-59/+57
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-53/+53
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-65/+59
slipped through. r=tjc
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
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-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-30librustc: Change `self` as a type to `Self` everywhere. r=brsonPatrick Walton-1/+1
2013-01-25register snapshotsGraydon Hoare-10/+0
2013-01-24syntax/rustc: Less copyTim Chevalier-2/+2
2013-01-14Add cfg attrs to handle auto_encode transitionBrian Anderson-0/+10
2013-01-14Merge remote-tracking branch 'mneumann/f-serialize'Brian Anderson-2/+2
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-1/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+3
contain at least two components. r=graydon
2012-12-27Enhance auto_encode to take number of struct fieldsMichael Neumann-2/+2
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