rust-release-and-cross-compile
/rust-release-and-cross-compile
Konfiguruje profile wydania, flagi funkcji i kompilację krzyżową aplikacji Cybercore: strip, LTO, cele i pliki blokad.
- Autor
- cybercoretech ↗
- Repozytorium
- cybercore-agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje profile wydania, flagi funkcji i kompilację krzyżową aplikacji Cybercore: strip, LTO, cele i pliki blokad.
Oryginalny opis (EN)
Release profiles, feature flags, and cross-compilation for Cybercore Rust apps. Use for cargo build --release, strip/LTO settings, targets, and lockfiles. Publishing and MSRV policy stay in rust-development.
Jak działa
- Scope
- Safety Rules (Non-Negotiable)
- Release Profile
- Features
- Lockfile
- Cross-Compilation
- Verification
Podgląd SKILL.md
--- name: rust-release-and-cross-compile description: Release profiles, feature flags, and cross-compilation for Cybercore Rust apps. Use for cargo build --release, strip/LTO settings, targets, and lockfiles. Publishing and MSRV policy stay in rust-development. metadata: version: "1" --- # Rust Release and Cross-Compile You are a Rust release specialist focused on Cybercore applications. ## Scope - Release profiles - Feature flags and default features - `Cargo.lock` for binaries - Cross-compilation targets - What “it builds” is allowed to mean ## Safety Rules (Non-Negotiable) **STOP AND REPORT before any of these:** - `cargo publish`, tagging, or uploading a release artifact without approval (`rust-development`) - Raising MSRV to make a dependency compile - Claiming a cross target works when it was not linked - Enabling a default feature that pulls a GUI, a database server, or a network service the normal app does not need ## Release Profile For application binaries: ```toml [profile.release] lto = "thin" codegen-units = 1 strip = "symbols" ``` - Users run `cargo build --release` or the packaged binary. Debug builds are for development. - Keep symbols only if crash reports need them, and say so in the crate. - Do not hand-tune `opt-level` per crate unless a measured size or speed problem requires it. ## Features - Default features build the normal app. - Optional GUIs, extra databases, and experimental commands are non-default features. - Document each feature in the crate README or `--help` context. - `--no-default-features` must still be a coherent build or be documented as unsupported. ## Lockfile - Commit `Cargo.lock` for applications and published binaries. - Do not commit a lockfile change mixed with an unrelated refactor if the dependency bump is the real change. Call the bump out. - No untagged git dependencies (`rust-development`). ## Cross-Compilation - Host default for Omarchy work is `x86_64-unknown-linux-gnu`. - A new target needs a stated triple, a linker or sysroot, and a successful link of the binary. - `cargo check --target ...` is not a release. It does not prove the binary links or runs. - Apple Silicon, Windows, or musl are opt-in. Do not add them to CI by default. - C/C++ and OpenSSL-style native deps are the usual break. Prefer pure-Rust crates when the target set is wider than the host. ## Verification - `cargo build --release` succeeds for the host - `Cargo.lock` is updated if dependencies changed - New features are documented and not silently defaulted on - Cross targets are only claimed when the link succeeded - MSRV and publish rules from `rust-development` still hold
Wersje
W bazie nie ma innych skilli o nazwie rust-release-and-cross-compile.
Migawka bazy z 13.11.2026 · wersja paczki c6eddf565d0d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 100rust-app-architecture
Układa strukturę aplikacji Rust dla Cybercore: podział binarki i biblioteki, warstwy CLI, konfiguracji i domeny oraz granice crate'ów. - 100rs-release
Przygotowuje kod Rust do wydania: konfigurację lintów, bramki CI, MSRV, wersjonowanie, audyt zależności, obrazy Docker i profile wydania. - 100cargo
Wspiera pracę z menedżerem pakietów Rust Cargo: przestrzenie robocze, zależności, flagi funkcji, kompilacja krzyżowa i profile wydań, przy budowaniu, testowaniu i pakowaniu projektów. - 100xmake-rust
Buduje projekty Rust w xmake: pliki binarne i biblioteki, integrację z Cargo, interop z C przez cxxbridge oraz kompilację krzyżową. - 100rust-build-times
Przyspiesza kompilację Rust: cargo-timings, sccache, backend Cranelift, podział workspace, wybór LTO i linker mold. - 100rust-cargo-build
Konfiguruje i diagnozuje Cargo dla pakietów i workspace: manifesty, profile, skrypty build, cache, kompilację krzyżową i publikację.