x8
x8 copied to clipboard
Add installation issues chapter to the readme
Hi, i want to install x8 (i use aarch64) (cargo install x8) but i got this error:
error: cannot find derive macro `Serialize` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/network/utils.rs:7:5
|
7 | use serde::Serialize;
| ^^^^^^^^^^^^^^^^
error: cannot find derive macro `Serialize` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:1:5
|
1 | use serde::Serialize;
| ^^^^^^^^^^^^^^^^
error: cannot find attribute `serde` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:35:7
|
35 | #[serde(skip_serializing)]
| ^^^^^
|
= note: `serde` is in scope, but it is a crate, not an attribute
error: cannot find attribute `serde` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:39:7
|
39 | #[serde(skip_serializing)]
| ^^^^^
|
= note: `serde` is in scope, but it is a crate, not an attribute
error: cannot find derive macro `Serialize` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:8:5
|
8 | use serde::Serialize;
| ^^^^^^^^^^^^^^^^
error: cannot find derive macro `Serialize` in this scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:8:5
|
8 | use serde::Serialize;
| ^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `RunnerOutput: Serialize` is not satisfied
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:144:36
|
144 | serde_json::to_string(&self).unwrap()
| --------------------- ^^^^ the trait `Serialize` is not implemented for `RunnerOutput`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Serialize`:
&'a T
&'a mut T
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 132 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`
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.97/src/ser.rs:2145:17
|
2145 | T: ?Sized + Serialize,
| ^^^^^^^^^ required by this bound in `to_string`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `x8` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `x8 v4.3.0`, intermediate artifacts can be found at `/tmp/cargo-installZuluBu`
Hi. Try to update rust version.
I've checked the issue and it turns out the problem was in serde dependency that caused the build to break in the stable version of the rust. I've updated the dependency and it builds fine now.
The main issue of adding common installation issues to README.md is still unsolved tho.
Thanks