|
1 | | -// ============================================================================== |
2 | | -// Universal Sidecar Vendor - Rust Edition |
3 | | -// |
4 | | -// This program automates downloading and organizing full distributions of |
5 | | -// various sidecar runtimes (like Node.js) for a Tauri application. It is a Rust |
6 | | -// rewrite of the original shell script, enhanced with modern features. |
7 | | -// |
8 | | -// Key Features: |
9 | | -// - Asynchronous, Concurrent Downloads: Leverages Tokio to download multiple |
10 | | -// binaries in parallel, significantly speeding up the process. |
11 | | -// - Intelligent Caching: Maintains a `Cache.json` file to track downloaded |
12 | | -// versions. It automatically detects if a newer patch version is available |
13 | | -// for a requested major version and updates the binary. |
14 | | -// - Git LFS Management: Automatically creates or updates the `.gitattributes` |
15 | | -// file to ensure large binaries are tracked by Git LFS. |
16 | | -// - Extensible Design: Easily configured to support new sidecars, versions, |
17 | | -// and platforms. |
18 | | -// - Robust Error Handling: Uses `anyhow` for clear and concise error |
19 | | -// reporting. |
20 | | -// - Preserved File Structure: The final output directory structure remains |
21 | | -// identical to the original script (`Architecture/SidecarName/Version`). |
22 | | -// |
23 | | -// ============================================================================== |
| 1 | +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] |
| 2 | +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] |
| 3 | + |
| 4 | +//! ============================================================================== |
| 5 | +//! Universal Sidecar Vendor - Rust Edition |
| 6 | +//! |
| 7 | +//! This program automates downloading and organizing full distributions of |
| 8 | +//! various sidecar runtimes (like Node.js) for a Tauri application. It is a Rust |
| 9 | +//! rewrite of the original shell script, enhanced with modern features. |
| 10 | +//! |
| 11 | +//! Key Features: |
| 12 | +//! - Asynchronous, Concurrent Downloads: Leverages Tokio to download multiple |
| 13 | +//! binaries in parallel, significantly speeding up the process. |
| 14 | +//! - Intelligent Caching: Maintains a `Cache.json` file to track downloaded |
| 15 | +//! versions. It automatically detects if a newer patch version is available |
| 16 | +//! for a requested major version and updates the binary. |
| 17 | +//! - Git LFS Management: Automatically creates or updates the `.gitattributes` |
| 18 | +//! file to ensure large binaries are tracked by Git LFS. |
| 19 | +//! - Extensible Design: Easily configured to support new sidecars, versions, |
| 20 | +//! and platforms. |
| 21 | +//! - Robust Error Handling: Uses `anyhow` for clear and concise error |
| 22 | +//! reporting. |
| 23 | +//! - Preserved File Structure: The final output directory structure remains |
| 24 | +//! identical to the original script (`Architecture/SidecarName/Version`). |
| 25 | +//! |
| 26 | +//! ============================================================================== |
24 | 27 |
|
25 | 28 | // --- Type Definitions and Structs --- |
26 | 29 |
|
|
0 commit comments