Leah Hanson
2ec2d99bbd
add rustdoc comments with examples for the string versions of to_base64 and from_base64
2013-04-12 09:41:07 -04:00
bors
2f8b36fc16
auto merge of #5819 : erickt/rust/incoming, r=erickt
...
Good morning,
This first patch series adds support for `#[deriving(Decodable, Encodable)]`, but does not yet remove `#[auto_encode]` and `#[auto_decode]`. I need a snapshot to remove the old code. Along the way it also extends support for tuple structs and struct enum variants.
Also, it includes a minor fix to the pretty printer. We decided a while ago to use 4 spaces to indent a match arm instead of 2. This updates the pretty printer to reflect that.
2013-04-11 06:55:01 -07:00
Niko Matsakis
03396473b8
libstd: changes to in response to #5656
2013-04-10 17:32:03 -07:00
Erick Tryzelaar
f3ab67ec5f
syntax: add {read,emit}_enum_struct_variant{,_field}
2013-04-10 16:32:09 -07:00
Erick Tryzelaar
e31f7b7c74
std: add serialize {read,emit}_tuple{,_arg,_struct,_struct_arg}
2013-04-10 16:32:09 -07:00
Erick Tryzelaar
419f6acf0e
std: rename {read,emit}_field to {read,emit}_struct_field
2013-04-10 16:08:22 -07:00
Erick Tryzelaar
97cc571358
std: clean up the order of {De,En}codable methods
2013-04-10 16:08:22 -07:00
Brian Anderson
23e44a529b
Bump version to 0.7-pre
2013-04-10 13:12:53 -07:00
Niko Matsakis
5606fc0c90
Revert map.each to something which takes two parameters
...
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-10 07:51:48 -07:00
Brian Anderson
23251b2438
Bump version to 0.7-pre
2013-04-09 10:59:32 -07:00
Alex Crichton
255193cc1a
Removing no longer needed unsafe blocks
2013-04-08 17:50:25 -04:00
Alex Crichton
3136fba5ae
Removing some mutable fields in libstd
2013-04-08 17:50:14 -04:00
gifnksm
eebf29ed37
Impl cmp/num traits for BigUint, BigInt
...
TotalEq, TotalOrd, FromStrRadix, ToStrRadix.
2013-04-07 13:28:17 +09:00
Huon Wilson
c6949b3669
libstd: make complex.rs XXX's into issues and FIXME's
2013-04-05 19:26:58 +11:00
Huon Wilson
82d54602d7
libstd: add basic complex numbers
2013-04-05 18:19:50 +11:00
Huon Wilson
7b0401d774
libstd: add basic rational numbers
2013-04-05 17:54:11 +11:00
Huon Wilson
ba63cba18d
libstd: move bigint to dedicated num directory
2013-04-05 17:36:24 +11:00
ILyoan
53232f7acf
Fix fileinput test fail
2013-04-04 11:16:26 +09:00
bors
84c296b27d
auto merge of #5701 : metajack/rust/net-url-clone, r=thestinger
2013-04-03 16:06:48 -07:00
Jack Moffitt
c4d2b7999a
Add Clone derivation for std::net::url types.
2013-04-03 11:03:41 -06:00
Daniel Micay
cc148b58ff
rename Linear{Map,Set} => Hash{Map,Set}
2013-04-03 10:30:36 -04:00
Daniel Micay
44029a5bbc
hashmap: rm linear namespace
2013-04-03 10:30:18 -04:00
Huon Wilson
fea1380a9a
libstd: make fileinput tests pass.
2013-04-03 13:38:06 +11:00
Huon Wilson
1e28d8fdb6
libstd: implement io::Reader for fileinput.
2013-04-03 11:36:05 +11:00
Huon Wilson
e4edfa046a
libstd: implement fileinput.
...
Iterate over lines in a series of files. API (mostly) adopted from
Python's fileinput module.
2013-04-03 11:36:05 +11:00
Matthijs Hofstra
f2bc28c24f
Removed all uses of Mut from workcache, replaced with @mut
2013-04-02 21:15:11 +02:00
Brian Anderson
e3327d3833
Fix warnings
2013-03-31 20:22:47 -07:00
Daniel Micay
258a36738e
move dlist from core -> std
...
Closes #3549
2013-03-30 21:06:26 -04:00
bors
6dd20c8186
auto merge of #5630 : erickt/rust/serial, r=erickt
...
@nikomatsakis and I were talking about how the serializers were a bit too complicated. None of the users of With the `emit_option` and `read_option` functions, the serializers are now moving more high level. This patch series continues that trend. I've removed support for emitting specific string and vec types, and added support for emitting mapping types.
2013-03-30 15:42:43 -07:00
Erick Tryzelaar
5b7d608bf6
std: add more json decoder tests.
2013-03-30 13:31:03 -07:00
Erick Tryzelaar
9bbf384058
std: clean up the json pretty printer tests
2013-03-30 11:08:57 -07:00
Niko Matsakis
6965fe4bce
Add AbiSet and integrate it into the AST.
...
I believe this patch incorporates all expected syntax changes from extern
function reform (#3678 ). You can now write things like:
extern "<abi>" fn foo(s: S) -> T { ... }
extern "<abi>" mod { ... }
extern "<abi>" fn(S) -> T
The ABI for foreign functions is taken from this syntax (rather than from an
annotation). We support the full ABI specification I described on the mailing
list. The correct ABI is chosen based on the target architecture.
Calls by pointer to C functions are not yet supported, and the Rust type of
crust fns is still *u8.
2013-03-29 18:36:20 -07:00
Erick Tryzelaar
909d8f0eac
std: Add Deque::eachi and a Deque serializer support
2013-03-29 18:02:44 -07:00
Erick Tryzelaar
0de7635f53
Merge remote-tracking branch 'remotes/origin/incoming' into serial
2013-03-29 17:48:44 -07:00
Erick Tryzelaar
e5c7a9e342
std: add serialization support for dlist, linearset, triemap, trieset, treemap, and treeset
2013-03-29 17:44:28 -07:00
Erick Tryzelaar
529ae38605
Merge remote-tracking branch 'remotes/origin/incoming' into serial
2013-03-29 17:41:32 -07:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Brian Anderson
518c295a03
Register snapshots
2013-03-29 11:30:42 -07:00
Erick Tryzelaar
bdef3f1930
std: fix json deserializing vectors and a test
2013-03-29 09:10:31 -07:00
Erick Tryzelaar
31563f53d9
Merge remote-tracking branch 'remotes/origin/incoming' into serial
2013-03-29 09:06:36 -07:00
Erick Tryzelaar
d1a83e6986
std: add Encoder::emit_map and Decoder::read_map
2013-03-29 09:04:35 -07:00
Erick Tryzelaar
90b3658cd6
std: remove Encoder::read_rec and Decoder::emit_rec
2013-03-29 07:05:54 -07:00
Erick Tryzelaar
e99cdcfba8
std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt}
2013-03-29 07:05:54 -07:00
Erick Tryzelaar
590bbcebe9
std: remove Encoder::emit_{owned,managed}_vec and Decoder::read_{owned,managed}_vec
2013-03-29 07:05:54 -07:00
Erick Tryzelaar
63fc88757f
std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed}
2013-03-29 07:05:54 -07:00
Erick Tryzelaar
8b43c620b9
std: remove Encoder::emit_{owned,managed}_str and Decoder::read_{owned,managed}_str
2013-03-29 07:05:54 -07:00
Erick Tryzelaar
2c658fabed
std: remove prettyprint
...
Everyone uses fmt!("%?", ...) instead of the prettyprint
module, so I'm removing this file.
2013-03-29 07:05:54 -07:00
Alex Crichton
be57d745d2
Removing unused imports
2013-03-28 23:56:46 -04:00
Erick Tryzelaar
b05e148dc9
std: change Decoder::read_option to return a generic type
...
This allows read_option to be used with a custom option type instead
of just core::Option.
2013-03-28 20:34:33 -07:00
Erick Tryzelaar
aa779c1240
std: change Decoder::read_option to return a generic type
...
This allows read_option to be used with a custom option type instead
of just core::Option.
2013-03-28 13:11:24 -07:00