From cba505550a3d1896c33c2bc75826e2844c9a37d5 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Tue, 3 Feb 2015 18:30:01 -0500 Subject: [PATCH] initial commit --- .gitignore | 6 ++++++ .travis.yml | 1 + Cargo.toml | 14 ++++++++++++++ Makefile | 14 ++++++++++++++ README.md | 6 ++++++ UNLICENSE | 24 ++++++++++++++++++++++++ session.vim | 1 + src/lib.rs | 3 +++ 8 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Cargo.toml create mode 100644 Makefile create mode 100644 README.md create mode 100644 UNLICENSE create mode 100644 session.vim create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fec0ef --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.*.swp +doc +tags +build +target +Cargo.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..22761ba --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..8655c73 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "byteorder" +version = "0.1.0" #:version +authors = ["Andrew Gallant "] +description = "Library for reading/writing numbers in big-endian and little-endian." +documentation = "http://burntsushi.net/rustdoc/byteorder/" +homepage = "https://github.com/BurntSushi/byteorder" +repository = "https://github.com/BurntSushi/byteorder" +readme = "README.md" +keywords = ["byte", "endian", "big-endian", "little-endian"] +license = "Unlicense" + +[lib] +name = "byteorder" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f956f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +all: + echo Nothing to do... + +ctags: + ctags --recurse --options=ctags.rust --languages=Rust + +docs: + cargo doc + in-dir ./target/doc fix-perms + rscp ./target/doc/* gopher:~/www/burntsushi.net/rustdoc/ + +push: + git push origin master + git push github master diff --git a/README.md b/README.md new file mode 100644 index 0000000..664e58f --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +Convenience functions for reading and writing integers/floats in various byte +orders such as big-endian and little-endian. This is meant to replace the old +methods defined on the standard library `Reader` and `Writer` traits. + +Work in progress. + diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/session.vim b/session.vim new file mode 100644 index 0000000..213c956 --- /dev/null +++ b/session.vim @@ -0,0 +1 @@ +au BufWritePost *.rs silent!make ctags > /dev/null 2>&1 diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..97d6694 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,3 @@ +#![crate_name = "byteorder"] +#![doc(html_root_url = "http://burntsushi.net/rustdoc/byteorder")] +