Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

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.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

  1. Scope
  2. Safety Rules (Non-Negotiable)
  3. Release Profile
  4. Features
  5. Lockfile
  6. Cross-Compilation
  7. Verification
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 384 słów
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

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

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ę.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.