Skip to content

Instantly share code, notes, and snippets.

@applecuckoo
Last active December 19, 2023 18:38
Show Gist options
  • Save applecuckoo/5a9efd179a373590088001846246da4e to your computer and use it in GitHub Desktop.
Save applecuckoo/5a9efd179a373590088001846246da4e to your computer and use it in GitHub Desktop.
Updating git repository `https://github.com/eurotools/eurochef.git`
Installing eurochef-cli v0.1.0 (https://github.com/eurotools/eurochef.git#0fad750a)
Updating crates.io index
Downloaded binrw_derive v0.13.3
Downloaded binrw v0.13.3
Downloaded 2 crates (135.4 KB) in 1.80s
Compiling proc-macro2 v1.0.70
Compiling unicode-ident v1.0.12
Compiling autocfg v1.1.0
Compiling cfg-if v1.0.0
Compiling simd-adler32 v0.3.7
Compiling adler v1.0.2
Compiling libc v0.2.151
Compiling serde v1.0.193
Compiling crc32fast v1.3.2
Compiling miniz_oxide v0.7.1
Compiling syn v1.0.109
Compiling once_cell v1.19.0
Compiling num-traits v0.2.17
Compiling num-integer v0.1.45
Compiling num-bigint v0.4.4
Compiling num-rational v0.4.1
Compiling binrw_derive v0.13.3
Compiling memchr v2.6.4
Compiling quote v1.0.33
Compiling gimli v0.28.1
Compiling syn v2.0.41
Compiling cc v1.0.83
Compiling object v0.32.1
Compiling tracing-core v0.1.32
Compiling num-iter v0.1.43
Compiling byteorder v1.5.0
Compiling binrw v0.13.3
Compiling ryu v1.0.16
Compiling backtrace v0.3.69
Compiling owo-colors v3.5.0
Compiling itoa v1.0.10
Compiling thiserror v1.0.51
Compiling lazy_static v1.4.0
Compiling anyhow v1.0.75
Compiling either v1.9.0
Compiling rustc-demangle v0.1.23
Compiling flate2 v1.0.28
Compiling addr2line v0.21.0
Compiling fdeflate v0.3.1
Compiling pin-project-lite v0.2.13
Compiling utf8parse v0.2.1
Compiling array-init v2.1.0
Compiling serde_json v1.0.108
Compiling bitflags v1.3.2
Compiling anstyle-parse v0.2.3
Compiling png v0.17.10
Compiling num-complex v0.4.4
Compiling inflections v1.1.1
Compiling equivalent v1.0.1
Compiling regex-syntax v0.6.29
Compiling anstyle v1.0.4
Compiling hashbrown v0.14.3
Compiling colorchoice v1.0.0
Compiling portable-atomic v1.6.0
Compiling regex-syntax v0.8.2
Compiling anstyle-query v1.0.2
Compiling color_quant v1.1.0
Compiling iana-time-zone v0.1.58
Compiling chrono v0.4.31
Compiling anstream v0.6.5
Compiling itertools v0.10.5
Compiling regex-automata v0.1.10
Compiling bytemuck_derive v1.5.0
Compiling serde_derive v1.0.193
Compiling tracing-attributes v0.1.27
Compiling bytemuck v1.14.0
Compiling thiserror-impl v1.0.51
Compiling image v0.24.7
Compiling gltf-derive v1.4.0
Compiling regex-automata v0.4.3
Compiling indexmap v2.1.0
Compiling num v0.4.1
Compiling strsim v0.10.0
Compiling tracing v0.1.40
Compiling heck v0.4.1
Compiling overload v0.1.1
Compiling log v0.4.20
Compiling unicode-width v0.1.11
Compiling clap_lex v0.6.0
Compiling unsafe-libyaml v0.2.10
Compiling tracing-log v0.2.0
Compiling clap_builder v4.4.11
Compiling console v0.15.7
Compiling regex v1.10.2
Compiling clap_derive v4.4.7
Compiling nu-ansi-term v0.46.0
Compiling matchers v0.1.0
Compiling enumn v0.1.12
Compiling sharded-slab v0.1.7
Compiling squish v1.0.0
Compiling parse_int v0.6.0
Compiling thread_local v1.1.7
Compiling number_prefix v0.4.0
Compiling smallvec v1.11.2
Compiling nohash-hasher v0.2.0
Compiling bitflags v2.4.1
Compiling same-file v1.0.6
Compiling tracing-subscriber v0.3.18
Compiling walkdir v2.4.0
Compiling indicatif v0.17.7
Compiling clap v4.4.11
Compiling apng v0.3.1
Compiling qoi v0.4.1
Compiling clap-num v1.0.2
Compiling pathdiff v0.2.1
Compiling glob v0.3.1
Compiling hex v0.4.3
Compiling base64 v0.21.5
Compiling serde_yaml v0.9.27
Compiling gltf-json v1.4.0
Compiling eurochef-edb v0.1.0 (/home/user/.cargo/git/checkouts/eurochef-9b1738404128627a/0fad750/eurochef-edb)
Compiling eurochef-filelist v0.1.0 (/home/user/.cargo/git/checkouts/eurochef-9b1738404128627a/0fad750/eurochef-filelist)
Compiling gltf v1.4.0
Compiling eurochef-shared v0.1.0 (/home/user/.cargo/git/checkouts/eurochef-9b1738404128627a/0fad750/eurochef/shared)
Compiling eurochef-cli v0.1.0 (/home/user/.cargo/git/checkouts/eurochef-9b1738404128627a/0fad750/eurochef/cli)
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:94:22
|
94 | byte_length: vdata.len() as u32,
| ^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:108:27
|
108 | byte_stride: Some(std::mem::size_of::<UXVertex>() as u32),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Stride`, found `u32`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `u32` due to the type of the argument passed
--> eurochef/cli/src/edb/gltf_export.rs:108:22
|
108 | byte_stride: Some(std::mem::size_of::<UXVertex>() as u32),
| ^^^^^--------------------------------------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/6a62871320e262661bb1a0ea7f8aec9d3abeddf2/library/core/src/option.rs:578:5
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:119:22
|
119 | byte_length: idata.len() as u32,
| ^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:131:22
|
131 | byte_offset: 0,
| ^ expected `Option<USize64>`, found integer
|
= note: expected enum `std::option::Option<USize64>`
found type `{integer}`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:132:16
|
132 | count: vertices.len() as u32,
| ^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:147:22
|
147 | byte_offset: (3 * std::mem::size_of::<f32>()) as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<USize64>`, found `u32`
|
= note: expected enum `std::option::Option<USize64>`
found type `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:148:16
|
148 | count: vertices.len() as u32,
| ^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:163:22
|
163 | byte_offset: (6 * std::mem::size_of::<f32>()) as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<USize64>`, found `u32`
|
= note: expected enum `std::option::Option<USize64>`
found type `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:164:16
|
164 | count: vertices.len() as u32,
| ^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:179:22
|
179 | byte_offset: (8 * std::mem::size_of::<f32>()) as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<USize64>`, found `u32`
|
= note: expected enum `std::option::Option<USize64>`
found type `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:180:16
|
180 | count: vertices.len() as u32,
| ^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:293:26
|
293 | ...ength: t.index_count * std::mem::size_of::<u32>() as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:294:31
|
294 | ...set: Some(t.start_index * std::mem::size_of::<u32>() as u32),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `USize64`, found `u32`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `u32` due to the type of the argument passed
--> eurochef/cli/src/edb/gltf_export.rs:294:26
|
294 | ...set: Some(t.start_index * std::mem::size_of::<u32>() as u32),
| ^^^^^-------------------------------------------------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/6a62871320e262661bb1a0ea7f8aec9d3abeddf2/library/core/src/option.rs:578:5
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:305:26
|
305 | byte_offset: 0,
| ^ expected `Option<USize64>`, found integer
|
= note: expected enum `std::option::Option<USize64>`
found type `{integer}`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:306:20
|
306 | count: t.index_count,
| ^^^^^^^^^^^^^ expected `USize64`, found `u32`
error[E0308]: mismatched types
--> eurochef/cli/src/edb/gltf_export.rs:342:17
|
342 | map
| ^^^ expected `BTreeMap<Checked<...>, ...>`, found `HashMap<Checked<...>, ...>`
|
= note: expected struct `BTreeMap<Checked<Semantic>, gltf::gltf_json::Index<gltf::gltf_json::Accessor>>`
found struct `HashMap<Checked<Semantic>, gltf::gltf_json::Index<_>>`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `eurochef-cli` (bin "eurochef-cli") due to 16 previous errors
error: failed to compile `eurochef-cli v0.1.0 (https://github.com/eurotools/eurochef.git#0fad750a)`, intermediate artifacts can be found at `/tmp/cargo-installupIJJj`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment