fix(implant): changed embedding of vcc dlls in artefacts (#165) - #153
Merged
Gaetan Santucci (GaetanSantucci) merged 1 commit intoJun 22, 2026
Merged
Conversation
Yann (impolitepanda)
force-pushed
the
fix/165_Changed_vcc_libraries_embedding
branch
from
June 9, 2026 14:12
44006b6 to
eb4238d
Compare
There was a problem hiding this comment.
Pull request overview
This PR aims to ensure Windows MSVC builds (notably Windows ARM64) run on machines without the Visual C++ Redistributable by moving +crt-static into Cargo configuration, and adding a CI guard to detect accidental dynamic VCRUNTIME linkage.
Changes:
- Move Windows MSVC
-C target-feature=+crt-staticfrom CIRUSTFLAGSto.cargo/config.toml. - Update the GitHub Actions release build step to avoid setting
RUSTFLAGS(to prevent overriding Cargo’s target-specific flags). - Add a Windows-only CI verification step intended to fail the build if the produced binary imports VCRUNTIME dynamically.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/implant-ci.yml |
Stops using CI RUSTFLAGS for release builds and adds a Windows CRT dependency verification step. |
.cargo/config.toml |
Adds per-target Windows MSVC rustflags to force static CRT linkage. |
Comments suppressed due to low confidence (3)
.github/workflows/implant-ci.yml:111
- The Windows CRT verification step currently runs on pull_request builds too, but it checks for a release binary at
./target/.../release/.... On PRs, the workflow only builds debug binaries, so this step will fail (and it also points atopenaev-agent.exe, which doesn’t match the actual package/binary nameopenaev-implant).
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-clippy-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
.github/workflows/implant-ci.yml:114
rustup run stable llvm-objdump ...is not available unless thellvm-tools-previewcomponent is installed for the toolchain. The workflow currently installs only clippy/rustfmt, so this step is likely to fail at runtime on GitHub runners.
- name: Run cargo clippy
run: cargo clippy --target=${{ matrix.target }} -- -D warnings
.github/workflows/implant-ci.yml:103
- The release build previously stripped symbols via
RUSTFLAGS="-C strip=symbols". Removing stripping changes artifact size and may unintentionally ship symbols. If stripping is still desired, prefer Cargo’s profile setting/env vars rather thanRUSTFLAGSso the Windows+crt-statictarget flags from.cargo/config.tomlaren’t overridden.
components: clippy
- name: Cache
uses: actions/cache@v5
with:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Yann (impolitepanda)
force-pushed
the
fix/165_Changed_vcc_libraries_embedding
branch
3 times, most recently
from
June 9, 2026 14:19
b9d3520 to
26a25de
Compare
Yann (impolitepanda)
force-pushed
the
fix/165_Changed_vcc_libraries_embedding
branch
from
June 9, 2026 14:22
26a25de to
e34402f
Compare
Gaetan Santucci (GaetanSantucci)
deleted the
fix/165_Changed_vcc_libraries_embedding
branch
June 22, 2026 07:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Testing Instructions
Related issues
Checklist
Further comments