Skip to content

Instantly share code, notes, and snippets.

@5HT
Last active December 29, 2025 09:49
Show Gist options
  • Select an option

  • Save 5HT/de2ab1c446700f3c1ec7c613ee1852f5 to your computer and use it in GitHub Desktop.

Select an option

Save 5HT/de2ab1c446700f3c1ec7c613ee1852f5 to your computer and use it in GitHub Desktop.
rust.txt
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `asn1_suite`
--> tests/certificate_parse.rs:5:5
|
5 | use asn1_suite::authenticationframeworkcertificate::AuthenticationFrameworkCertificate;
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `asn1_suite`
--> tests/roundtrip.rs:1:5
|
1 | use asn1_suite::kepmessageimprint::KEPMessageImprint;
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `asn1_suite`
--> tests/roundtrip.rs:4:5
|
4 | use asn1_suite::authenticationframeworkalgorithmidentifier::AuthenticationFrameworkAlgorithmIdentifier;
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
warning: unused import: `DERParseable`
--> tests/certificate_parse.rs:4:28
|
4 | use rust_asn1::der::{self, DERParseable};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `rust_asn1::asn1_types::*`
--> tests/probe_serialize.rs:1:5
|
1 | use rust_asn1::asn1_types::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `self`
--> tests/probe_serialize.rs:2:22
|
2 | use rust_asn1::der::{self, DERSerializable, Serializer};
| ^^^^
warning: fields `a` and `b` are never read
--> tests/probe_serialize.rs:6:5
|
5 | struct MyStruct {
| -------- fields in this struct
6 | a: i32,
| ^
7 | b: bool,
| ^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
For more information about this error, try `rustc --explain E0433`.
error: could not compile `asn1_suite` (test "roundtrip") due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
warning: `asn1_suite` (test "certificate_parse") generated 1 warning
error: could not compile `asn1_suite` (test "certificate_parse") due to 1 previous error; 1 warning emitted
error[E0432]: unresolved import `asn1_suite`
--> examples/ca_client.rs:1:5
|
1 | use asn1_suite::*;
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
error[E0432]: unresolved import `asn1_suite`
--> examples/cert_parser.rs:18:5
|
18 | use asn1_suite::PKIX1Explicit2009Certificate;
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `asn1_suite`
--> examples/cert_parser.rs:80:17
|
80 | asn1_suite::PKIX1Explicit2009Name::RdnSequence(rdns) => rdns.len(),
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `asn1_suite`
--> examples/cert_parser.rs:83:17
|
83 | asn1_suite::PKIX1Explicit2009Name::RdnSequence(rdns) => rdns.len(),
| ^^^^^^^^^^ use of unresolved module or unlinked crate `asn1_suite`
|
= help: if you wanted to use a crate named `asn1_suite`, use `cargo add asn1_suite` to add it to your `Cargo.toml`
warning: unused import: `DERParseable`
--> examples/cert_parser.rs:21:28
|
21 | use rust_asn1::der::{self, DERParseable, DERSerializable, Serializer};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `DERParseable`
--> examples/ca_client.rs:9:22
|
9 | use rust_asn1::der::{DERParseable, DERSerializable, Serializer};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `rust_asn1::errors::ASN1Error`
--> examples/ca_client.rs:10:5
|
10 | use rust_asn1::errors::ASN1Error;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::time::SystemTime`
--> examples/ca_client.rs:14:5
|
14 | use std::time::SystemTime;
| ^^^^^^^^^^^^^^^^^^^^^
warning: `asn1_suite` (test "probe_serialize") generated 3 warnings (run `cargo fix --test "probe_serialize" -p asn1_suite` to apply 2 suggestions)
warning: unused import: `p384::elliptic_curve::sec1::ToEncodedPoint`
--> examples/ca_client.rs:4:5
|
4 | use p384::elliptic_curve::sec1::ToEncodedPoint;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused variable: `ib`
--> examples/ca_client.rs:277:9
|
277 | let ib = iter.to_be_bytes();
| ^^ help: if this is intentional, prefix it with an underscore: `_ib`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
For more information about this error, try `rustc --explain E0432`.
warning: `asn1_suite` (example "ca_client") generated 5 warnings
error: could not compile `asn1_suite` (example "ca_client") due to 1 previous error; 5 warnings emitted
error[E0599]: no method named `serialize` found for reference `&ASN1Node` in the current scope
--> examples/cert_parser.rs:366:26
|
366 | if let Err(e) = node.serialize(&mut serializer) {
| ^^^^^^^^^ method not found in `&ASN1Node`
|
help: one of the expressions' fields has a method of the same name
|
366 | if let Err(e) = node.identifier.tag_number.serialize(&mut serializer) {
| ++++++++++++++++++++++
Some errors have detailed explanations: E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0432`.
warning: `asn1_suite` (example "cert_parser") generated 1 warning
error: could not compile `asn1_suite` (example "cert_parser") due to 4 previous errors; 1 warning emitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment