Skip to content

[pull] main from VirusTotal:main#263

Merged
pull[bot] merged 4 commits into
threatcode:mainfrom
VirusTotal:main
Jul 7, 2026
Merged

[pull] main from VirusTotal:main#263
pull[bot] merged 4 commits into
threatcode:mainfrom
VirusTotal:main

Conversation

@pull

@pull pull Bot commented Jul 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

plusvic and others added 4 commits July 7, 2026 13:16
Also includes other minor optimizations.
Replace `OnceLock` with a direct `match` statement for `wsock32_ord_to_name`. This eliminates the overhead of dynamic allocation, hashing, and `OnceLock` initialization, improving performance for frequent ordinal lookups.

Additionally, avoid an unnecessary `Vec` allocation when converting a byte slice (`&[u8]`) to a UTF-8 string (`String`) during import parsing.
)

This exposes the YARA-X protobuf option schema from the `yara-x-proto` crate so downstream custom modules can import `yara.proto` without vendoring a copy or relying on crate source layout.

The new public constants are:
```rust
pub const YARA_PROTO_FILE_NAME: &str = "yara.proto";
pub const YARA_PROTO: &str = include_str!("yara.proto");
```

This lets external module crates use the same protobuf options as in-tree modules while keeping yara.proto owned by yara-x-proto.
@pull pull Bot locked and limited conversation to collaborators Jul 7, 2026
@pull pull Bot added the ⤵️ pull label Jul 7, 2026
@pull pull Bot merged commit 0416e7c into threatcode:main Jul 7, 2026
12 of 13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants