Skip to content

build errors #66

@ocervell

Description

@ocervell

I cannot build x8 anymore, I'm getting the following errors on cargo build:

$ cargo install x8@4.3.0 --force

error: cannot find derive macro `Serialize` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/network/utils.rs:47:39
   |
47 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Copy)]
   |                                       ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/network/utils.rs:7:5
   |
 7 | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^
error: cannot find derive macro `Serialize` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:15:17
   |
15 | #[derive(Debug, Serialize)]
   |                 ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:1:5
   |
 1 | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^
error: cannot find attribute `serde` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:35:7
   |
35 |     #[serde(skip_serializing)]
   |       ^^^^^
   |
   = note: `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`, you might be missing a `derive` attribute
   = note: `serde` is in scope, but it is a crate, not an attribute
error: cannot find attribute `serde` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:39:7
   |
39 |     #[serde(skip_serializing)]
   |       ^^^^^
   |
   = note: `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`, you might be missing a `derive` attribute
   = note: `serde` is in scope, but it is a crate, not an attribute
error: cannot find derive macro `Serialize` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/utils.rs:27:39
   |
27 | #[derive(Debug, Clone, PartialEq, Eq, Serialize)]
   |                                       ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/utils.rs:8:5
   |
 8 | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^
error: cannot find derive macro `Serialize` in this scope
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/utils.rs:35:24
   |
35 | #[derive(Debug, Clone, Serialize)]
   |                        ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/utils.rs:8:5
   |
 8 | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `RunnerOutput: serde::Serialize` is not satisfied
    --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:144:36
     |
 144 |             serde_json::to_string(&self).unwrap()
     |             ---------------------  ^^^^ unsatisfied trait bound
     |             |
     |             required by a bound introduced by this call
     |
help: the trait `Serialize` is not implemented for `RunnerOutput`
    --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x8-4.3.0/src/runner/output.rs:16:1
     |
  16 | pub struct RunnerOutput {
     | ^^^^^^^^^^^^^^^^^^^^^^^
     = note: for local types consider adding `#[derive(serde::Serialize)]` to your `RunnerOutput` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Serialize`:
               &'a T
               &'a mut T
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
             and 134 others
     = note: required for `Vec<RunnerOutput>` to implement `Serialize`
     = note: 1 redundant requirement hidden
     = note: required for `&Vec<RunnerOutput>` to implement `Serialize`
note: required by a bound in `serde_json::to_string`
    --> /home/jahmyst/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.148/src/ser.rs:2247:17
     |
2245 | pub fn to_string<T>(value: &T) -> Result<String>
     |        --------- required by a bound in this function
2246 | where
2247 |     T: ?Sized + Serialize,
     |                 ^^^^^^^^^ required by this bound in `to_string`

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