Skip to content

error[E0282]: type annotations needed for rsa::pkcs1::RsaPublicKey<_> #3377

Description

@AveNRU

Description

I was updated 06.10.2026 to kit: Add optional gpui-fast backend (#3375)

Environment

  • GPUI: 0.7.1
  • Platform: Windows 11,

Steps to Reproduce

my cargo.toml

[package]
name = "Text_Changer"
authors = ["AveN RU"]
version = "0.1.3"
description = "Заменитель слов по словарю"
edition = "2024"
#build = "build.rs"
[dependencies]
#find-msvc-tools = "*"
#gpui-kit = "*"
gpui-kit = { path = "E:/Rust/gpui-kit/crates/kit" }
gpui-component-story = { path = "E:/Rust/gpui-kit/crates/story" }
#для замера ОЗУ
cap = "*"
#rmp-serde = "*"
#смешные лица
indicatif = {version = "*", features = ["rayon"]}
#постоянные данные
regex = "*"
calamine = "*"
rust_xlsxwriter = "*"
encoding_rs = "*"
encoding_rs_io = "*"
#rtf-parser = "*"
zip = "*"
#foldhash = "*"
#доп
walkdir = "*" #вложенные папки
anyhow = "*"
#clap = "*"
serde_json = "*"
convert_case = "*"
stringzilla = "*"
time = "*"
chrono = "*"
#unirust = "*"
#rzhavchina = { path = "./rzhavchina_proc_macro/" }
#sysinfo = "*"
#vergen = "*"
rayon = "*"
#xml-rs = "*"
#quick-xml = "*"
#pretty_assertions = "*"
console = "*"
#rand = "*"
smol = "*"
#dhat = "*"
#sha2 = "*"
#blake3 = "*"
rapidhash = "*"
serde = { version = "*", features = ["derive"] }
unicode-segmentation = "*"
#tokio = { version = "*", features = ["full"]  }
#okio-macros = "*"
[workspace]
members = [
    "rzhavchina_proc_macro",
    #"examples"
]
# Явно указываем разрешение не-ASCII идентификаторов
[package.metadata]
non_ascii_idents = true

[profile.dev]
debug = true  # Включить отладочную информацию

[profile.release]
debug = true  # Также

[features]
dhat-heap = []    # if you are doing heap profiling
dhat-ad-hoc = []  # if you are doing ad hoc profiling

[rust]
debuginfo-level = 1

[build-dependencies]
# Зависимости для сборки
rmp-serde = "*"
serde = { version = "*", features = ["derive"] }
rayon = "*"  # если нужно в build.rs
rapidhash = "*"  # если нужно в build.rs
regex = "*"
convert_case = "*"
rust_xlsxwriter = "*"
stringzilla = "*"

[env]
RUST_MIN_STACK = "14388608"
#объявление раздела gpui
[patch.crates-io]
rquickjs = { path = "E:/Rust/gpui-kit/crates/shell/rquickjs-compat" }

Screenshots

warning: `Text_Changer` (manifest) generated 2 warnings
   Compiling gpui-pre v0.3.8
   Compiling llrt_crypto v0.9.0-beta (https://github.com/awslabs/llrt?rev=7b95c82a9b15e7ddfb2778eca4b5a63111e74f51#7b95c82a)
   Compiling gpui-pre-reqwest-client v0.3.8
   Compiling Text_Changer v0.1.3 (E:\Rust\text_changer2)
error[E0282]: type annotations needed for `rsa::pkcs1::RsaPublicKey<_>`
   --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:990:13
    |
990 |         let public_key =
    |             ^^^^^^^^^^
991 |             rsa::pkcs1::RsaPublicKey::from_der(der).map_err(|_| CryptoError::InvalidKey(None))?;
992 |         let modulus_length = public_key.modulus.as_bytes().len() * 8;
    |                              ------------------ type must be known at this point
    |
help: consider giving `public_key` an explicit type, where the type for type parameter `U` is specified
    |
990 |         let public_key: rsa::pkcs1::RsaPublicKey<U> =
    |                       +++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `rsa::pkcs1::RsaPrivateKey<_>`
    --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:1010:13
     |
1010 |         let private_key =
     |             ^^^^^^^^^^^
1011 |             rsa::pkcs1::RsaPrivateKey::from_der(der).map_err(|_| CryptoError::InvalidKey(None))?;
1012 |         let modulus_length = private_key.modulus.as_bytes().len() * 8;
     |                              ------------------- type must be known at this point
     |
help: consider giving `private_key` an explicit type, where the type for type parameter `U` is specified
     |
1010 |         let private_key: rsa::pkcs1::RsaPrivateKey<U> =
     |                        ++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `rsa::pkcs1::RsaPublicKey<_>`
    --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:1032:13
     |
1032 |         let public_key = rsa::pkcs1::RsaPublicKey::from_der(spki.subject_public_key.raw_bytes())
     |             ^^^^^^^^^^
1033 |             .map_err(|_| CryptoError::InvalidKey(None))?;
1034 |         let modulus_length = public_key.modulus.as_bytes().len() * 8;
     |                              ------------------ type must be known at this point
     |
help: consider giving `public_key` an explicit type, where the type for type parameter `U` is specified
     |
1032 |         let public_key: rsa::pkcs1::RsaPublicKey<U> = rsa::pkcs1::RsaPublicKey::from_der(spki.subject_public_key.raw_bytes())
     |                       +++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `rsa::pkcs1::RsaPrivateKey<_>`
    --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:1054:13
     |
1054 |         let private_key = rsa::pkcs1::RsaPrivateKey::from_der(pk_info.private_key.as_bytes())
     |             ^^^^^^^^^^^
1055 |             .map_err(|_| CryptoError::InvalidKey(None))?;
1056 |         let modulus_length = private_key.modulus.as_bytes().len() * 8;
     |                              ------------------- type must be known at this point
     |
help: consider giving `private_key` an explicit type, where the type for type parameter `U` is specified
     |
1054 |         let private_key: rsa::pkcs1::RsaPrivateKey<U> = rsa::pkcs1::RsaPrivateKey::from_der(pk_info.private_key.as_bytes())
     |                        ++++++++++++++++++++++++++++++

error[E0284]: type annotations needed for `rsa::pkcs1::RsaPublicKey<_>`
    --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:1074:13
     |
1074 |         let public_key = rsa::pkcs1::RsaPublicKey::from_der(key_data)
     |             ^^^^^^^^^^   ------------------------ type must be known at this point
     |
     = note: cannot satisfy `<_ as DecodeValue<'_>>::Error == der::Error`
     = note: the type must also implement `DecodeValue<'_>`
     = note: the type must also implement `FixedTag`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `DecodeValue<'_>`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `der::Decode<'_>`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `DecodeValue<'_>`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `der::Decode<'_>`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `DecodeValue<'_>`
     = note: required for `rsa::pkcs1::RsaPublicKey<_>` to implement `der::Decode<'_>`
help: consider giving `public_key` an explicit type, where the type for type parameter `U` is specified
     |
1074 |         let public_key: rsa::pkcs1::RsaPublicKey<U> = rsa::pkcs1::RsaPublicKey::from_der(key_data)
     |                       +++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `rsa::pkcs1::RsaPrivateKey<_>`
    --> C:\Users\AveN\.cargo\git\checkouts\llrt-0a7fdb298878dfd0\7b95c82\modules\llrt_crypto\src\provider\rust\mod.rs:1421:17
     |
1421 |             let key = rsa::pkcs1::RsaPrivateKey::from_der(key_data)
     |                 ^^^
...
1424 |                 n: key.modulus.as_bytes().to_vec(),
     |                    ----------- type must be known at this point
     |
help: consider giving `key` an explicit type, where the type for type parameter `U` is specified
     |
1421 |             let key: rsa::pkcs1::RsaPrivateKey<U> = rsa::pkcs1::RsaPrivateKey::from_der(key_data)
     |                    ++++++++++++++++++++++++++++++

Some errors have detailed explanations: E0282, E0284.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `llrt_crypto` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
    Building [=====================> ] 1076/1089: gpui-pre

Expected

A clear and concise description of what you expected to happen.

Actual

A clear and concise description of what actually happened.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions