Skip to content

Commit 0ae582a

Browse files
authored
feat: support encode and decode of binary prefix system (#4)
- replace `get_ref` method with `Deref` trait
1 parent 66f8696 commit 0ae582a

12 files changed

Lines changed: 1398 additions & 26 deletions

File tree

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ retries = { backoff = "fixed", count = 2, delay = "1s" }
33
fail-fast = false
44
failure-output = "immediate-final"
55
leak-timeout = "1s"
6-
slow-timeout = { period = "60s", terminate-after = 2, grace-period = "30s" }
6+
slow-timeout = { period = "60s", terminate-after = 2, grace-period = "30s" }

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ updates:
1010
reviewers:
1111
- BobAnkh
1212
schedule:
13-
interval: "weekly"
13+
interval: "weekly"

.github/workflows/build-and-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v4
45-
- uses: actions-rust-lang/audit@v1
45+
- uses: actions-rust-lang/audit@v1

.github/workflows/release-plz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
uses: MarcoIeni/release-plz-action@v0.5
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
26-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
26+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- uses: Swatinem/rust-cache@v2
1616
- name: Install nextest
1717
uses: taiki-e/install-action@nextest
18-
- run: cargo nextest run --profile ci --all-features --release
18+
- run: cargo nextest run --profile ci --all-features --release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/target
22
Cargo.lock
33
.vscode
4+
5+
.pre-commit-config.yaml

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ serde_json = "1.0"
2222
[features]
2323
serde = ["bandwidth/serde", "serde/derive", "dep:serde"]
2424
display-integer = []
25+
binary-system = []
2526

2627
[package.metadata.docs.rs]
2728
all-features = true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

release-plz.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ allow_dirty = false
1818
# disallow packaging with uncommitted changes
1919
publish_allow_dirty = false
2020
# disable running `cargo-semver-checks`
21-
semver_check = true
21+
semver_check = true

0 commit comments

Comments
 (0)