Skip to content

Commit

Permalink
Merge pull request #139 from artichoke/lopopolo/release-v4.3.0
Browse files Browse the repository at this point in the history
Update docs, prepare for v4.3.0 release
  • Loading branch information
lopopolo authored Mar 29, 2022
2 parents 75b0b6b + 393be1c commit b4ea70f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "boba"
version = "4.2.0" # remember to set `html_root_url` in `src/lib.rs`.
version = "4.3.0" # remember to set `html_root_url` in `src/lib.rs`.
authors = ["Ryan Lopopolo <rjl@hyperbo.la>"]
license = "MIT"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
boba = "4.2.0"
boba = "4.3.0"
```

Then encode and decode data like:
Expand Down
27 changes: 15 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
//! encode binary data to pseudowords that can be pronounced more easily than
//! arbitrary lists of hexadecimal digits.
//!
//! Bubble Babble is part of the Digest libraries in Perl and Ruby.
//! Bubble Babble is part of the Digest libraries in [Perl][perl-bubblebabble]
//! and [Ruby][ruby-bubblebabble].
//!
//! # Usage
//!
Expand Down Expand Up @@ -74,11 +75,13 @@
//! collections library. Currently, Boba requires this feature to build, but
//! may relax this requirement in the future.
//!
//! [perl-bubblebabble]: https://metacpan.org/pod/Digest::BubbleBabble
//! [ruby-bubblebabble]: https://ruby-doc.org/stdlib-3.1.1/libdoc/digest/rdoc/Digest.html#method-c-bubblebabble
//! [`std`]: https://doc.rust-lang.org/stable/std/index.html
//! [`std::error::Error`]: https://doc.rust-lang.org/stable/std/error/trait.Error.html
#![no_std]
#![doc(html_root_url = "https://docs.rs/boba/4.2.0")]
#![doc(html_root_url = "https://docs.rs/boba/4.3.0")]

// Ensure code blocks in README.md compile
#[cfg(doctest)]
Expand Down Expand Up @@ -114,12 +117,12 @@ mod encode;
///
/// `decode` will return a `DecodeError` if:
///
/// - The input is not an ASCII string, an error is returned.
/// - The input is not an ASCII string.
/// - The input contains an ASCII character outside of the Bubble Babble
/// encoding alphabet, an error is returned.
/// - The input does not start with a leading 'x', an error is returned.
/// - The input does not end with a trailing 'x', an error is returned.
/// - The decoded result does not checksum properly, an error is returned.
/// encoding alphabet.
/// - The input does not start with a leading 'x'.
/// - The input does not end with a trailing 'x'.
/// - The decoded result does not checksum properly.
///
/// # Examples
///
Expand Down Expand Up @@ -207,12 +210,12 @@ pub fn encode<T: AsRef<[u8]>>(data: T) -> String {
///
/// Decoding is fallible and might return [`DecodeError`] if:
///
/// - The input is not an ASCII string, an error is returned.
/// - The input is not an ASCII string.
/// - The input contains an ASCII character outside of the Bubble Babble
/// encoding alphabet, an error is returned.
/// - The input does not start with a leading 'x', an error is returned.
/// - The input does not end with a trailing 'x', an error is returned.
/// - The decoded result does not checksum properly, an error is returned.
/// encoding alphabet.
/// - The input does not start with a leading 'x'.
/// - The input does not end with a trailing 'x'.
/// - The decoded result does not checksum properly.
///
/// ```
/// # use boba::DecodeError;
Expand Down

0 comments on commit b4ea70f

Please sign in to comment.