Skip to content

Intermitent build error #436

@vincentberthier

Description

@vincentberthier

Some times it will build, some times it will not. It’s annoying.

Compiling yara-x v1.5.0
error[E0433]: failed to resolve: use of unresolved module or unlinked crate console
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:4:83
|
4 | add_module!(modules, "console", console, "console.Console", Some("console"), Some(console::main as MainFn));
| ^^^^^^^ use of unresolved module or unlinked crate console
|
= help: if you wanted to use a crate named console, use cargo add console to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate crx
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:6:63
|
6 | add_module!(modules, "crx", crx, "crx.Crx", Some("crx"), Some(crx::main as MainFn));
| ^^^ use of unresolved module or unlinked crate crx
|
= help: if you wanted to use a crate named crx, use cargo add crx to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate cuckoo
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:8:78
|
8 | add_module!(modules, "cuckoo", cuckoo, "cuckoo.Cuckoo", Some("cuckoo"), Some(cuckoo::main as MainFn));
| ^^^^^^ use of unresolved module or unlinked crate cuckoo
|
= help: if you wanted to use a crate named cuckoo, use cargo add cuckoo to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate dotnet
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:10:78
|
10 | add_module!(modules, "dotnet", dotnet, "dotnet.Dotnet", Some("dotnet"), Some(dotnet::main as MainFn));
| ^^^^^^ use of unresolved module or unlinked crate dotnet
|
= help: if you wanted to use a crate named dotnet, use cargo add dotnet to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate elf
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:12:63
|
12 | add_module!(modules, "elf", elf, "elf.ELF", Some("elf"), Some(elf::main as MainFn));
| ^^^ use of unresolved module or unlinked crate elf
|
= help: if you wanted to use a crate named elf, use cargo add elf to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate hash
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:14:68
|
14 | add_module!(modules, "hash", hash, "hash.Hash", Some("hash"), Some(hash::main as MainFn));
| ^^^^ use of unresolved module or unlinked crate hash
|
= help: if you wanted to use a crate named hash, use cargo add hash to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate lnk
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:16:63
|
16 | add_module!(modules, "lnk", lnk, "lnk.Lnk", Some("lnk"), Some(lnk::main as MainFn));
| ^^^ use of unresolved module or unlinked crate lnk
|
= help: if you wanted to use a crate named lnk, use cargo add lnk to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate macho
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:18:73
|
18 | add_module!(modules, "macho", macho, "macho.Macho", Some("macho"), Some(macho::main as MainFn));
| ^^^^^ use of unresolved module or unlinked crate macho
|
= help: if you wanted to use a crate named macho, use cargo add macho to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate math
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:22:68
|
22 | add_module!(modules, "math", math, "math.Math", Some("math"), Some(math::main as MainFn));
| ^^^^ use of unresolved module or unlinked crate math
|
= help: if you wanted to use a crate named math, use cargo add math to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate pe
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:24:58
|
24 | add_module!(modules, "pe", pe, "pe.PE", Some("pe"), Some(pe::main as MainFn));
| ^^ use of unresolved module or unlinked crate pe
|
= help: if you wanted to use a crate named pe, use cargo add pe to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate string
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:26:78
|
26 | add_module!(modules, "string", string, "string.String", Some("string"), Some(string::main as MainFn));
| ^^^^^^
| |
| use of unresolved module or unlinked crate string
| help: a struct with a similar name exists (notice the capitalization): String
|
= help: if you wanted to use a crate named string, use cargo add string to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate test_proto2
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:28:102
|
28 | add_module!(modules, "test_proto2", test_proto2, "test_proto2.TestProto2", Some("test_proto2"), Some(test_proto2::main as MainFn));
| ^^^^^^^^^^^ use of unresolved module or unlinked crate test_proto2
|
= help: if you wanted to use a crate named test_proto2, use cargo add test_proto2 to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate test_proto3
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:30:102
|
30 | add_module!(modules, "test_proto3", test_proto3, "test_proto3.TestProto3", Some("test_proto3"), Some(test_proto3::main as MainFn));
| ^^^^^^^^^^^ use of unresolved module or unlinked crate test_proto3
|
= help: if you wanted to use a crate named test_proto3, use cargo add test_proto3 to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate time
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:34:68
|
34 | add_module!(modules, "time", time, "time.Time", Some("time"), Some(time::main as MainFn));
| ^^^^ use of unresolved module or unlinked crate time
|
= help: if you wanted to use a crate named time, use cargo add time to add it to your Cargo.toml

error[E0433]: failed to resolve: use of unresolved module or unlinked crate vt
--> /somewhere/project/vendor/yara-x/src/modules/add_modules.rs:36:77
|
36 | add_module!(modules, "vt", titan, "vt.titan.LiveHuntData", Some("vt"), Some(vt::main as MainFn));
| ^^ use of unresolved module or unlinked crate vt
|
= help: if you wanted to use a crate named vt, use cargo add vt to add it to your Cargo.toml

For more information about this error, try rustc --explain E0433.
e

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