Skip to content

Commit 52bb0a0

Browse files
committed
Crates.io release 0.0.1
1 parent 41f50d7 commit 52bb0a0

File tree

5 files changed

+81
-3
lines changed

5 files changed

+81
-3
lines changed

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: rust
2+
os:
3+
- linux
4+
script:
5+
- cargo test --verbose
6+
- cargo doc --no-deps
7+
after_success:
8+
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash upload-docs.sh

Cargo.toml

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22

33
name = "radix_trie"
44
version = "0.0.1"
5+
description = "Generic radix trie data-structure."
6+
7+
license = "MIT"
8+
license-file = "LICENSE"
59
authors = ["Michael Sproul <[email protected]>"]
610

7-
[dependencies.nibble_vec]
11+
repository = "https://github.com/michaelsproul/rust_radix_trie"
12+
documentation = "https://michaelsproul.github.io/rust_radix_trie/"
13+
14+
keywords = ["trie", "patricia", "collection", "generic", "prefix"]
15+
16+
[dependencies]
817

9-
git = "https://github.com/michaelsproul/rust_nibble_vec.git"
18+
nibble_vec = "*"

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Michael Sproul
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Rust Radix Trie
22
====
33

4+
[![Build Status](https://travis-ci.org/michaelsproul/rust_radix_trie.svg)](https://travis-ci.org/michaelsproul/rust_radix_trie)
5+
46
This is a [Radix Trie][radix-wiki] implementation in Rust, building on the lessons learnt from
57
`TrieMap` and [Sequence Trie][seq-trie].
68

@@ -10,11 +12,28 @@ This is a [Radix Trie][radix-wiki] implementation in Rust, building on the lesso
1012
* Key Generic. Any type that can be serialised as a vector of bytes can be used as a key.
1113
* Safe. No unsafe code (yet).
1214

15+
# Usage
16+
17+
Available on Crates.io as `radix_trie`.
18+
19+
```toml
20+
[dependencies]
21+
radix_trie = "*"
22+
```
23+
24+
# Documentation
25+
26+
https://michaelsproul.github.io/rust_radix_trie/
27+
1328
# To Do
1429

15-
* Implement the Entry API.
1630
* Add Trie-specific methods for prefixes, successors, etc.
31+
* Implement the Entry API.
1732
* Add iterators.
1833

1934
[radix-wiki]: http://en.wikipedia.org/wiki/Radix_tree
2035
[seq-trie]: https://github.com/michaelsproul/rust-sequence-trie
36+
37+
# License
38+
39+
MIT License. Copyright (c) Michael Sproul 2015.

upload-docs.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
rev=$(git rev-parse --short HEAD)
4+
5+
set -e
6+
7+
cd target/doc
8+
9+
# Add a page to redirect to the main crate.
10+
echo '<meta http-equiv="refresh" content="0; url=radix_trie/index.html">' > index.html
11+
12+
git init
13+
git config user.name "Michael Sproul"
14+
git config user.email "[email protected]"
15+
16+
git remote add upstream "https://$GH_TOKEN@github.com/michaelsproul/rust_radix_trie.git"
17+
git fetch upstream && git reset upstream/gh-pages
18+
19+
git add -A .
20+
git commit -m "Rebuild pages at ${rev}."
21+
git push -q upstream HEAD:gh-pages

0 commit comments

Comments
 (0)