Make pub Encoding, Encoding::decode and change::get_change_contents

[?]
ErxHg25gMTK7nMWtncNqWA1BnQuMgdrqsgfKNGZFyN8T
May 2, 2025, 5:01 PM
5H2UH7R5D6NTHPXIBE6RW6RYXYAOZ2J54CADLI7GR5C4V2OEEOMAC

Dependencies

  • [2] RVAH6PXA Getting libpijul to compile to WASM32
  • [3] I24UEJQL Various post-fire fixes
  • [4] VO5OQW4W Removing anyhow in libpijul
  • [5] 5FI6SBEZ Re-implement change printing and parsing
  • [6] AF5AKUTO Cleanup after the text changes refactoring
  • [7] UN2M77YU Test new changes against the old code. Fix several small bugs.
  • [8] 4DNDMC7I Fixing a number of bugs related to encodings (extra newlines + misdetection in linux2x)
  • [9] IACED7RW text_encoding module
  • [10] ZRUPLBBT Colours in diff and change: separating concerns and dependencies
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [*] RRCSHAYZ Formatting

Change contents

  • replacement in libpijul/src/text_encoding.rs at line 22
    [2.157][3.23:93](),[3.424][3.23:93]()
    pub(crate) fn decode<'a>(&self, text: &'a [u8]) -> Cow<'a, str> {
    [2.157]
    [3.93]
    pub fn decode<'a>(&self, text: &'a [u8]) -> Cow<'a, str> {
  • edit in libpijul/src/lib.rs at line 76
    [12.720352]
    [13.2877]
    pub use crate::text_encoding::Encoding;
  • replacement in libpijul/src/change.rs at line 22
    [2.1537][3.88785:88853](),[3.10127][3.88785:88853](),[3.36136][3.88785:88853]()
    pub use text_changes::{TextDeError, TextSerError, WriteChangeLine};
    [2.1537]
    [3.36136]
    pub use text_changes::{get_change_contents, TextDeError, TextSerError, WriteChangeLine};