rust-osdev / bootloader

An experimental pure-Rust x86 bootloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error installing "bootimage" v 1.10.3

Amongasik4334 opened this issue · comments

Error when installing bootimage, many errors appear

I'm new to the Rust language. Before that I wrote in C, C++ and C#. So sorry if I made a stupid mistake

This is what the console outputs The entire output did not fit:

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1132:10
     |
1132 |     ) -> Result<Self::Ok, Self::Error>
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1136:9
     |
1136 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1136:9
     |
1136 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1136:9
     |
1136 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0412]: cannot find type `Option` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1140:31
     |
1140 |     fn serialize_seq(self, _: Option<usize>) -> Result<Self::SerializeSeq, Self::Error> {
     |                               ^^^^^^ not found in this scope
     |
help: consider importing this enum
     |
1    + use core::option::Option;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1140:49
     |
1140 |     fn serialize_seq(self, _: Option<usize>) -> Result<Self::SerializeSeq, Self::Error> {
     |                                                 ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1141:9
     |
1141 |         Err(Self::bad_type(Unsupported::Sequence))
     |         ^^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Err;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1144:43
     |
1144 |     fn serialize_tuple(self, _: usize) -> Result<Self::SerializeTuple, Self::Error> {
     |                                           ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1145:9
     |
1145 |         Err(Self::bad_type(Unsupported::Tuple))
     |         ^^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Err;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1152:10
     |
1152 |     ) -> Result<Self::SerializeTupleStruct, Self::Error> {
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1153:9
     |
1153 |         Err(Self::bad_type(Unsupported::TupleStruct))
     |         ^^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Err;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1162:10
     |
1162 |     ) -> Result<Self::SerializeTupleVariant, Self::Error> {
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1163:9
     |
1163 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1163:9
     |
1163 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1163:9
     |
1163 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1164:9
     |
1164 |         Ok(FlatMapSerializeTupleVariantAsMapValue::new(self.0))
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Option` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1167:31
     |
1167 |     fn serialize_map(self, _: Option<usize>) -> Result<Self::SerializeMap, Self::Error> {
     |                               ^^^^^^ not found in this scope
     |
help: consider importing this enum
     |
1    + use core::option::Option;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1167:49
     |
1167 |     fn serialize_map(self, _: Option<usize>) -> Result<Self::SerializeMap, Self::Error> {
     |                                                 ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1168:9
     |
1168 |         Ok(FlatMapSerializeMap(self.0))
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1175:10
     |
1175 |     ) -> Result<Self::SerializeStruct, Self::Error> {
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1176:9
     |
1176 |         Ok(FlatMapSerializeStruct(self.0))
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1185:10
     |
1185 |     ) -> Result<Self::SerializeStructVariant, Self::Error> {
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1186:9
     |
1186 |         tri!(self.0.serialize_key(inner_variant));
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1186:9
     |
1186 |         tri!(self.0.serialize_key(inner_variant));
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1186:9
     |
1186 |         tri!(self.0.serialize_key(inner_variant));
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1187:9
     |
1187 |         Ok(FlatMapSerializeStructVariantAsMapValue::new(
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1205:26
     |
1205 |     fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), Self::Error>
     |                          ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1205:56
     |
1205 |     fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), Self::Error>
     |                                                        ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1212:28
     |
1212 |     fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error>
     |                            ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1212:60
     |
1212 |     fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error>
     |                                                            ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1219:28
     |
1219 |     fn serialize_entry<K: ?Sized, V: ?Sized>(
     |                            ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1219:39
     |
1219 |     fn serialize_entry<K: ?Sized, V: ?Sized>(
     |                                       ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1223:10
     |
1223 |     ) -> Result<(), Self::Error>
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1231:21
     |
1231 |     fn end(self) -> Result<(), Self::Error> {
     |                     ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1232:9
     |
1232 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1247:28
     |
1247 |     fn serialize_field<T: ?Sized>(
     |                            ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1251:10
     |
1251 |     ) -> Result<(), Self::Error>
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1258:21
     |
1258 |     fn end(self) -> Result<(), Self::Error> {
     |                     ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1259:9
     |
1259 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1292:28
     |
1292 |     fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error>
     |                            ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1292:60
     |
1292 |     fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error>
     |                                                            ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1296:21
     |
1296 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1296:21
     |
1296 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1296:21
     |
1296 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1298:9
     |
1298 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1301:21
     |
1301 |     fn end(self) -> Result<(), Self::Error> {
     |                     ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1302:9
     |
1302 |         tri!(self.map.serialize_value(&Content::Seq(self.fields)));
     |         ---------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1302:9
     |
1302 |         tri!(self.map.serialize_value(&Content::Seq(self.fields)));
     |         ---------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1302:9
     |
1302 |         tri!(self.map.serialize_value(&Content::Seq(self.fields)));
     |         ---------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1303:9
     |
1303 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0405]: cannot find trait `Sized` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1338:28
     |
1338 |     fn serialize_field<T: ?Sized>(
     |                            ^^^^^ not found in this scope
     |
help: consider importing this trait
     |
1    + use core::marker::Sized;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1342:10
     |
1342 |     ) -> Result<(), Self::Error>
     |          ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |             Ok(val) => val,
     |             ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1346:21
     |
1346 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |             Err(err) => return Err(err),
     |             ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1346:21
     |
1346 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |             Err(err) => return Err(err),
     |                                ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1346:21
     |
1346 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1348:9
     |
1348 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1351:21
     |
1351 |     fn end(self) -> Result<(), Self::Error> {
     |                     ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:286:13
     |
286  |               Ok(val) => val,
     |               ^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1352:9
     |
1352 | /         tri!(self
1353 | |             .map
1354 | |             .serialize_value(&Content::Struct(self.name, self.fields)));
     | |_______________________________________________________________________- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:13
     |
287  |               Err(err) => return Err(err),
     |               ^^^ not found in this scope
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1352:9
     |
1352 | /         tri!(self
1353 | |             .map
1354 | |             .serialize_value(&Content::Struct(self.name, self.fields)));
     | |_______________________________________________________________________- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\lib.rs:287:32
     |
287  |               Err(err) => return Err(err),
     |                                  ^^^
     |
    ::: C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1352:9
     |
1352 | /         tri!(self
1353 | |             .map
1354 | |             .serialize_value(&Content::Struct(self.name, self.fields)));
     | |_______________________________________________________________________- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a local variable with a similar name exists
     |
287  |             Err(err) => return err(err),
     |                                ~~~
help: consider importing this tuple variant
    -->  C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1:1
     |
1    + use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1355:9
     |
1355 |         Ok(())
     |         ^^ not found in this scope
     |
help: consider importing this tuple variant
     |
1    + use core::result::Result::Ok;
     |

error[E0412]: cannot find type `Result` in this scope
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\ser.rs:1366:46
     |
1366 |     fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
     |                                              ^^^^^^ not found in this scope
     |
help: consider importing one of these items
     |
1    + use core::fmt::Result;
     |
1    + use core::result::Result;
     |

error[E0412]: cannot find type `Result` in this scope
  --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\de\seed.rs:13:49
   |
13 |     fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>
   |                                                 ^^^^^^ not found in this scope
   |
help: consider importing one of these items
   |
1  + use core::fmt::Result;
   |
1  + use core::result::Result;
   |

error: requires `sized` lang_item
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\de\value.rs:1567:37
     |
1567 |     pub fn unit_only<T, E>(t: T) -> (T, UnitOnly<E>) {
     |                                     ^^^^^^^^^^^^^^^^

error: requires `sized` lang_item
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\de\value.rs:1710:25
     |
1710 |     impl<A, B> Pair for (A, B) {
     |                         ^^^^^^

error: requires `sized` lang_item
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\de\impls.rs:1334:68
     |
1334 |                       struct TupleInPlaceVisitor<'a, $($name: 'a,)+>(&'a mut ($($name,)+));
     |                                                                      ^^^^^^^^^^^^^^^^^^^^
...
1366 | / tuple_impls! {
1367 | |     1  => (0 T0)
1368 | |     2  => (0 T0 1 T1)
1369 | |     3  => (0 T0 1 T1 2 T2)
...    |
1382 | |     16 => (0 T0 1 T1 2 T2 3 T3 4 T4 5 T5 6 T6 7 T7 8 T8 9 T9 10 T10 11 T11 12 T12 13 T13 14 T...
1383 | | }
     | |_- in this macro invocation
     |
     = note: this error originates in the macro `tuple_impls` (in Nightly builds, run with -Z macro-backtrace for more info)

error: requires `sized` lang_item
  --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\de\size_hint.rs:24:19
   |
24 | fn helper(bounds: (usize, Option<usize>)) -> Option<usize> {
   |                   ^^^^^^^^^^^^^^^^^^^^^^

error: requires `sized` lang_item
   --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\ser\impls.rs:810:30
    |
810 | fn format_u8(mut n: u8, out: &mut [u8]) -> usize {
    |                              ^^^^^^^^^

error: requires `sized` lang_item
    --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\de.rs:2825:17
     |
2825 |     recognized: &[&str],
     |                 ^^^^^^^

error: requires `sized` lang_item
  --> C:\Users\Пользователь\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.197\src\private\mod.rs:30:35
   |
30 |     pub fn from_utf8_lossy(bytes: &[u8]) -> Cow<str> {
   |                                   ^^^^^

Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0463, E0531.
error: could not compile `serde` (lib) due to 6230 previous errors

G:\Scripts\fkernel_test>

This looks like your Rust installation is missing the Windows target. Usually, one of the first error messages should warn about that and provide instructions for installing the target. Otherwise try rustup target add x86_64-pc-windows-msvc.

This looks like your Rust installation is missing the Windows target. Usually, one of the first error messages should warn about that and provide instructions for installing the target. Otherwise try rustup target add x86_64-pc-windows-msvc.

Sorry, but it didn't help. I wrote rustup target add x86_64-pc-windows-msvc but it didn’t help.

Try running the cargo install command in a parent folder, e.g. in G:\Scripts or in your home directory.

Also, what is your Rust/Cargo version? Could you give us the output of rustc --version?

Try running the cargo install command in a parent folder, e.g. in G:\Scripts or in your home directory.

Also, what is your Rust/Cargo version? Could you give us the output of rustc --version?

rustc 1.79.0-nightly (2f090c30d 2024-03-23)

G:\Scripts\fkernel_test>cargo install
error: Using cargo install to install the binaries from the package in current working directory is no longer supported, use cargo install --path . instead. Use cargo build if you want to simply build the package.

Thanks!

I meant running cargo install bootimage from e.g. G:\Scripts or G:\.

Thanks!

I meant running cargo install bootimage from e.g. G:\Scripts or G:\.

G:\Scripts\fkernel_test>cargo install bootimage
Updating crates.io index
Installing bootimage v0.10.3
Updating crates.io index
Compiling compiler_builtins v0.1.108
Compiling core v0.0.0 (C:\Users\Пользователь.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
Compiling proc-macro2 v1.0.79
Compiling unicode-ident v1.0.12
Compiling serde v1.0.197
Compiling serde_json v1.0.114
Compiling anyhow v1.0.81
Compiling thiserror v1.0.58
Compiling quote v1.0.35
Compiling syn v2.0.55
Compiling serde_derive v1.0.197
Compiling thiserror-impl v1.0.58
Compiling rustc-std-workspace-core v1.99.0 (C:\Users\Пользователь.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
Compiling semver-parser v0.7.0
Compiling itoa v1.0.10
Compiling ryu v1.0.17
Compiling json v0.12.4
Compiling wait-timeout v0.2.0
Compiling llvm-tools v0.1.1
error[E0463]: can't find crate for std

then begins what I indicated in the topic

You are running it from G:\Scripts\fkernel_test rather than G:\Scripts or G:\.

You are running it from G:\Scripts\fkernel_test rather than G:\Scripts or G:\.

Everything is the same as G:\, so is G:\Scripts

Did you put the default target setting in C:\Users\Пользователь\.cargo\config.toml by any chance?

The setting should go into G:\Scripts\fkernel_test\.cargo\config.toml, otherwise it applies to the whole system.

Did you put the default target setting in C:\Users\Пользователь\.cargo\config.toml by any chance?

The setting should go into G:\Scripts\fkernel_test\.cargo\config.toml, otherwise it applies to the whole system.

Yes, the config.toml file was in C:\Users\User\.cargo\config.toml, I copied it to G:\Scripts\fkernel_test\.cargo\config.toml.