Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #18 from thehydroimpulse/master
Browse files Browse the repository at this point in the history
Tracking master + Cargo support
  • Loading branch information
mneumann committed Jul 18, 2014
2 parents 6cd7dc0 + 07d6460 commit bbd93a7
Show file tree
Hide file tree
Showing 7 changed files with 711 additions and 707 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.rust/
target
bin/
build/
lib/
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
before_install:
- yes | sudo add-apt-repository ppa:cmrx64/cargo
- sudo apt-get update

install:
- sudo apt-get install cargo
- curl -O http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
- tar xfz rust-nightly-x86_64-unknown-linux-gnu.tar.gz
- export PATH=$PATH:$(pwd)/rust-nightly-x86_64-unknown-linux-gnu/bin
- rustc -v

script:
- rust-nightly-x86_64-unknown-linux-gnu/bin/rustc --version
- RUSTC=rust-nightly-x86_64-unknown-linux-gnu/bin/rustc make test
- cargo test

notifications:
email:
Expand Down
18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]

name = "msgpack"
version = "0.0.1"
authors = [
"Michael Neumann",
"Jason E. Aten",
"Piotr Zolnierek",
"Erick Tryzelaar",
"OGINO Masanori",
"Ian Daniher",
"Derek Chiang (Enchi Jiang)"
]

[[lib]]

name = "msgpack"
path = "src/msgpack/lib.rs"
39 changes: 0 additions & 39 deletions Makefile

This file was deleted.

18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@
[msgpack-home]: http://www.msgpack.org
[rust-home]: http://www.rust-lang.org

## Installation

Simply include the rust-msgpack in your Cargo dependencies.

```toml
[dependencies.msgpack]

git = "git@github.com:mneumann/rust-msgpack.git"
```

## Quickstart

```rust
extern crate msgpack = "msgpack#0.1";
extern crate msgpack;

fn main() {
let arr = vec!["str1".to_str(), "str2".to_str()];
Expand All @@ -37,6 +47,12 @@ struct MyStruct {
}
```

## Testing

```
cargo test
```

## License

This code licensed under the same terms as Rust itself: dual MIT/Apache2 license options.
Loading

0 comments on commit bbd93a7

Please sign in to comment.