Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adamcrume/java-properties
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Kernel-SU/java-properties
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 26, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    42a4aa9 View commit details
Showing with 9 additions and 1 deletion.
  1. +6 −1 Cargo.toml
  2. +3 −0 src/lib.rs
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -13,4 +13,9 @@ edition = "2018"
[dependencies]
encoding_rs = "0.8.32"
lazy_static = "1.4.0"
regex = "1.5.5"
regex = { version = "1.5.5", optional = true }
regex-lite = { version = "0.1" }

[features]
default = ["unicode"]
unicode = ["dep:regex"]
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -71,7 +71,10 @@ use encoding_rs::EncoderResult;
use encoding_rs::Encoding;
use encoding_rs::WINDOWS_1252;
use lazy_static::lazy_static;
#[cfg(feature = "unicode")]
use regex::Regex;
#[cfg(not(feature = "unicode"))]
use regex_lite::Regex;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::convert::From;