From 739605bc8d82528acf19fc6b62bd4c11ab088b3c Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 6 Jan 2024 10:21:47 -0700 Subject: [PATCH] Enable `oid` feature by default Having to enable this feature has been an ongoing source of confusion, especially since the compiler error that results is fairly inscrutible. --- belt-hash/Cargo.toml | 2 +- gost94/Cargo.toml | 4 ++-- md2/Cargo.toml | 2 +- md4/Cargo.toml | 4 ++-- md5/Cargo.toml | 4 ++-- ripemd/Cargo.toml | 4 ++-- sha1/Cargo.toml | 4 ++-- sha2/Cargo.toml | 2 +- sha3/Cargo.toml | 6 +++--- streebog/Cargo.toml | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/belt-hash/Cargo.toml b/belt-hash/Cargo.toml index 05d0726e..81e34c1f 100644 --- a/belt-hash/Cargo.toml +++ b/belt-hash/Cargo.toml @@ -21,6 +21,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] oid = ["digest/oid"] diff --git a/gost94/Cargo.toml b/gost94/Cargo.toml index 3657063b..23b41c9a 100644 --- a/gost94/Cargo.toml +++ b/gost94/Cargo.toml @@ -20,6 +20,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"] diff --git a/md2/Cargo.toml b/md2/Cargo.toml index 3dead49f..9d8910f5 100644 --- a/md2/Cargo.toml +++ b/md2/Cargo.toml @@ -20,6 +20,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] oid = ["digest/oid"] diff --git a/md4/Cargo.toml b/md4/Cargo.toml index c79370ee..38c0b0e8 100644 --- a/md4/Cargo.toml +++ b/md4/Cargo.toml @@ -20,6 +20,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"] diff --git a/md5/Cargo.toml b/md5/Cargo.toml index 1867929b..3eb908cc 100644 --- a/md5/Cargo.toml +++ b/md5/Cargo.toml @@ -27,11 +27,11 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] asm = ["md5-asm"] # WARNING: this feature SHOULD NOT be enabled by library crates # Use assembly backend for LoongArch64 targets # WARNING: Bumps MSRV to 1.72. This feature SHOULD NOT be enabled by library crates loongarch64_asm = [] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"] # Enable OID support. force-soft = [] # Force software implementation diff --git a/ripemd/Cargo.toml b/ripemd/Cargo.toml index 8eb7f9f6..5dbf9b70 100644 --- a/ripemd/Cargo.toml +++ b/ripemd/Cargo.toml @@ -20,6 +20,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"] diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml index 2e87fb94..b154605d 100644 --- a/sha1/Cargo.toml +++ b/sha1/Cargo.toml @@ -25,9 +25,9 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"] # Enable OID support. asm = ["sha1-asm"] # WARNING: this feature SHOULD NOT be enabled by library crates # Use assembly backend for LoongArch64 targets # WARNING: Bumps MSRV to 1.72. This feature SHOULD NOT be enabled by library crates diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml index e2933ff5..9284b7b3 100644 --- a/sha2/Cargo.toml +++ b/sha2/Cargo.toml @@ -28,7 +28,7 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] oid = ["digest/oid"] # Enable OID support. asm = ["sha2-asm"] # WARNING: this feature SHOULD NOT be enabled by library crates diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml index 2e057f0e..3e38e0b0 100644 --- a/sha3/Cargo.toml +++ b/sha3/Cargo.toml @@ -26,9 +26,9 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -asm = ["keccak/asm"] # Enable ASM (currently ARMv8 only). WARNING: Bumps MSRV to 1.59 -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +asm = ["keccak/asm"] # Enable ASM (currently ARMv8 only). +oid = ["digest/oid"] # Enable OID support. reset = [] # Enable reset functionality diff --git a/streebog/Cargo.toml b/streebog/Cargo.toml index 2099a90f..c1aa8f11 100644 --- a/streebog/Cargo.toml +++ b/streebog/Cargo.toml @@ -20,6 +20,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] } hex-literal = "0.4" [features] -default = ["std"] +default = ["oid", "std"] std = ["digest/std"] -oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57 +oid = ["digest/oid"]