Skip to content

Instantly share code, notes, and snippets.

@konstin
Created January 22, 2025 17:59
Show Gist options
  • Save konstin/c4a9cd2ad9170e1ae3e476f5946db5ee to your computer and use it in GitHub Desktop.
Save konstin/c4a9cd2ad9170e1ae3e476f5946db5ee to your computer and use it in GitHub Desktop.
ron 74666478d5553592c6136e0dec12d11bbd10302e minimal versions build errors
Updating crates.io index
Locking 36 packages to earliest compatible versions
Adding base64 v0.22.0 (available: v0.22.1)
Adding bitflags v2.0.0 (available: v2.8.0)
Adding bytes v1.3.0 (available: v1.9.0)
Adding ctor v0.1.0 (available: v0.1.26)
Adding dtoa v0.4.0 (available: v0.4.8)
Adding equivalent v1.0.0 (available: v1.0.1)
Adding erased-serde v0.3.0 (available: v0.3.31)
Adding ghost v0.1.4 (available: v0.1.18)
Adding hashbrown v0.14.0 (available: v0.14.5)
Adding heck v0.4.0 (available: v0.4.1)
Adding indexmap v2.0.0 (available: v2.7.1)
Adding inventory v0.3.0 (available: v0.3.17)
Adding itoa v0.3.0 (available: v0.3.4)
Adding num-traits v0.1.32 (available: v0.1.43)
Adding once_cell v1.0.1 (available: v1.20.2)
Adding option_set v0.2.0 (available: v0.3.0)
Adding proc-macro2 v0.4.21 (available: v0.4.30)
Adding proc-macro2 v1.0.0 (available: v1.0.93)
Adding quote v0.3.8 (available: v0.3.15)
Adding quote v0.6.10 (available: v0.6.13)
Adding quote v1.0.0 (available: v1.0.38)
Adding serde v1.0.60 (available: v1.0.217)
Adding serde_bytes v0.11.0 (available: v0.11.15)
Adding serde_derive v1.0.0 (available: v1.0.217)
Adding serde_derive_internals v0.15.0 (available: v0.15.1)
Adding serde_json v1.0.0 (available: v1.0.137)
Adding syn v0.11.10 (available: v0.11.11)
Adding syn v0.15.22 (available: v0.15.44)
Adding syn v1.0.0 (available: v1.0.109)
Adding synom v0.11.0 (available: v0.11.3)
Adding typetag v0.2.0 (available: v0.2.19)
Adding typetag-impl v0.2.0 (available: v0.2.19)
Adding unicode-ident v1.0.0 (available: v1.0.14)
Adding unicode-xid v0.2.0 (available: v0.2.6)
Checking ron v0.9.0-alpha.0 (/home/konsti/projects/ron)
error: proc-macro derive panicked
--> src/ser/mod.rs:79:39
|
79 | #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: "failed to parse derive input: \"/// Pretty serializer configuration.\\n///\\n/// # Examples\\n///\\n/// ```\\n/// use ron::ser::PrettyConfig;\\n///\\n/// let my_config = PrettyConfig::new()\\n/// .depth_limit(4)\\n/// // definitely superior (okay, just joking)\\n/// .indentor(\\\"\\\\t\\\");\\n/// ```\\n#[allow(clippy::struct_excessive_bools)] #[serde(default)] #[non_exhaustive]\\npub struct PrettyConfig\\n{\\n /// Limit the pretty-ness up to the given depth.\\n pub depth_limit: usize, /// New line string\\n pub new_line: Cow<'static, str>, /// Indentation string\\n pub indentor: Cow<'static, str>, /// Separator string\\n pub separator: Cow<'static, str>, pub struct_names: bool,\\n /// Separate tuple members with indentation\\n pub separate_tuple_members: bool, /// Enumerate array items in comments\\n pub enumerate_arrays: bool,\\n /// Enable extensions. Only configures `implicit_some`,\\n /// `unwrap_newtypes`, and `unwrap_variant_newtypes` for now.\\n pub extensions: Extensions,\\n /// Enable compact arrays, which do not insert new lines and indentation\\n /// between the elements of an array\\n pub compact_arrays: bool,\\n /// Whether to serialize strings as escaped strings,\\n /// or fall back onto raw strings if necessary.\\n pub escape_strings: bool,\\n /// Enable compact structs, which do not insert new lines and indentation\\n /// between the fields of a struct\\n pub compact_structs: bool,\\n /// Enable compact maps, which do not insert new lines and indentation\\n /// between the entries of a struct\\n pub compact_maps: bool,\\n /// Enable explicit number type suffixes like `1u16`\\n pub number_suffixes: bool,\\n /// Additional path-based field metadata to serialize\\n pub path_meta: Option<path_meta::Field>,\\n}\""
error: proc-macro derive panicked
--> src/ser/mod.rs:79:50
|
79 | #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: "failed to parse derive input: \"/// Pretty serializer configuration.\\n///\\n/// # Examples\\n///\\n/// ```\\n/// use ron::ser::PrettyConfig;\\n///\\n/// let my_config = PrettyConfig::new()\\n/// .depth_limit(4)\\n/// // definitely superior (okay, just joking)\\n/// .indentor(\\\"\\\\t\\\");\\n/// ```\\n#[allow(clippy::struct_excessive_bools)] #[serde(default)] #[non_exhaustive]\\npub struct PrettyConfig\\n{\\n /// Limit the pretty-ness up to the given depth.\\n pub depth_limit: usize, /// New line string\\n pub new_line: Cow<'static, str>, /// Indentation string\\n pub indentor: Cow<'static, str>, /// Separator string\\n pub separator: Cow<'static, str>, pub struct_names: bool,\\n /// Separate tuple members with indentation\\n pub separate_tuple_members: bool, /// Enumerate array items in comments\\n pub enumerate_arrays: bool,\\n /// Enable extensions. Only configures `implicit_some`,\\n /// `unwrap_newtypes`, and `unwrap_variant_newtypes` for now.\\n pub extensions: Extensions,\\n /// Enable compact arrays, which do not insert new lines and indentation\\n /// between the elements of an array\\n pub compact_arrays: bool,\\n /// Whether to serialize strings as escaped strings,\\n /// or fall back onto raw strings if necessary.\\n pub escape_strings: bool,\\n /// Enable compact structs, which do not insert new lines and indentation\\n /// between the fields of a struct\\n pub compact_structs: bool,\\n /// Enable compact maps, which do not insert new lines and indentation\\n /// between the entries of a struct\\n pub compact_maps: bool,\\n /// Enable explicit number type suffixes like `1u16`\\n pub number_suffixes: bool,\\n /// Additional path-based field metadata to serialize\\n pub path_meta: Option<path_meta::Field>,\\n}\""
error: proc-macro derive panicked
--> src/value/map.rs:18:33
|
18 | #[derive(Clone, Debug, Default, Deserialize, Serialize)]
| ^^^^^^^^^^^
|
= help: message: unknown serde container attribute `transparent`
error: proc-macro derive panicked
--> src/value/map.rs:18:46
|
18 | #[derive(Clone, Debug, Default, Deserialize, Serialize)]
| ^^^^^^^^^
|
= help: message: unknown serde container attribute `transparent`
error: proc-macro derive panicked
--> src/extensions.rs:5:72
|
5 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: "failed to parse derive input: \"pub struct Extensions\\n(< Self as $crate :: __private :: PublicFlags > :: Internal);\""
error: proc-macro derive panicked
--> src/extensions.rs:5:83
|
5 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: "failed to parse derive input: \"pub struct Extensions\\n(< Self as $crate :: __private :: PublicFlags > :: Internal);\""
error: cannot find macro `forward_to_deserialize_any_helper` in this scope
--> src/value/mod.rs:134:5
|
134 | / forward_to_deserialize_any! {
135 | | bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str string bytes
136 | | byte_buf option unit unit_struct newtype_struct seq tuple
137 | | tuple_struct map struct enum identifier ignored_any
138 | | }
| |_____^ help: a macro with a similar name exists: `forward_to_deserialize_any`
|
::: /home/konsti/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.60/src/macros.rs:132:1
|
132 | macro_rules! forward_to_deserialize_any {
| --------------------------------------- similarly named macro `forward_to_deserialize_any` defined here
|
= note: this error originates in the macro `forward_to_deserialize_any` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0046]: not all trait items implemented, missing: `deserialize_bool`, `deserialize_i8`, `deserialize_i16`, `deserialize_i32`, `deserialize_i64`, `deserialize_u8`, `deserialize_u16`, `deserialize_u32`, `deserialize_u64`, `deserialize_f32`, `deserialize_f64`, `deserialize_char`, `deserialize_str`, `deserialize_string`, `deserialize_bytes`, `deserialize_byte_buf`, `deserialize_option`, `deserialize_unit`, `deserialize_unit_struct`, `deserialize_newtype_struct`, `deserialize_seq`, `deserialize_tuple`, `deserialize_tuple_struct`, `deserialize_map`, `deserialize_struct`, `deserialize_enum`, `deserialize_identifier`, `deserialize_ignored_any`
--> src/value/mod.rs:131:1
|
131 | impl<'de> Deserializer<'de> for Value {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `deserialize_bool`, `deserialize_i8`, `deserialize_i16`, `deserialize_i32`, `deserialize_i64`, `deserialize_u8`, `deserialize_u16`, `deserialize_u32`, `deserialize_u64`, `deserialize_f32`, `deserialize_f64`, `deserialize_char`, `deserialize_str`, `deserialize_string`, `deserialize_bytes`, `deserialize_byte_buf`, `deserialize_option`, `deserialize_unit`, `deserialize_unit_struct`, `deserialize_newtype_struct`, `deserialize_seq`, `deserialize_tuple`, `deserialize_tuple_struct`, `deserialize_map`, `deserialize_struct`, `deserialize_enum`, `deserialize_identifier`, `deserialize_ignored_any` in implementation
|
= help: implement the missing item: `fn deserialize_bool<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_i8<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_i16<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_i32<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_i64<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_u8<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_u16<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_u32<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_u64<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_f32<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_f64<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_char<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_str<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_string<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_bytes<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_byte_buf<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_option<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_unit<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_unit_struct<V>(self, _: &'static str, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_newtype_struct<V>(self, _: &'static str, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_seq<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_tuple<V>(self, _: usize, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_tuple_struct<V>(self, _: &'static str, _: usize, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_map<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_struct<V>(self, _: &'static str, _: &'static [&'static str], _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_enum<V>(self, _: &'static str, _: &'static [&'static str], _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_identifier<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
= help: implement the missing item: `fn deserialize_ignored_any<V>(self, _: V) -> std::result::Result<<V as Visitor<'de>>::Value, <Self as _IMPL_SERIALIZE_FOR_Options::_serde::Deserializer<'de>>::Error> where V: Visitor { todo!() }`
error[E0277]: the trait bound `usize: Bits` is not satisfied
--> src/extensions.rs:6:28
|
6 | pub struct Extensions: usize {
| ^^^^^ the trait `Bits` is not implemented for `usize`
|
= help: the following other types implement trait `Bits`:
i128
i16
i32
i64
i8
u128
u16
u32
and 2 others
note: required by a bound in `bitflags::BitFlags::Bits`
--> /home/konsti/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.0.0/src/traits.rs:8:16
|
8 | type Bits: Bits;
| ^^^^ required by this bound in `BitFlags::Bits`
error[E0599]: no function or associated item named `new` found for struct `_IMPL_SERIALIZE_FOR_Options::_serde::de::value::StrDeserializer` in the current scope
--> src/de/mod.rs:1032:78
|
1032 | .map(|ident| seed.deserialize(serde::de::value::StrDeserializer::new(ident)))
| ^^^ function or associated item not found in `StrDeserializer<'_, _>`
error[E0277]: the trait bound `map::Map: Serialize` is not satisfied
--> src/ser/value.rs:13:55
|
13 | Value::Map(ref m) => Serialize::serialize(m, serializer),
| -------------------- ^ the trait `Serialize` is not implemented for `map::Map`
| |
| 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 109 others
error[E0277]: the trait bound `usize: Bits` is not satisfied
--> src/extensions.rs:6:28
|
6 | pub struct Extensions: usize {
| ^^^^^ the trait `Bits` is not implemented for `usize`
|
= help: the following other types implement trait `Bits`:
i128
i16
i32
i64
i8
u128
u16
u32
and 2 others
error[E0277]: the trait bound `Extensions: Serialize` is not satisfied
--> src/options.rs:30:24
|
30 | #[derive(Clone, Debug, Serialize, Deserialize)] // GRCOV_EXCL_LINE
| ^^^^^^^^^ the trait `Serialize` is not implemented for `Extensions`
|
= 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 109 others
note: required by a bound in `_IMPL_SERIALIZE_FOR_Options::_serde::ser::SerializeStruct::serialize_field`
--> /home/konsti/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.60/src/ser/mod.rs:1892:12
|
1886 | fn serialize_field<T: ?Sized>(
| --------------- required by a bound in this associated function
...
1892 | T: Serialize;
| ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Extensions: Deserialize<'_>` is not satisfied
--> src/options.rs:30:35
|
30 | #[derive(Clone, Debug, Serialize, Deserialize)] // GRCOV_EXCL_LINE
| ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Extensions`
|
= help: the following other types implement trait `Deserialize<'de>`:
&'a Path
&'a RawValue
&'a [u8]
&'a str
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
and 109 others
note: required by a bound in `next_element`
--> /home/konsti/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.60/src/de/mod.rs:1625:12
|
1623 | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
| ------------ required by a bound in this associated function
1624 | where
1625 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Extensions: Deserialize<'_>` is not satisfied
--> src/options.rs:30:35
|
30 | #[derive(Clone, Debug, Serialize, Deserialize)] // GRCOV_EXCL_LINE
| ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Extensions`
|
= help: the following other types implement trait `Deserialize<'de>`:
&'a Path
&'a RawValue
&'a [u8]
&'a str
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
and 109 others
note: required by a bound in `next_value`
--> /home/konsti/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.60/src/de/mod.rs:1749:12
|
1747 | fn next_value<V>(&mut self) -> Result<V, Self::Error>
| ---------- required by a bound in this associated function
1748 | where
1749 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0046, E0277, E0599.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `ron` (lib) due to 19 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment