Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mathias234/binary_rw
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishat Zakirov committed Jun 11, 2024
2 parents dbc21e6 + aba85b3 commit dc7e84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "binary_rw"
version = "4.0.4"
version = "4.1.0"
authors = ["Mathias Danielsen <[email protected]>"]
edition = "2021"

Expand All @@ -11,8 +11,8 @@ keywords = ["binary", "reader", "writer"]
license = "MIT"

[features]
wasm32 = []
string_len_u32 = []
wasm32 = [] # Uses u32 for usize operations, use string_len_u32 if you only want to affect how strings are encoded
string_len_u32 = [] # Uses u32 for string lengths instead of usize

[dependencies]
thiserror = "1"
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
//!
//! Otherwise string length is encoded using `usize` which
//! may vary across platforms.
//!
//! `wasm32` will also change read_usize to read a 32bit integer
//!
//! If you only want the u32 strings please use `string_len_u32` feature
#![deny(missing_docs)]
use std::{
borrow::Borrow,
Expand Down

0 comments on commit dc7e84a

Please sign in to comment.