Merge #30

30: Don't use decimal numbers when str length overflows TextSize. r=matklad a=CAD97

Since the string is necessarily longer than 4,294,967,296 bytes,
it is probably more useful to output the length in hexadecimal.

For additional niceness, we output the first and last 10 characters.

Co-authored-by: CAD97 <cad97@cad97.com>
tree: cfdf3d94089e301db9df057b97ece4dedde270de
  1. .github/
  2. src/
  3. tests/
  4. .gitignore
  5. bors.toml
  6. Cargo.toml
  7. LICENSE-APACHE
  8. LICENSE-MIT
  9. README.md
README.md

text_unit

Build Status Crates.io API reference

A library that provides newtype wrappers for u32 and (u32, u32) for use as text offsets.

See the docs for more.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.