mirror of https://git.sr.ht/~stygianentity/bincode
update readme to reflect library changes
This commit is contained in:
parent
2447e093a9
commit
0b5b3653e4
|
|
@ -18,15 +18,15 @@ library.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate bincode;
|
extern crate bincode;
|
||||||
extern crate serialize;
|
extern crate "rustc-serialize" as rustc_serialize;
|
||||||
|
|
||||||
#[deriving(Encodable, Decodable, PartialEq)]
|
#[deriving(RustcEncodable, RustcDecodable, PartialEq)]
|
||||||
struct Entity {
|
struct Entity {
|
||||||
x: f32,
|
x: f32,
|
||||||
y: f32,
|
y: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deriving(Encodable, Decodable, PartialEq)]
|
#[deriving(RustcEncodable, RustcDecodable, PartialEq)]
|
||||||
struct World {
|
struct World {
|
||||||
entities: Vec<Entity>
|
entities: Vec<Entity>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue