Skip to content

Commit

Permalink
Hide the internal implementation of Encoding in the documentation (#76)
Browse files Browse the repository at this point in the history
The implementation itself (`InternalEncoding`) is already hidden, but
the field in the definition of `Encoding` is not.

Fixes #75
  • Loading branch information
ia0 committed Jul 5, 2023
1 parent 8c8fe8e commit 48fefec
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
4 changes: 2 additions & 2 deletions bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "data-encoding-bin"
version = "0.3.2"
version = "0.3.3-git"
authors = ["Julien Cretin <git@ia0.eu>"]
license = "MIT"
edition = "2021"
Expand All @@ -16,5 +16,5 @@ name = "data-encoding"
path = "src/main.rs"

[dependencies]
data-encoding = { version = "2", path = "../lib" }
data-encoding = { version = "2.4.1-git", path = "../lib" }
getopts = "0.2"
6 changes: 6 additions & 0 deletions lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.4.1-git

### Patch

- Hide the documentation of the `Encoding` implementation (fixes #75)

## 2.4.0

### Minor
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "data-encoding"
version = "2.4.0"
version = "2.4.1-git"
authors = ["Julien Cretin <git@ia0.eu>"]
license = "MIT"
edition = "2018"
Expand Down
6 changes: 3 additions & 3 deletions lib/macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "data-encoding-macro"
version = "0.1.13"
version = "0.1.14-git"
authors = ["Julien Cretin <cretin@google.com>"]
license = "MIT"
edition = "2018"
Expand All @@ -14,5 +14,5 @@ description = "Macros for data-encoding"
include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"]

[dependencies]
data-encoding = { version = "2.4", path = "..", default-features = false }
data-encoding-macro-internal = { version = "0.1.11", path = "internal" }
data-encoding = { version = "2.4.1-git", path = "..", default-features = false }
data-encoding-macro-internal = { version = "0.1.12-git", path = "internal" }
11 changes: 8 additions & 3 deletions lib/macro/internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "data-encoding-macro-internal"
version = "0.1.11"
version = "0.1.12-git"
authors = ["Julien Cretin <cretin@google.com>"]
license = "MIT"
edition = "2018"
Expand All @@ -14,5 +14,10 @@ include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"]
proc-macro = true

[dependencies]
data-encoding = { version = "2.4", path = "../..", default-features = false, features = ["alloc"] }
syn = { version = "1", default-features = false, features = ["parsing", "proc-macro"] }
data-encoding = { version = "2.4.1-git", path = "../..", default-features = false, features = [
"alloc",
] }
syn = { version = "1", default-features = false, features = [
"parsing",
"proc-macro",
] }
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ pub type InternalEncoding = &'static [u8];
// - width % dec(bit) == 0
// - for all x in separator values[x] is IGNORE
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Encoding(pub InternalEncoding);
pub struct Encoding(#[doc(hidden)] pub InternalEncoding);

/// How to translate characters when decoding
///
Expand Down

0 comments on commit 48fefec

Please sign in to comment.