mirror of
https://github.com/veeso/termscp.git
synced 2026-07-04 13:42:42 +02:00
vergen-git2 reads git metadata at build time, but the crates.io source tarball ships no .git, so the published 1.1.0 fails on `cargo install`. crates.io versions are immutable (no overwrite) and Chocolatey's moderation queue blocks a fast re-push, so a clean 1.1.1 without vergen is the only fix.
17 lines
452 B
Rust
17 lines
452 B
Rust
use cfg_aliases::cfg_aliases;
|
|
|
|
fn main() {
|
|
// Setup cfg aliases
|
|
cfg_aliases! {
|
|
// Platforms
|
|
macos: { target_os = "macos" },
|
|
linux: { target_os = "linux" },
|
|
posix: { target_family = "unix" },
|
|
win: { target_family = "windows" },
|
|
// exclusive features
|
|
smb: { feature = "smb" },
|
|
smb_unix: { all(unix, feature = "smb") },
|
|
smb_windows: { all(windows, feature = "smb") }
|
|
}
|
|
}
|