1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # WasmHub
//!
//! A library for downloading and managing WebAssembly runtimes for multiple languages.
//!
//! ## Features
//!
//! - Download and cache WASM runtimes for Node.js, Python, Ruby, PHP, Go, and Rust
//! - Automatic integrity verification using SHA256
//! - Local caching to avoid redundant downloads
//! - Support for multiple runtime versions
//! - Multiple CDN sources with automatic fallback
//!
//! ## Example
//!
//! ```no_run
//! use wasmhub::{RuntimeLoader, Language};
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let loader = RuntimeLoader::new()?;
//!
//! // Download a runtime (or get from cache)
//! let runtime = loader.get_runtime(Language::Python, "3.11.7").await?;
//! println!("Runtime path: {:?}", runtime.path);
//!
//! // List available runtimes
//! let manifest = loader.list_available().await?;
//! for (lang, info) in &manifest.languages {
//! println!("{}: latest = {}", lang, info.latest);
//! }
//!
//! // Get latest version for a language
//! let latest = loader.get_latest_version(Language::Python).await?;
//! println!("Latest Python: {}", latest);
//! # Ok(())
//! # }
//! ```
pub use CacheManager;
pub use ;
pub use ;
pub use ;
pub use ;