Remove librbml and the RBML-tagged auto-encoder/decoder.
This commit is contained in:
parent
2ce0e6d4e7
commit
0863012fb9
32 changed files with 411 additions and 1516 deletions
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate rbml;
|
||||
extern crate serialize;
|
||||
|
||||
use std::io::Cursor;
|
||||
|
|
@ -21,8 +20,7 @@ use std::slice;
|
|||
|
||||
use serialize::{Encodable, Encoder};
|
||||
use serialize::json;
|
||||
|
||||
use rbml::writer;
|
||||
use serialize::opaque;
|
||||
|
||||
#[derive(Encodable)]
|
||||
struct Foo {
|
||||
|
|
@ -44,7 +42,7 @@ fn encode_json<T: Encodable>(val: &T, wr: &mut Cursor<Vec<u8>>) {
|
|||
write!(wr, "{}", json::as_json(val));
|
||||
}
|
||||
fn encode_rbml<T: Encodable>(val: &T, wr: &mut Cursor<Vec<u8>>) {
|
||||
let mut encoder = writer::Encoder::new(wr);
|
||||
let mut encoder = opaque::Encoder::new(wr);
|
||||
val.encode(&mut encoder);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue