tokio: `tokio-codec` does not contain `length_delimited`
Version
tokio-codec 0.1.1 tokio-io 0.1.9
Platform
Linux 4.18.10-arch1-1-ARCH #1 SMP PREEMPT x86_64
Subcrates
tokioc-codec tokio-io
Description
PR #568 deprecated tokio_io::codec::length_delimited. The deprecation warnings, e.g.
warning: use of deprecated item 'tokio_io::codec::length_delimited': Moved to tokio-codec
claim the module has been moved to tokio-codec, however this is not the case. tokio now contains a codec::length_delimited module, but the tokio-codec crate does not. Users who do not use the tokio crate have therefore no upgrade path.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (13 by maintainers)
Commits related to this issue
- Disable length_delimited deprecation warning. Until tokio-rs/tokio#680 is resolved, we should allow using deprecated APIs in the codec module. — committed to hyperium/h2 by carllerche 6 years ago
- Disable length_delimited deprecation warning. (#321) Until tokio-rs/tokio#680 is resolved, we should allow using deprecated APIs in the codec module. — committed to hyperium/h2 by carllerche 6 years ago
A
Cargo.tomlsuch aswhich selects different
tokiofeatures depending on the target architecture will ― for all target architectures ― build with the union of all feature sets. The example will therefore fail to compile onwasm32.That’s a good reason.
While using
tokio::codecinstead oftokio_codecmight work, I don’t like having to depend ontokiocrate from library crate. I have a library crate that useslength_delimitedbut I don’t want to force users into depending on lot of other things in all tokio-related crates that they don’t use.Please consider adding
length_delimitedtotokio_codecitself.