Skip to content

Unable to install via cargo #510

@void90user

Description

@void90user

Description

this is the message it leaves after crash:
error[E0107]: missing generics for struct Ferinth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/lib.rs:44:26
|
44 | pub mr: &'a ferinth::Ferinth,
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: Auth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ferinth-2.12.0/src/lib.rs:86:12
|
86 | pub struct Ferinth {
| ^^^^^^^ ----
help: add missing generic argument
|
44 | pub mr: &'a ferinth::Ferinth,
| ++++++

error[E0107]: missing generics for struct Ferinth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/scan.rs:22:16
|
22 | modrinth: &Ferinth,
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: Auth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ferinth-2.12.0/src/lib.rs:86:12
|
86 | pub struct Ferinth {
| ^^^^^^^ ----
help: add missing generic argument
|
22 | modrinth: &Ferinth,
| ++++++

error[E0107]: missing generics for struct Ferinth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/upgrade/modpack_downloadable.rs:56:16
|
56 | modrinth: &Ferinth,
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: Auth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ferinth-2.12.0/src/lib.rs:86:12
|
86 | pub struct Ferinth {
| ^^^^^^^ ----
help: add missing generic argument
|
56 | modrinth: &Ferinth,
| ++++++

error[E0107]: missing generics for struct Ferinth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/lib.rs:50:33
|
50 | pub fn new(mr: &'a ferinth::Ferinth, cf: &'a furse::Furse, gh: &'a octocrab::Octocrab) -> Self {
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: Auth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ferinth-2.12.0/src/lib.rs:86:12
|
86 | pub struct Ferinth {
| ^^^^^^^ ----
help: add missing generic argument
|
50 | pub fn new(mr: &'a ferinth::Ferinth, cf: &'a furse::Furse, gh: &'a octocrab::Octocrab) -> Self {
| ++++++

error[E0107]: missing generics for struct Ferinth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/modpack/add.rs:76:34
|
76 | pub async fn modrinth(modrinth: &Ferinth, config: &Config, project_id: &str) -> Result {
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: Auth
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ferinth-2.12.0/src/lib.rs:86:12
|
86 | pub struct Ferinth {
| ^^^^^^^ ----
help: add missing generic argument
|
76 | pub async fn modrinth(modrinth: &Ferinth, config: &Config, project_id: &str) -> Result {
| ++++++

error[E0282]: type annotations needed for (_, _)
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/scan.rs:53:9
|
53 | let (mr_results, cf_results) = try_join!(
| ^^^^^^^^^^^^^^^^^^^^^^^^
...
64 | HashMap::<_, >::from_iter(mr_results.into_iter().map(|(k, v)| (k, v.project_id)));
| ---------- type must be known at this point
|
help: consider giving this pattern a type, where the placeholders _ are specified
|
53 | let (mr_results, cf_results): (
, _) = try_join!(
| ++++++++

error[E0277]: the size for values of type [ferinth::structures::version::Version] cannot be known at compilation time
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/upgrade/mod_downloadable.rs:131:14
|
131 | &apis.mr.list_versions(project_id).await?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for [ferinth::structures::version::Version]
= note: all local variables must have a statically known size

error[E0277]: the size for values of type [ferinth::structures::version::Version] cannot be known at compilation time
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/upgrade/mod_downloadable.rs:131:53
|
131 | &apis.mr.list_versions(project_id).await?,
| ^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for [ferinth::structures::version::Version]
note: required by an implicit Sized bound in ControlFlow
--> /rustc/01f6ddf7588f42ae2d7eb0a2f21d44e8e96674cf/library/core/src/ops/control_flow.rs:89:1

error[E0282]: type annotations needed
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/upgrade/modpack_downloadable.rs:61:38
|
61 | let version_file: Downloadable = modrinth
| _______________________^
62 | | .list_versions(project_id)
63 | | .await?
| |
^ cannot infer type

error[E0599]: no method named create_from_directory found for struct ZipWriter<W> in the current scope
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/modpack/modrinth/mod.rs:46:16
|
46 | writer.create_from_directory(&overrides.to_owned())?;
| ^^^^^^^^^^^^^^^^^^^^^
|
help: there is a method add_directory with a similar name, but with different arguments
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zip-2.4.2/src/write.rs:1400:5
|
1400 | / pub fn add_directory<S, T: FileOptionExtension>(
1401 | | &mut self,
1402 | | name: S,
1403 | | mut options: FileOptions,
1404 | | ) -> ZipResult<()>
1405 | | where
1406 | | S: Into,
| |________________________^

error[E0308]: mismatched types
--> /home/arch/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libium-1.30.0/src/upgrade/mod.rs:48:21
|
48 | length: file.file_length,
| ^^^^^^^^^^^^^^^^ expected usize, found i64

Some errors have detailed explanations: E0107, E0277, E0282, E0308, E0599.
For more information about an error, try rustc --explain E0107.
error: could not compile libium (lib) due to 11 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile ferium v4.7.1, intermediate artifacts can be found at /tmp/cargo-installllsjRV.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Steps to Reproduce

  1. run cargo install ferium
  2. install crashes

Operating System

Linux

Installation Method

crates.io (cargo install)

Ferium version

4.7.1

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions