Commit 77af7f7
committed
Remove deprecated
It was re-exported as `common` from `aead`, `cipher`, and
`universal-hash` in #2237, with the old name re-exported and
"deprecated".
Unfortuntaely, those deprecations don't work as expected, e.g.
#![allow(unused_imports)]
use digest::core_api::EagerHash;
use digest::crypto_common::OutputSizeUser;
This compiles without warnings:
Compiling crypto-common v0.2.0-rc.15
Compiling digest v0.11.0-rc.10
Compiling foobar v0.1.0 (/private/tmp/foobar)
Finished `test` profile [unoptimized + debuginfo] target(s) in 2.05s
Even if we change the re-export to use a deprecated module, ala:
#[deprecated(...)
pub mod crypto_common {
pub use ::common::*;
}
...that still doesn't work. Unfortunately deprecations only seem to
apply to the individual items, and not their imports or the modules
they're imported through.crypto_common re-exports1 parent ecc4e07 commit 77af7f7
4 files changed
Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 76 | | |
87 | 77 | | |
88 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
0 commit comments