Skip to content

cargo build fails: | ^^^^^^^^^ could not find __private in serde #70

@feoh

Description

@feoh

Hello!

Trying to build lurk from cargo fails with the following error. Hopefully I included enough info to help figure this out, and thanks!

   Compiling lurk-cli v0.3.10
error[E0433]: failed to resolve: could not find `__private` in `serde`
 --> /home/feoh/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lurk-cli-0.3.10/src/syscall_info.rs:7:12
  |
7 | use serde::__private::ser::FlatMapSerializer;
  |            ^^^^^^^^^ could not find `__private` in `serde`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `lurk-cli` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `lurk-cli v0.3.10`, intermediate artifacts can be found at `/tmp/cargo-installcQpQfL`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
╭─feoh at loki in ~ 25-12-19 - 11:04:21
╰─○ cargo --version && rustc --version                                                                                                                                     <region:us-east-1>
cargo 1.92.0 (344c4567c 2025-10-21)
rustc 1.92.0 (ded5c06cf 2025-12-08)
╭─feoh at loki in ~ 25-12-19 - 11:06:07
╰─○ lsb_release -a                                                                                                                                                         <region:us-east-1>
LSB Version:    n/a
Distributor ID: cachyos
Description:    CachyOS
Release:        rolling
Codename:       n/a
╭─feoh at loki in ~ 25-12-19 - 11:06:16
╰─○

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