Skip to content

More details when WontImplement #259

@FreeMasen

Description

@FreeMasen

I am trying to get a struct that will serialize to de-serialize, however I am encountering the error WontImplement, looking at #77 and #102 it seems like this does come up but trying to discover why that error is occurring seems to be difficult. Even setting RUST_BACKTRACE=1 doesn't provide much help.

thread 'main' panicked at examples/query.rs:124:64:
called `Result::unwrap()` on an `Err` value: WontImplement
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::result::unwrap_failed
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/result.rs:1704:5
   3: core::result::Result<T,E>::unwrap
             at /Users/robertmasen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:1109:23
   4: query::deser_metrics
             at ./examples/query.rs:124:35
   5: query::main
             at ./examples/query.rs:84:19
   6: core::ops::function::FnOnce::call_once
             at /Users/robertmasen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5

Which doesn't include any mention of postcard, is there an optimization internally that is causing this to happen? Would it be possible to have this disabled for debug builds?

details about how above backtrace was generated

My particular issue seems to be reproducible from this branch, running cargo run --example serialize -- --format postcard --dest ./metrics.postcard && cargo run --example query -- ./metrics.postcard will successfully produce the metrics.postcard file but will fail with the above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions