Skip to content

Commit 36909ef

Browse files
committed
Update readme and documentation
1 parent 5df5dd0 commit 36909ef

File tree

6 files changed

+26
-9
lines changed

6 files changed

+26
-9
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Workaround for kcov. See https://github.com/travis-ci/travis-ci/issues/9061.
2+
sudo: required
3+
14
language: rust
25

36
rust:
@@ -11,9 +14,9 @@ addons:
1114
apt:
1215
packages:
1316
- bc
14-
- time
15-
- libelf-dev
16-
- libdw-dev
1717
- binutils-dev
18+
- libdw-dev
19+
- libelf-dev
20+
- time
1821

1922
script: ./travis.sh

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ lazy_static! {
7979
}
8080
```
8181

82-
If you use a nightly compiler, you may use the [macro] library to define a
83-
compile-time custom encoding:
82+
You may also use the [macro] library to define a compile-time custom encoding:
8483

8584
```rust
8685
const HEX: Encoding = new_encoding!{

lib/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Patch
44

5+
- Update readme and documentation
56
- Add maintenance-related badges to Cargo.toml
67

78
## 2.1.0

lib/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ lazy_static! {
6767
}
6868
```
6969

70-
If you use a nightly compiler, you may use the [macro] library to define a
71-
compile-time custom encoding:
70+
You may also use the [macro] library to define a compile-time custom encoding:
7271

7372
```rust
7473
const HEX: Encoding = new_encoding!{

lib/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@
6868
//! }
6969
//! ```
7070
//!
71+
//! You may also use the [macro] library to define a compile-time custom encoding:
72+
//!
73+
//! ```rust,ignore
74+
//! const HEX: Encoding = new_encoding!{
75+
//! symbols: "0123456789abcdef",
76+
//! translate_from: "ABCDEF",
77+
//! translate_to: "abcdef",
78+
//! };
79+
//! const BASE64: Encoding = new_encoding!{
80+
//! symbols: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
81+
//! padding: '=',
82+
//! };
83+
//! ```
84+
//!
7185
//! # Properties
7286
//!
7387
//! The [base16], [base32], [base32hex], [base64], and [base64url] predefined
@@ -152,6 +166,7 @@
152166
//! [constants]: index.html#constants
153167
//! [crate]: https://crates.io/crates/data-encoding
154168
//! [github]: https://github.com/ia0/data-encoding
169+
//! [macro]: https://crates.io/crates/data-encoding-macro
155170
156171
#![warn(unused_results, missing_docs)]
157172

travis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ info "Test library coverage"
6363
find target/debug -maxdepth 1 -type f -perm /u+x -printf '%P\n' |
6464
while IFS= read -r test; do
6565
info "Run $test"
66-
./kcov-master/build/src/kcov --verify --include-path=lib/src/ \
67-
target/kcov-"$test" ./target/debug/"$test"
66+
./kcov-master/build/src/kcov --include-path=lib/src/ target/kcov-"$test" \
67+
./target/debug/"$test"
6868
done; unset test
6969

7070
info "Send coverage to coveralls.io"

0 commit comments

Comments
 (0)