ion-rust icon indicating copy to clipboard operation
ion-rust copied to clipboard

Feature "experimental-lazy-reader" should enable "expermental-reader"

Open jpschorr opened this issue 1 year ago • 0 comments

Given a Cargo.toml like

ion-rs = { version = "1.0.0-rc.3", features = ["experimental-lazy-reader"] }

Compiling ion-rs fails with errors like

   Compiling ion-rs v1.0.0-rc.3
error[E0432]: unresolved import `crate::RawSymbolTokenRef`
   --> /.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/ion-rs-1.0.0-rc.3/src/lazy/any_encoding.rs:36:33
    |
36  | use crate::{IonResult, IonType, RawSymbolTokenRef};
    |                                 ^^^^^^^^^^^^^^^^^ no `RawSymbolTokenRef` in the root

This seems to be because "experimental-lazy-reader" implies "experimental-reader" as many features of the lazy reader use types defined in the experimental reader, but

https://github.com/amazon-ion/ion-rust/blob/55f06146461943582663abad7156fba0d259b62b/Cargo.toml#L50

Has experimental-lazy-reader = [] and not experimental-lazy-reader = ["experimental-reader"]

jpschorr avatar Apr 03 '24 21:04 jpschorr