Thanks you it works in my simple test but I have this error when I add
it in my program : error: can't find crate for `std`
I try to find why it doesn't work in my program and I found the error
occurs when I add the extern mod zmq;.
Perhaps I have to build lib zmq with the same flag.
I have another question. Why this flag is not set by default because
without it you can't really use serialization and io lib?
Philippe
Le 19/11/2013 21:00, Patrick Walton a écrit :
On 11/19/13 11:48 AM, Philippe Delrieu wrote:
I still struggle with the json API. I try it using encode and decode API
and I face a problem.
I take this code in the json test case :
let m = @mut MemWriter::new();
f(m as @mut io::Writer);
and I have an error :
The managed box syntax will be replaced by a library type, and a garbage
collector is not yet implemented. Consider using the `std::rc::Rc` type
for reference counted pointers.
Add `#[feature(managed_boxes)];` to the top of your crate. The JSON
and EBML APIs have not been kept well up to date with idioms used by
the current version of Rust and will not work without this feature flag.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev