From a367af612b8b30b5bdf40e5c1d0e45df46a5e3e9 Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Sun, 18 May 2025 01:14:15 -0400 Subject: [PATCH] Make `encoding_rs` an optional dependency (#205) --- objdiff-core/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objdiff-core/Cargo.toml b/objdiff-core/Cargo.toml index ae454b0..c485750 100644 --- a/objdiff-core/Cargo.toml +++ b/objdiff-core/Cargo.toml @@ -41,6 +41,7 @@ any-arch = [ "dep:regex", "dep:similar", "dep:syn", + "dep:encoding_rs" ] bindings = [ "dep:prost", @@ -171,7 +172,7 @@ notify-debouncer-full = { version = "0.5.0", optional = true } shell-escape = { version = "0.1", optional = true } tempfile = { version = "3.19", optional = true } time = { version = "0.3", optional = true } -encoding_rs = "0.8.35" +encoding_rs = { version = "0.8.35", optional = true } [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", optional = true }