Skip to content

Commit

Permalink
Enable oid feature by default
Browse files Browse the repository at this point in the history
Having to enable this feature has been an ongoing source of confusion,
especially since the compiler error that results is fairly inscrutible.
  • Loading branch information
tarcieri committed Jan 6, 2024
1 parent 1a43b8f commit 739605b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion belt-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions gost94/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion md2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions md4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions md5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions ripemd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions sha1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sha2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sha3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions streebog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 739605b

Please sign in to comment.