├── radon.png ├── src ├── commands │ ├── mod.rs │ ├── list.rs │ ├── remove.rs │ ├── search.rs │ ├── convert.rs │ ├── upgrade.rs │ └── install.rs ├── cli.rs ├── main.rs └── utils.rs ├── radon.json ├── CONTRIBUTING.md ├── Cargo.toml ├── .gitignore ├── README.md ├── LICENSE └── Cargo.lock /radon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tungstencube-git/radon/HEAD/radon.png -------------------------------------------------------------------------------- /src/commands/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod install; 2 | pub mod remove; 3 | pub mod search; 4 | pub mod list; 5 | pub mod upgrade; 6 | pub mod convert; 7 | -------------------------------------------------------------------------------- /radon.json: -------------------------------------------------------------------------------- 1 | { 2 | "build_system": "cargo", 3 | "dependencies": [ 4 | "ansi_term", 5 | "clap", 6 | "comfy-table", 7 | "reqwest", 8 | "serde", 9 | "serde_json", 10 | "serde_yaml", 11 | "sha2", 12 | "tempfile", 13 | "toml", 14 | "urlencoding" 15 | ], 16 | "name": "radon" 17 | } 18 | -------------------------------------------------------------------------------- /src/commands/list.rs: -------------------------------------------------------------------------------- 1 | use crate::utils::get_installed_packages; 2 | use ansi_term::Colour::Green; 3 | 4 | pub fn list() { 5 | println!("{}", Green.paint("Installed packages:")); 6 | let packages = get_installed_packages(); 7 | if packages.is_empty() { 8 | println!("No packages installed"); 9 | } else { 10 | for pkg in packages { 11 | println!("- {} ({})", pkg.name, pkg.build_system); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## CONTRIBUTING.md 2 | 3 | the guidelines for contributing are not very strict since i dont really care but none the less :> 4 | 5 | # to contribute to the project 6 | 7 | - all code must be "somewhat" well written 8 | - the pull request should be "somewhat" concise and well written 9 | - rust c shell nim zig preferred 10 | 11 | # To make your project compatiable with radon 12 | 13 | - must use a compatiable build system preferably radon.json cargo or make 14 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "radon" 3 | version = "3.1.0" 4 | edition = "2024" 5 | description = "package manager for git" 6 | repository = "https://github.com/tungstencube-git/radon" 7 | 8 | [dependencies] 9 | clap = { version = "4.5.1", features = ["derive"] } 10 | ansi_term = "0.12.1" 11 | toml = "0.8.12" 12 | reqwest = { version = "0.12", features = ["blocking", "json", "rustls-tls"] } 13 | serde_json = "1.0.114" 14 | serde_yaml = "0.9" 15 | tempfile = "3.3" 16 | urlencoding = "2.1.3" 17 | sha2 = "0.10.8" 18 | comfy-table = "7.1.0" 19 | serde = { version = "1.0", features = ["derive"] } 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | debug/ 4 | target/ 5 | 6 | # These are backup files generated by rustfmt 7 | **/*.rs.bk 8 | 9 | # MSVC Windows builds of rustc generate these, which store debugging information 10 | *.pdb 11 | 12 | # RustRover 13 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can 14 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore 15 | # and can be added to the global gitignore or merged into this file. For a more nuclear 16 | # option (not recommended) you can uncomment the following to ignore the entire idea folder. 17 | #.idea/ -------------------------------------------------------------------------------- /src/cli.rs: -------------------------------------------------------------------------------- 1 | use clap::Parser; 2 | use std::path::PathBuf; 3 | 4 | #[derive(Parser)] 5 | #[command(version, about, long_about = None)] 6 | pub struct Cli { 7 | #[command(subcommand)] 8 | pub command: Commands, 9 | } 10 | 11 | #[derive(Debug, clap::Subcommand)] 12 | pub enum Commands { 13 | Install { 14 | packages: Vec, 15 | #[arg(long)] 16 | gitlab: bool, 17 | #[arg(long)] 18 | codeberg: bool, 19 | #[arg(long)] 20 | local: bool, 21 | #[arg(short, long)] 22 | branch: Option, 23 | #[arg(long)] 24 | patches: Option, 25 | #[arg(long)] 26 | flags: Vec, 27 | #[arg(short, long)] 28 | yes: bool, 29 | }, 30 | Remove { 31 | package: String, 32 | }, 33 | Search { 34 | query: String, 35 | }, 36 | List, 37 | Upgrade { 38 | package: Option, 39 | #[arg(short, long)] 40 | branch: Option, 41 | #[arg(short, long)] 42 | yes: bool, 43 | }, 44 | Convert { 45 | #[arg(short, long)] 46 | file: Option, 47 | }, 48 | } 49 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | mod cli; 2 | mod utils; 3 | mod commands; 4 | 5 | use clap::Parser; 6 | use cli::{Cli, Commands}; 7 | use commands::{install, remove, search, list, upgrade}; 8 | use commands::convert::convert; 9 | use std::path::Path; 10 | 11 | fn main() { 12 | utils::setup_radon_dirs(); 13 | let cli = Cli::parse(); 14 | match cli.command { 15 | Commands::Install { packages, gitlab, codeberg, local, branch, patches, flags, yes } => { 16 | install::install( 17 | &packages, 18 | gitlab, 19 | codeberg, 20 | local, 21 | branch.as_deref(), 22 | patches.as_deref(), 23 | &flags, 24 | yes 25 | ); 26 | }, 27 | Commands::Remove { package } => remove::remove(&package), 28 | Commands::Search { query } => search::search(&query), 29 | Commands::List => list::list(), 30 | Commands::Upgrade { package, branch, yes } => 31 | upgrade::upgrade(package.as_deref(), branch.as_deref(), yes), 32 | Commands::Convert { file } => convert(file.as_deref().map(Path::new)), 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/commands/remove.rs: -------------------------------------------------------------------------------- 1 | use std::env; 2 | use std::fs; 3 | use std::path::Path; 4 | use std::process::Command; 5 | use ansi_term::Colour::{Green, Red, Yellow}; 6 | use crate::utils; 7 | 8 | fn get_local_bin_path() -> std::path::PathBuf { 9 | env::var("HOME") 10 | .map(|home| std::path::PathBuf::from(home).join(".local/bin")) 11 | .expect("HOME environment variable not set") 12 | } 13 | 14 | pub fn remove(package: &str) { 15 | let privilege_cmd = utils::get_privilege_command(); 16 | let mut installed = utils::get_installed_packages(); 17 | 18 | if let Some(index) = installed.iter().position(|p| p.name == package) { 19 | let pkg = installed.remove(index); 20 | let bin_path = Path::new(&pkg.location); 21 | 22 | if bin_path.exists() { 23 | if pkg.location.starts_with("/usr") { 24 | Command::new(&privilege_cmd) 25 | .arg("rm") 26 | .arg("-f") 27 | .arg(bin_path) 28 | .status() 29 | .expect("Failed to remove system binary"); 30 | } else { 31 | fs::remove_file(bin_path) 32 | .unwrap_or_else(|_| panic!("Failed to remove local binary: {:?}", bin_path)); 33 | } 34 | println!("Removed: {}", bin_path.display()); 35 | } else { 36 | println!("{}: Binary not found at {}", Yellow.paint("Warning"), bin_path.display()); 37 | } 38 | 39 | let temp_path = Path::new("/tmp").join("radon-installed.yaml"); 40 | fs::write(&temp_path, serde_yaml::to_string(&installed).unwrap()).unwrap(); 41 | 42 | Command::new(&privilege_cmd) 43 | .arg("mv") 44 | .arg(&temp_path) 45 | .arg("/etc/radon/installed.yaml") 46 | .status() 47 | .expect("Failed to update package list"); 48 | 49 | println!("{}", Green.paint("~> Removed successfully")); 50 | } else { 51 | eprintln!("{}: Package '{}' not found", Red.paint("Error"), package); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /src/commands/search.rs: -------------------------------------------------------------------------------- 1 | use reqwest::blocking::Client; 2 | use reqwest::header; 3 | use serde_json::Value; 4 | use comfy_table::{Table, ContentArrangement}; 5 | use comfy_table::presets::UTF8_FULL; 6 | 7 | pub fn search(query: &str) { 8 | let url = format!("https://api.github.com/search/repositories?q={}", 9 | urlencoding::encode(query)); 10 | 11 | let client = Client::new(); 12 | let response = client.get(&url) 13 | .header(header::USER_AGENT, "radon-pkg-manager") 14 | .send(); 15 | 16 | let resp = match response { 17 | Ok(resp) => resp, 18 | Err(e) => { 19 | eprintln!("Failed to access GitHub API: {}", e); 20 | return; 21 | } 22 | }; 23 | 24 | if !resp.status().is_success() { 25 | eprintln!("GitHub API error: {} - {}", 26 | resp.status(), 27 | resp.text().unwrap_or_default()); 28 | return; 29 | } 30 | 31 | let json: Value = match resp.json() { 32 | Ok(v) => v, 33 | Err(e) => { 34 | eprintln!("Failed to parse GitHub response: {}", e); 35 | return; 36 | } 37 | }; 38 | 39 | if let Some(items) = json["items"].as_array() { 40 | let mut table = Table::new(); 41 | table 42 | .load_preset(UTF8_FULL) 43 | .set_content_arrangement(ContentArrangement::Dynamic) 44 | .set_header(vec!["Package", "Stars", "Forks", "Source"]); 45 | 46 | for item in items.iter().take(10) { 47 | if let Some(name) = item["full_name"].as_str() { 48 | let stars = item["stargazers_count"].as_u64().unwrap_or(0); 49 | let forks = item["forks_count"].as_u64().unwrap_or(0); 50 | 51 | table.add_row(vec![ 52 | name, 53 | &stars.to_string(), 54 | &forks.to_string(), 55 | "GitHub" 56 | ]); 57 | } 58 | } 59 | 60 | println!("{}", table); 61 | } else { 62 | eprintln!("Unexpected GitHub API response format"); 63 | if let Some(message) = json["message"].as_str() { 64 | eprintln!("GitHub says: {}", message); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/commands/convert.rs: -------------------------------------------------------------------------------- 1 | use std::fs; 2 | use std::path::Path; 3 | use std::io::{self, Write}; 4 | use toml::Value; 5 | use serde_json::{Map, Value as JsonValue}; 6 | 7 | pub fn convert(file: Option<&Path>) { 8 | let path = match file { 9 | Some(p) => p.to_path_buf(), 10 | None => { 11 | let default = Path::new("Cargo.toml"); 12 | if !default.exists() { 13 | println!("Cargo.toml not found in current directory"); 14 | print!("Enter path to Cargo.toml: "); 15 | io::stdout().flush().unwrap(); 16 | let mut input = String::new(); 17 | io::stdin().read_line(&mut input).unwrap(); 18 | Path::new(input.trim()).to_path_buf() 19 | } else { 20 | default.to_path_buf() 21 | } 22 | } 23 | }; 24 | 25 | if !path.exists() { 26 | eprintln!("Error: File not found - {}", path.display()); 27 | return; 28 | } 29 | 30 | if path.file_name().and_then(|f| f.to_str()) != Some("Cargo.toml") { 31 | eprintln!("Error: Only Cargo.toml files are supported"); 32 | return; 33 | } 34 | 35 | let cargo_toml = fs::read_to_string(&path).expect("Failed to read file"); 36 | let value: Value = toml::from_str(&cargo_toml).expect("Invalid TOML format"); 37 | 38 | let mut radon_json = Map::new(); 39 | radon_json.insert("build_system".to_string(), JsonValue::String("cargo".to_string())); 40 | 41 | if let Some(package) = value.get("package") { 42 | if let Some(name) = package.get("name").and_then(|n| n.as_str()) { 43 | radon_json.insert("name".to_string(), JsonValue::String(name.to_string())); 44 | } 45 | } 46 | 47 | if let Some(dependencies) = value.get("dependencies") { 48 | let deps: Vec = dependencies 49 | .as_table() 50 | .unwrap() 51 | .keys() 52 | .map(|k| JsonValue::String(k.clone())) 53 | .collect(); 54 | radon_json.insert("dependencies".to_string(), JsonValue::Array(deps)); 55 | } 56 | 57 | let output_path = path.with_file_name("radon.json"); 58 | let output_file = fs::File::create(&output_path).expect("Failed to create radon.json"); 59 | serde_json::to_writer_pretty(output_file, &radon_json).expect("Failed to write JSON"); 60 | println!("Created radon.json at {}", output_path.display()); 61 | } 62 | 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **THIS REPO HAS BEEN ABANDONED AND** ***WILL*** **BE REPLACED WITH** *YAP (yet another paru* 2 | 3 | # radon 4 | - **r**eally **a**wesome meta package manager f**o**r **n**ix systems (couldnt afford the d) 5 | - formerly wolfram/scheele 6 | - current version 3.0 - [puffy](https://en.wikipedia.org/wiki/OpenBSD#Songs_and_artwork) 7 | 8 | # Features 9 | 10 | - gitlab github and codeberg support 11 | - fast awesome building for cargo make and cmake 12 | - written in rust 13 | - search option wow!!! 14 | - better than old fart [gpm](https://github.com/aerys/gpm) (booo!) 15 | - really cool in general 16 | - did i menntion that its fully written in rust? 17 | 18 | # Overall Project Goal(s) 19 | 20 | - getting in offical repos 21 | - allat for now 22 | 23 | # Next Point Release Goals 24 | 25 | - pkgbuild and ebuild support 26 | - improve conversion 27 | - honestly i dont have much ideas 28 | - maybe windows support??? 29 | 30 | # Installation 31 | 32 | - `sudo pacman -S cargo git patch` 33 | - or 34 | - `doas apk add cargo git patch` 35 | - or 36 | - `pkg install cargo git patch` 37 | - and 38 | - `git clone https://github.com/tungstencube-git/radon` 39 | - `cd radon` 40 | - `cargo build --release` 41 | - autotools make meson ninja nimble nim stack cmake optional but you most likely will need them 42 | 43 | # Commands 44 | 45 | | Command | Description | 46 | | --------------------------------- | ---------------------------------------------------------------------------------------------------------- | 47 | | `radon` | alias to `radon help`. | 48 | | `radon install ` | self explanatory. | 49 | | `radon remove` | abolishes package from /usr/local/bin or ~/.local/bin. | 50 | | `radon search` | searches for packages (only github) | 51 | | `radon help ` | help. | 52 | | `radon list` | lists installed packages 53 | | `radon upgrade` | upgrades installed packages 54 | | `radon convert` | converts whatever build file to radon.json (currently only cargo) 55 | 56 | # FAQ 57 | 58 | - why would i use this over regular building from source - makes the building process easier and uses less bandwidth 59 | - why is the install function not split into multiple files - lazy 60 | - how does it function - clones repository checks for build system builds clones to /usr/local/bin or ~/.local/bin 61 | - what wm are you using (yes ik my rice is very cool) - i3 62 | - how does this compare to ubi - ubi installs binaries (like choccy) this builds from source 63 | - how does this compare to pkgbuild or ebuild - both pkgbuild and ebuild need their own build file, radon does not 64 | 65 | # Misc 66 | 67 | - [CONTRIBUTING.md](CONTRIBUTING.md) 68 | - I am not responsible for bricked devices, dead HDDs, or thermonuclear war. 69 | -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- 1 | use std::fs; 2 | use std::fs::File; 3 | use std::path::Path; 4 | use std::process::{Command, Stdio}; 5 | use ansi_term::Colour::Red; 6 | use serde::{Serialize, Deserialize}; 7 | 8 | #[derive(Serialize, Deserialize, Clone)] 9 | pub struct InstalledPackage { 10 | pub name: String, 11 | pub source: Option, 12 | pub build_system: String, 13 | pub location: String, 14 | pub build_file: Option, 15 | pub hash: Option, 16 | pub version: Option, 17 | } 18 | 19 | pub fn check_deps(deps: &[String]) { 20 | let missing: Vec<&str> = deps 21 | .iter() 22 | .filter(|d| { 23 | !Command::new("sh") 24 | .arg("-c") 25 | .arg(format!("command -v {}", d)) 26 | .stdout(Stdio::null()) 27 | .stderr(Stdio::null()) 28 | .status() 29 | .map(|s| s.success()) 30 | .unwrap_or(false) 31 | }) 32 | .map(|d| d.as_str()) 33 | .collect(); 34 | 35 | if !missing.is_empty() { 36 | eprintln!("{}", Red.paint("MISSING DEPENDENCIES:")); 37 | for d in &missing { 38 | println!("- {}", d); 39 | } 40 | let pm = detect_package_manager(); 41 | println!("\nRUN:\nsudo {} {}", pm, missing.join(" ")); 42 | std::process::exit(1); 43 | } 44 | } 45 | 46 | pub fn detect_package_manager() -> &'static str { 47 | if Path::new("/etc/apt/sources.list").exists() { 48 | "apt install" 49 | } else if Path::new("/etc/pacman.conf").exists() { 50 | "pacman -S" 51 | } else if Path::new("/etc/xbps.d").exists() { 52 | "xbps-install" 53 | } else if Path::new("/etc/dnf/dnf.conf").exists() { 54 | "dnf install" 55 | } else if Path::new("/etc/zypp/zypp.conf").exists() { 56 | "zypper install" 57 | } else { 58 | "your-package-manager install" 59 | } 60 | } 61 | 62 | pub fn get_privilege_command() -> String { 63 | let doas_available = Command::new("sh") 64 | .arg("-c") 65 | .arg("command -v doas") 66 | .stdout(Stdio::null()) 67 | .stderr(Stdio::null()) 68 | .status() 69 | .map(|s| s.success()) 70 | .unwrap_or(false); 71 | 72 | if doas_available { 73 | "doas".into() 74 | } else { 75 | "sudo".into() 76 | } 77 | } 78 | 79 | pub fn setup_radon_dirs() { 80 | let etc_radon = Path::new("/etc/radon"); 81 | let var_lib_radon = Path::new("/var/lib/radon"); 82 | let buildfiles = var_lib_radon.join("buildfiles"); 83 | 84 | if !etc_radon.exists() { 85 | let status = Command::new(&get_privilege_command()) 86 | .arg("mkdir") 87 | .arg("-p") 88 | .arg(etc_radon) 89 | .status(); 90 | if status.is_ok() && status.unwrap().success() { 91 | let _ = Command::new(&get_privilege_command()) 92 | .arg("touch") 93 | .arg(etc_radon.join("installed.yaml")) 94 | .status(); 95 | } 96 | } 97 | 98 | if !var_lib_radon.exists() { 99 | let _ = Command::new(&get_privilege_command()) 100 | .arg("mkdir") 101 | .arg("-p") 102 | .arg(&buildfiles) 103 | .status(); 104 | } else if !buildfiles.exists() { 105 | let _ = Command::new(&get_privilege_command()) 106 | .arg("mkdir") 107 | .arg("-p") 108 | .arg(&buildfiles) 109 | .status(); 110 | } 111 | } 112 | 113 | pub fn get_installed_packages() -> Vec { 114 | let path = Path::new("/etc/radon/installed.yaml"); 115 | if path.exists() { 116 | let file = File::open(path).expect("Failed to open installed.yaml"); 117 | serde_yaml::from_reader(file).unwrap_or_else(|_| vec![]) 118 | } else { 119 | Vec::new() 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/commands/upgrade.rs: -------------------------------------------------------------------------------- 1 | use crate::commands::install::install_single; 2 | use crate::utils; 3 | use ansi_term::Colour::{Green, Red, Yellow}; 4 | use sha2::{Sha256, Digest}; 5 | use std::fs; 6 | use std::io::{self, Write}; 7 | use std::path::Path; 8 | use std::process::Command; 9 | 10 | pub fn upgrade(package: Option<&str>, branch: Option<&str>, yes: bool) { 11 | let packages: Vec = if let Some(pkg) = package { 12 | vec![pkg.to_string()] 13 | } else { 14 | utils::get_installed_packages() 15 | .iter() 16 | .map(|p| p.name.clone()) 17 | .collect() 18 | }; 19 | 20 | if packages.is_empty() { 21 | println!("No packages to upgrade"); 22 | return; 23 | } 24 | 25 | if package.is_none() { 26 | println!( 27 | "{}", 28 | Yellow.paint("WARNING: You are upgrading ALL packages. This may cause system instability!") 29 | ); 30 | if !yes { 31 | print!("Continue? [y/N] "); 32 | io::stdout().flush().unwrap(); 33 | let mut input = String::new(); 34 | io::stdin().read_line(&mut input).unwrap(); 35 | if !input.trim().eq_ignore_ascii_case("y") { 36 | println!("{}", Yellow.paint("Upgrade cancelled")); 37 | return; 38 | } 39 | } 40 | } else { 41 | println!( 42 | "{}", 43 | Yellow.paint(&format!("WARNING: You are upgrading package: {}", package.unwrap())) 44 | ); 45 | if !yes { 46 | print!("Continue? [y/N] "); 47 | io::stdout().flush().unwrap(); 48 | let mut input = String::new(); 49 | io::stdin().read_line(&mut input).unwrap(); 50 | if !input.trim().eq_ignore_ascii_case("y") { 51 | println!("{}", Yellow.paint("Upgrade cancelled")); 52 | return; 53 | } 54 | } 55 | } 56 | 57 | for pkg in packages { 58 | println!("Checking {} for updates...", pkg); 59 | let installed = utils::get_installed_packages(); 60 | let pkg_index = match installed.iter().position(|p| p.name == pkg) { 61 | Some(idx) => idx, 62 | None => { 63 | println!("{}: Package not installed", Yellow.paint("Warning")); 64 | continue; 65 | } 66 | }; 67 | 68 | let buildfile_dir = Path::new("/var/lib/radon/buildfiles").join(&pkg); 69 | 70 | if !buildfile_dir.exists() { 71 | println!("{}: No build files found for {}", Yellow.paint("Warning"), pkg); 72 | continue; 73 | } 74 | 75 | let metadata_path = buildfile_dir.join("metadata.toml"); 76 | if !metadata_path.exists() { 77 | println!("{}: No metadata found for {}", Yellow.paint("Warning"), pkg); 78 | continue; 79 | } 80 | 81 | let metadata = fs::read_to_string(&metadata_path).unwrap_or_default(); 82 | 83 | let stored_hash = metadata.lines() 84 | .find(|l| l.starts_with("hash = ")) 85 | .and_then(|l| l.split('"').nth(1)) 86 | .unwrap_or(""); 87 | 88 | let stored_version = metadata.lines() 89 | .find(|l| l.starts_with("version = ")) 90 | .and_then(|l| l.split('"').nth(1)) 91 | .unwrap_or(""); 92 | 93 | let stored_branch = metadata.lines() 94 | .find(|l| l.starts_with("branch = ")) 95 | .and_then(|l| l.split('"').nth(1)) 96 | .map(|s| s.to_string()); 97 | 98 | let tmp_build = Path::new("/tmp/radon/upgrade").join(&pkg); 99 | if tmp_build.exists() { 100 | fs::remove_dir_all(&tmp_build).unwrap_or_default(); 101 | } 102 | fs::create_dir_all(&tmp_build).unwrap_or_default(); 103 | 104 | let repo_url = metadata.lines() 105 | .find(|l| l.starts_with("repo_url = ")) 106 | .and_then(|l| l.split('"').nth(1)) 107 | .unwrap_or(""); 108 | 109 | if repo_url.is_empty() { 110 | println!("{}: No repo URL for {}", Red.paint("Error"), pkg); 111 | continue; 112 | } 113 | 114 | let mut branch_to_use = branch.map(|s| s.to_string()).or(stored_branch); 115 | 116 | if branch_to_use.is_none() { 117 | println!("{}", Yellow.paint("No branch specified in metadata or command")); 118 | let branches = get_remote_branches(repo_url); 119 | if branches.is_empty() { 120 | println!("{}: Failed to get branches for {}", Red.paint("Error"), pkg); 121 | continue; 122 | } 123 | 124 | println!("Available branches:"); 125 | for (i, b) in branches.iter().enumerate() { 126 | println!("{}. {}", i + 1, b); 127 | } 128 | 129 | print!("Select branch to upgrade (number): "); 130 | io::stdout().flush().unwrap(); 131 | let mut input = String::new(); 132 | io::stdin().read_line(&mut input).unwrap(); 133 | 134 | if let Ok(num) = input.trim().parse::() { 135 | if num > 0 && num <= branches.len() { 136 | branch_to_use = Some(branches[num - 1].clone()); 137 | } else { 138 | println!("{}: Invalid selection", Red.paint("Error")); 139 | continue; 140 | } 141 | } else { 142 | println!("{}: Invalid input", Red.paint("Error")); 143 | continue; 144 | } 145 | } 146 | 147 | let status = Command::new("git") 148 | .arg("clone") 149 | .arg("--depth=1") 150 | .arg("--branch") 151 | .arg(branch_to_use.as_ref().unwrap()) 152 | .arg(repo_url) 153 | .arg(&tmp_build) 154 | .status(); 155 | 156 | if status.is_err() || !status.unwrap().success() { 157 | println!("{}: Failed to clone {}", Red.paint("Error"), pkg); 158 | continue; 159 | } 160 | 161 | let build_file_name = metadata.lines() 162 | .find(|l| l.starts_with("build_file = ")) 163 | .and_then(|l| l.split('"').nth(1)) 164 | .unwrap_or(""); 165 | 166 | if build_file_name.is_empty() { 167 | println!("{}: No build file for {}", Red.paint("Error"), pkg); 168 | continue; 169 | } 170 | 171 | let build_file_path = tmp_build.join(build_file_name); 172 | if !build_file_path.exists() { 173 | println!("{}: Build file not found", Red.paint("Error")); 174 | continue; 175 | } 176 | 177 | let content = fs::read(&build_file_path).unwrap_or_default(); 178 | let mut hasher = Sha256::new(); 179 | hasher.update(&content); 180 | let new_hash = format!("{:x}", hasher.finalize()); 181 | 182 | let new_version = if build_file_name == "Cargo.toml" { 183 | let cargo_toml = fs::read_to_string(&build_file_path).unwrap_or_default(); 184 | cargo_toml.lines() 185 | .find(|l| l.starts_with("version = ")) 186 | .and_then(|l| l.split('"').nth(1)) 187 | .unwrap_or("") 188 | .to_string() 189 | } else { 190 | "".to_string() 191 | }; 192 | 193 | let changed = new_hash != stored_hash || new_version != stored_version; 194 | 195 | if !changed { 196 | println!("{} is up to date", pkg); 197 | continue; 198 | } 199 | 200 | println!("\n{} update available for {}", Green.paint("NEW"), pkg); 201 | println!("Old version: {}", stored_version); 202 | println!("New version: {}", new_version); 203 | println!("Old hash: {}", stored_hash); 204 | println!("New hash: {}\n", new_hash); 205 | 206 | if !yes { 207 | print!("Show diff? [y/N] "); 208 | io::stdout().flush().unwrap(); 209 | let mut input = String::new(); 210 | io::stdin().read_line(&mut input).unwrap(); 211 | 212 | if input.trim().eq_ignore_ascii_case("y") { 213 | let _ = Command::new("diff") 214 | .arg("-u") 215 | .arg(buildfile_dir.join(build_file_name)) 216 | .arg(&build_file_path) 217 | .status(); 218 | } 219 | 220 | print!("\nUpgrade {}? [Y/n] ", pkg); 221 | io::stdout().flush().unwrap(); 222 | let mut input = String::new(); 223 | io::stdin().read_line(&mut input).unwrap(); 224 | 225 | if input.trim().eq_ignore_ascii_case("n") { 226 | println!("Skipping {}", pkg); 227 | continue; 228 | } 229 | } 230 | 231 | println!("Reinstalling {}...", pkg); 232 | install_single(&pkg, false, false, false, branch_to_use.as_deref(), None, &[], yes); 233 | 234 | let _ = Command::new(&utils::get_privilege_command()) 235 | .arg("cp") 236 | .arg("-r") 237 | .arg(&tmp_build) 238 | .arg(&buildfile_dir) 239 | .status(); 240 | } 241 | } 242 | 243 | fn get_remote_branches(repo_url: &str) -> Vec { 244 | let output = match Command::new("git") 245 | .arg("ls-remote") 246 | .arg("--heads") 247 | .arg(repo_url) 248 | .output() { 249 | Ok(output) => output, 250 | Err(_) => return Vec::new(), 251 | }; 252 | 253 | if !output.status.success() { 254 | return Vec::new(); 255 | } 256 | 257 | let output_str = String::from_utf8_lossy(&output.stdout); 258 | output_str 259 | .lines() 260 | .filter_map(|line| { 261 | line.split_whitespace().nth(1).and_then(|r| { 262 | r.strip_prefix("refs/heads/").map(|s| s.to_string()) 263 | }) 264 | }) 265 | .collect() 266 | } 267 | -------------------------------------------------------------------------------- /src/commands/install.rs: -------------------------------------------------------------------------------- 1 | use std::fs; 2 | use std::env; 3 | use std::path::{Path, PathBuf}; 4 | use std::process::{Command, Stdio}; 5 | use std::io::{self, Write}; 6 | use std::time::Instant; 7 | use ansi_term::Colour::{Green, Red, Yellow}; 8 | use toml::{Value, map::Map}; 9 | use sha2::{Sha256, Digest}; 10 | use toml::Table; 11 | use crate::utils; 12 | 13 | pub fn install( 14 | packages: &[String], 15 | gitlab: bool, 16 | codeberg: bool, 17 | local: bool, 18 | branch: Option<&str>, 19 | patches: Option<&Path>, 20 | flags: &[String], 21 | yes: bool, 22 | ) { 23 | for package in packages { 24 | install_single(package, gitlab, codeberg, local, branch, patches, flags, yes); 25 | } 26 | } 27 | 28 | pub fn install_single( 29 | package: &str, 30 | gitlab: bool, 31 | codeberg: bool, 32 | local: bool, 33 | branch: Option<&str>, 34 | patches: Option<&Path>, 35 | flags: &[String], 36 | yes: bool, 37 | ) { 38 | let start = Instant::now(); 39 | let tmp = Path::new("/tmp/radon"); 40 | let builds = tmp.join("builds"); 41 | let etc = Path::new("/etc/radon"); 42 | 43 | for dir in [tmp, &builds] { 44 | if !dir.exists() { 45 | fs::create_dir_all(dir).expect("Failed to create temp directory"); 46 | } 47 | } 48 | 49 | let source = if codeberg { 50 | Some("codeberg") 51 | } else if gitlab { 52 | Some("gitlab") 53 | } else { 54 | None 55 | }; 56 | 57 | let (source_str, domain) = match source { 58 | Some("gitlab") => ("gitlab", "gitlab.com"), 59 | Some("codeberg") => ("codeberg", "codeberg.org"), 60 | _ => ("github", "github.com") 61 | }; 62 | 63 | let repo = package.split('/').last().unwrap(); 64 | let build_dir = builds.join(repo); 65 | 66 | if build_dir.exists() { 67 | fs::remove_dir_all(&build_dir).expect("Failed to clean previous build"); 68 | } 69 | 70 | println!("\x1b[1m~> Cloning repository: {}\x1b[0m", package); 71 | let mut git_clone = Command::new("git"); 72 | git_clone 73 | .arg("clone") 74 | .arg("--depth=1") 75 | .arg(format!("https://{}/{}", domain, package)); 76 | 77 | if let Some(b) = branch { 78 | git_clone.arg("--branch").arg(b); 79 | } 80 | 81 | let status = git_clone 82 | .arg(&build_dir) 83 | .stdout(Stdio::null()) 84 | .status() 85 | .expect("Git command failed"); 86 | 87 | if !status.success() { 88 | eprintln!("{}", Red.paint("Failed to clone repository")); 89 | return; 90 | } 91 | 92 | if let Some(patches_dir) = patches { 93 | apply_patches(&build_dir, patches_dir); 94 | } 95 | 96 | println!("\x1b[1m~> Searching for build file\x1b[0m"); 97 | let makefiles = ["Makefile", "makefile", "GNUMakefile"]; 98 | let has_makefile = makefiles.iter().any(|f| build_dir.join(f).exists()); 99 | 100 | let radon_json_path = build_dir.join("radon.json"); 101 | let (build_system, mut deps, custom_flags) = if radon_json_path.exists() { 102 | parse_radon_json(&radon_json_path) 103 | } else if has_makefile { 104 | ("make".to_string(), parse_make_deps(&build_dir, &makefiles), vec![]) 105 | } else if build_dir.join("configure").exists() { 106 | ("autotools".to_string(), parse_autotools_deps(&build_dir), vec![]) 107 | } else if build_dir.join("Cargo.toml").exists() { 108 | ("cargo".to_string(), parse_cargo_deps(&build_dir), vec![]) 109 | } else if build_dir.join("CMakeLists.txt").exists() { 110 | ("cmake".to_string(), vec!["cmake".to_string()], vec![]) 111 | } else if build_dir.join("meson.build").exists() { 112 | ("meson".to_string(), vec!["meson".to_string(), "ninja".to_string()], vec![]) 113 | } else if build_dir.join("build.ninja").exists() { 114 | ("ninja".to_string(), vec!["ninja".to_string()], vec![]) 115 | } else if build_dir.join("*.nimble").exists() { 116 | ("nimble".to_string(), vec!["nim".to_string(), "nimble".to_string()], vec![]) 117 | } else if build_dir.join("stack.yaml").exists() { 118 | ("stack".to_string(), vec!["stack".to_string()], vec![]) 119 | } else { 120 | eprintln!("{}", Red.paint("No build system found")); 121 | return; 122 | }; 123 | 124 | let mut final_flags = custom_flags; 125 | final_flags.extend(flags.iter().cloned()); 126 | 127 | println!("~> Build system: {}", match build_system.as_str() { 128 | "make" => Green.paint("Make"), 129 | "autotools" => Green.paint("Autotools"), 130 | "cargo" => Green.paint("Cargo"), 131 | "cmake" => Green.paint("CMake"), 132 | "meson" => Green.paint("Meson"), 133 | "ninja" => Green.paint("Ninja"), 134 | "nimble" => Green.paint("Nimble"), 135 | "stack" => Green.paint("Stack"), 136 | _ => unreachable!() 137 | }); 138 | 139 | let build_file = match build_system.as_str() { 140 | "make" => makefiles.iter().find(|f| build_dir.join(f).exists()).map(|f| f.to_string()), 141 | "autotools" => Some("configure".to_string()), 142 | "cargo" => Some("Cargo.toml".to_string()), 143 | "cmake" => Some("CMakeLists.txt".to_string()), 144 | "meson" => Some("meson.build".to_string()), 145 | "ninja" => Some("build.ninja".to_string()), 146 | "nimble" => build_dir.join("*.nimble").exists().then(|| "*.nimble".to_string()), 147 | "stack" => Some("stack.yaml".to_string()), 148 | _ => None, 149 | }; 150 | 151 | if !yes { 152 | if let Some(file) = &build_file { 153 | let file_path = if file == "*.nimble" { 154 | let nimble_files: Vec<_> = fs::read_dir(&build_dir) 155 | .unwrap() 156 | .filter_map(|e| e.ok()) 157 | .map(|e| e.path()) 158 | .filter(|p| p.extension().map(|e| e == "nimble").unwrap_or(false)) 159 | .collect(); 160 | if nimble_files.is_empty() { 161 | None 162 | } else { 163 | nimble_files.get(0).cloned() 164 | } 165 | } else { 166 | Some(build_dir.join(file)) 167 | }; 168 | 169 | if let Some(file_path) = file_path { 170 | if file_path.exists() { 171 | println!("~> Build file: {}", file); 172 | let status = Command::new("less") 173 | .arg(&file_path) 174 | .status(); 175 | 176 | if status.is_err() || !status.unwrap().success() { 177 | let _ = Command::new("cat") 178 | .arg(&file_path) 179 | .status(); 180 | } 181 | 182 | print!("~> Proceed with build? [Y/n] "); 183 | io::stdout().flush().unwrap(); 184 | let mut input = String::new(); 185 | io::stdin().read_line(&mut input).unwrap(); 186 | 187 | if input.trim().eq_ignore_ascii_case("n") { 188 | println!("{}", Yellow.paint("Build cancelled by user")); 189 | return; 190 | } 191 | } 192 | } 193 | } 194 | } 195 | 196 | utils::check_deps(&deps); 197 | 198 | println!("~> Building with flags: {:?}", final_flags); 199 | let build_status = match build_system.as_str() { 200 | "make" => { 201 | let makefile = makefiles.iter() 202 | .find(|f| build_dir.join(f).exists()) 203 | .unwrap_or(&"Makefile"); 204 | 205 | let mut cmd = Command::new("make"); 206 | cmd.arg("-f").arg(makefile) 207 | .args(&final_flags) 208 | .current_dir(&build_dir) 209 | .stdout(Stdio::null()); 210 | 211 | cmd.status().expect("Make command failed") 212 | } 213 | "autotools" => { 214 | let configure_status = Command::new("./configure") 215 | .args(&final_flags) 216 | .current_dir(&build_dir) 217 | .status() 218 | .expect("Configure command failed"); 219 | 220 | if !configure_status.success() { 221 | eprintln!("{}", Red.paint("Configure failed")); 222 | return; 223 | } 224 | 225 | Command::new("make") 226 | .current_dir(&build_dir) 227 | .stdout(Stdio::null()) 228 | .status() 229 | .expect("Make command failed") 230 | } 231 | "cmake" => { 232 | let cmake_build_dir = build_dir.join("build"); 233 | fs::create_dir_all(&cmake_build_dir).expect("Failed to create build dir"); 234 | 235 | let mut cmake_cmd = Command::new("cmake"); 236 | cmake_cmd 237 | .arg("-DCMAKE_BUILD_TYPE=Release") 238 | .args(&final_flags) 239 | .arg("..") 240 | .current_dir(&cmake_build_dir) 241 | .stdout(Stdio::null()); 242 | 243 | let cmake_status = cmake_cmd.status(); 244 | 245 | if cmake_status.is_err() || !cmake_status.as_ref().unwrap().success() { 246 | Command::new("cmake") 247 | .args(&final_flags) 248 | .arg("..") 249 | .current_dir(&cmake_build_dir) 250 | .stdout(Stdio::null()) 251 | .status() 252 | .expect("CMake command failed") 253 | } else { 254 | cmake_status.unwrap() 255 | } 256 | } 257 | "cargo" => { 258 | let mut cargo_cmd = Command::new("cargo"); 259 | cargo_cmd 260 | .arg("build") 261 | .arg("--release") 262 | .args(&final_flags) 263 | .arg("--manifest-path") 264 | .arg(build_dir.join("Cargo.toml")) 265 | .arg("--target-dir") 266 | .arg(build_dir.join("target")) 267 | .current_dir(&build_dir) 268 | .stdout(Stdio::null()); 269 | 270 | cargo_cmd.status().expect("Cargo command failed") 271 | } 272 | "meson" => { 273 | let meson_build_dir = build_dir.join("build"); 274 | fs::create_dir_all(&meson_build_dir).expect("Failed to create build dir"); 275 | 276 | let meson_status = Command::new("meson") 277 | .arg("setup") 278 | .args(&final_flags) 279 | .arg(&meson_build_dir) 280 | .current_dir(&build_dir) 281 | .stdout(Stdio::null()) 282 | .status(); 283 | 284 | if meson_status.is_err() || !meson_status.as_ref().unwrap().success() { 285 | Command::new("meson") 286 | .arg(&meson_build_dir) 287 | .current_dir(&build_dir) 288 | .stdout(Stdio::null()) 289 | .status() 290 | .expect("Meson setup failed"); 291 | } 292 | 293 | Command::new("ninja") 294 | .arg("-C") 295 | .arg(&meson_build_dir) 296 | .stdout(Stdio::null()) 297 | .status() 298 | .expect("Ninja build failed") 299 | } 300 | "ninja" => { 301 | Command::new("ninja") 302 | .args(&final_flags) 303 | .current_dir(&build_dir) 304 | .stdout(Stdio::null()) 305 | .status() 306 | .expect("Ninja build failed") 307 | } 308 | "nimble" => { 309 | Command::new("nimble") 310 | .arg("build") 311 | .args(&final_flags) 312 | .current_dir(&build_dir) 313 | .stdout(Stdio::null()) 314 | .status() 315 | .expect("Nimble command failed") 316 | } 317 | "stack" => { 318 | Command::new("stack") 319 | .arg("install") 320 | .args(&final_flags) 321 | .arg("--local-bin-path") 322 | .arg(build_dir.join("bin")) 323 | .current_dir(&build_dir) 324 | .stdout(Stdio::null()) 325 | .status() 326 | .expect("Stack command failed") 327 | } 328 | _ => unreachable!() 329 | }; 330 | 331 | if !build_status.success() { 332 | eprintln!("{}", Red.paint("Build failed")); 333 | return; 334 | } 335 | 336 | println!("~> Installing..."); 337 | let bin_path = find_binary_path(&build_dir, repo, &build_system); 338 | 339 | if bin_path.is_none() { 340 | eprintln!("{}: Failed to find built binary", Red.paint("Error")); 341 | return; 342 | } 343 | let bin_path = bin_path.unwrap(); 344 | 345 | let dest = if local { 346 | let home = env::var("HOME").expect("HOME environment variable not set"); 347 | let path = PathBuf::from(home).join(".local/bin"); 348 | if !path.exists() { 349 | fs::create_dir_all(&path).expect("Failed to create local bin directory"); 350 | } 351 | path 352 | } else { 353 | PathBuf::from("/usr/local/bin") 354 | }; 355 | 356 | if !local { 357 | println!("{}", Yellow.paint("WARNING: Installing system-wide")); 358 | } 359 | 360 | let bin_name = bin_path.file_name().unwrap().to_str().unwrap(); 361 | let dest_path = dest.join(bin_name); 362 | 363 | if local { 364 | fs::copy(&bin_path, &dest_path) 365 | .expect("Failed to copy binary to local directory"); 366 | } else { 367 | Command::new(&utils::get_privilege_command()) 368 | .arg("install") 369 | .arg("-m755") 370 | .arg(&bin_path) 371 | .arg(&dest_path) 372 | .status() 373 | .expect("Installation failed"); 374 | } 375 | 376 | if !local { 377 | let mut installed = utils::get_installed_packages(); 378 | 379 | let mut hasher = Sha256::new(); 380 | if let Some(bf) = &build_file { 381 | if let Ok(content) = fs::read(build_dir.join(bf)) { 382 | hasher.update(&content); 383 | } 384 | } 385 | let hash = format!("{:x}", hasher.finalize()); 386 | 387 | let mut version = None; 388 | if build_system == "cargo" { 389 | if let Ok(cargo_toml) = fs::read_to_string(build_dir.join("Cargo.toml")) { 390 | if let Some(v) = cargo_toml.lines().find(|l| l.starts_with("version = ")) { 391 | version = v.split('"').nth(1).map(|s| s.to_string()); 392 | } 393 | } 394 | } 395 | 396 | let pkg = utils::InstalledPackage { 397 | name: repo.to_string(), 398 | source: source.map(|s| s.to_string()), 399 | build_system: build_system.to_string(), 400 | location: dest_path.to_string_lossy().to_string(), 401 | build_file: build_file.clone(), 402 | hash: Some(hash), 403 | version, 404 | }; 405 | 406 | installed.push(pkg); 407 | 408 | let temp_path = Path::new("/tmp").join("radon-installed.yaml"); 409 | fs::write(&temp_path, serde_yaml::to_string(&installed).unwrap()).unwrap(); 410 | 411 | Command::new(&utils::get_privilege_command()) 412 | .arg("mv") 413 | .arg(&temp_path) 414 | .arg("/etc/radon/installed.yaml") 415 | .status() 416 | .expect("Failed to update package list"); 417 | } 418 | 419 | println!("{} in {}s", Green.paint("~> INSTALL FINISHED"), start.elapsed().as_secs()); 420 | 421 | if !local { 422 | println!( 423 | "{}", 424 | Yellow.paint( 425 | "Warning: radon installs packages to /usr/local/bin by default.\n\ 426 | If /usr/local/bin is not in your $PATH, you may need to add it." 427 | ) 428 | ); 429 | } else { 430 | println!( 431 | "{}", 432 | Green.paint( 433 | "Installed to ~/.local/bin. Make sure this directory is in your PATH." 434 | ) 435 | ); 436 | } 437 | } 438 | 439 | fn get_cargo_binary_name(build_dir: &Path) -> Option { 440 | let cargo_toml = build_dir.join("Cargo.toml"); 441 | let content = match fs::read_to_string(&cargo_toml) { 442 | Ok(c) => c, 443 | Err(_) => return None, 444 | }; 445 | 446 | let value: Table = match content.parse() { 447 | Ok(v) => v, 448 | Err(_) => return None, 449 | }; 450 | 451 | if let Some(bins) = value.get("bin") { 452 | if let Some(bin_array) = bins.as_array() { 453 | for bin_entry in bin_array { 454 | if let Some(bin_table) = bin_entry.as_table() { 455 | if let Some(name) = bin_table.get("name") { 456 | if let Some(name_str) = name.as_str() { 457 | return Some(name_str.to_string()); 458 | } 459 | } 460 | } 461 | } 462 | } 463 | } 464 | 465 | if let Some(package) = value.get("package") { 466 | if let Some(package_table) = package.as_table() { 467 | if let Some(name) = package_table.get("name") { 468 | if let Some(name_str) = name.as_str() { 469 | return Some(name_str.to_string()); 470 | } 471 | } 472 | } 473 | } 474 | 475 | None 476 | } 477 | 478 | fn find_binary_path(build_dir: &Path, repo: &str, build_system: &str) -> Option { 479 | match build_system { 480 | "cargo" => { 481 | let binary_name = get_cargo_binary_name(build_dir).unwrap_or_else(|| repo.to_string()); 482 | let release_path = build_dir.join("target/release").join(&binary_name); 483 | if release_path.exists() { 484 | return Some(release_path); 485 | } 486 | let debug_path = build_dir.join("target/debug").join(&binary_name); 487 | if debug_path.exists() { 488 | return Some(debug_path); 489 | } 490 | None 491 | }, 492 | "make" | "autotools" | "ninja" => { 493 | let path = build_dir.join(repo); 494 | if path.exists() { Some(path) } else { None } 495 | }, 496 | "cmake" => { 497 | let path = build_dir.join("build").join(repo); 498 | if path.exists() { Some(path) } else { None } 499 | }, 500 | "meson" => { 501 | let build_output_dir = build_dir.join("build"); 502 | find_executable_in_dir(&build_output_dir, repo) 503 | }, 504 | "nimble" => { 505 | let path = build_dir.join(repo); 506 | if path.exists() { Some(path) } else { None } 507 | }, 508 | "stack" => { 509 | let bin_dir = build_dir.join("bin"); 510 | if bin_dir.exists() { 511 | find_executable_in_dir(&bin_dir, repo) 512 | } else { 513 | None 514 | } 515 | }, 516 | _ => None 517 | } 518 | } 519 | 520 | fn find_executable_in_dir(dir: &Path, name: &str) -> Option { 521 | if let Ok(entries) = fs::read_dir(dir) { 522 | for entry in entries.filter_map(|e| e.ok()) { 523 | let path = entry.path(); 524 | if path.is_dir() { 525 | if let Some(exec) = find_executable_in_dir(&path, name) { 526 | return Some(exec); 527 | } 528 | } else if path.is_file() { 529 | if let Some(filename) = path.file_name() { 530 | if filename == name { 531 | return Some(path); 532 | } 533 | } 534 | } 535 | } 536 | } 537 | None 538 | } 539 | 540 | fn parse_make_deps(dir: &Path, makefiles: &[&str]) -> Vec { 541 | let found_file = makefiles.iter() 542 | .find(|f| dir.join(f).exists()) 543 | .unwrap_or(&"Makefile"); 544 | 545 | let makefile = fs::read_to_string(dir.join(found_file)).unwrap_or_default(); 546 | makefile 547 | .lines() 548 | .find(|l| l.contains("# DEPENDENCIES:")) 549 | .map(|l| { 550 | l.split(':') 551 | .nth(1) 552 | .unwrap() 553 | .split(',') 554 | .map(|s| s.trim().to_string()) 555 | .collect() 556 | }) 557 | .unwrap_or_default() 558 | } 559 | 560 | fn parse_autotools_deps(dir: &Path) -> Vec { 561 | let configure = fs::read_to_string(dir.join("configure")).unwrap_or_default(); 562 | let mut deps = Vec::new(); 563 | if configure.contains("PKG_CHECK_MODULES") { 564 | deps.push("pkg-config".to_string()); 565 | } 566 | if configure.contains("AC_PROG_CC") { 567 | deps.push("gcc".to_string()); 568 | } 569 | if configure.contains("AC_PROG_CXX") { 570 | deps.push("g++".to_string()); 571 | } 572 | deps 573 | } 574 | 575 | fn parse_cargo_deps(dir: &Path) -> Vec { 576 | let cargo_toml = fs::read_to_string(dir.join("Cargo.toml")).unwrap_or_default(); 577 | let value = cargo_toml.parse::().unwrap_or(Value::Table(Map::new())); 578 | 579 | value.get("package") 580 | .and_then(|p| p.get("metadata")) 581 | .and_then(|m| m.get("radon")) 582 | .and_then(|r| r.get("dependencies")) 583 | .and_then(|d| d.as_array()) 584 | .map(|deps| { 585 | deps.iter() 586 | .filter_map(|d| d.as_str().map(|s| s.to_string())) 587 | .collect() 588 | }) 589 | .unwrap_or_default() 590 | } 591 | 592 | fn parse_radon_json(path: &Path) -> (String, Vec, Vec) { 593 | let file = std::fs::File::open(path).expect("Failed to open radon.json"); 594 | let reader = std::io::BufReader::new(file); 595 | let json: serde_json::Value = serde_json::from_reader(reader).expect("Invalid radon.json"); 596 | 597 | let build_system = json["build_system"] 598 | .as_str() 599 | .unwrap_or("make") 600 | .to_string(); 601 | 602 | let deps = json["dependencies"] 603 | .as_array() 604 | .map(|arr| { 605 | arr.iter() 606 | .filter_map(|v| v.as_str().map(|s| s.to_string())) 607 | .collect() 608 | }) 609 | .unwrap_or_default(); 610 | 611 | let flags = json["flags"] 612 | .as_array() 613 | .map(|arr| { 614 | arr.iter() 615 | .filter_map(|v| v.as_str().map(|s| s.to_string())) 616 | .collect() 617 | }) 618 | .unwrap_or_default(); 619 | 620 | (build_system, deps, flags) 621 | } 622 | 623 | fn apply_patches(build_dir: &Path, patches_dir: &Path) { 624 | let patches: Vec = fs::read_dir(patches_dir) 625 | .unwrap() 626 | .filter_map(|e| e.ok()) 627 | .map(|e| e.path()) 628 | .filter(|p| p.extension().map(|e| e == "patch").unwrap_or(false)) 629 | .collect(); 630 | 631 | for patch in patches { 632 | println!("Applying patch: {}", patch.display()); 633 | let status = Command::new("patch") 634 | .arg("-Np1") 635 | .arg("--directory") 636 | .arg(build_dir) 637 | .arg("--input") 638 | .arg(&patch) 639 | .status() 640 | .expect("Failed to apply patch"); 641 | 642 | if !status.success() { 643 | eprintln!("{}: Failed to apply {}", Red.paint("Error"), patch.display()); 644 | } 645 | } 646 | } 647 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.24.2" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler2" 16 | version = "2.0.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 | 20 | [[package]] 21 | name = "ansi_term" 22 | version = "0.12.1" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 25 | dependencies = [ 26 | "winapi", 27 | ] 28 | 29 | [[package]] 30 | name = "anstream" 31 | version = "0.6.18" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" 34 | dependencies = [ 35 | "anstyle", 36 | "anstyle-parse", 37 | "anstyle-query", 38 | "anstyle-wincon", 39 | "colorchoice", 40 | "is_terminal_polyfill", 41 | "utf8parse", 42 | ] 43 | 44 | [[package]] 45 | name = "anstyle" 46 | version = "1.0.10" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" 49 | 50 | [[package]] 51 | name = "anstyle-parse" 52 | version = "0.2.6" 53 | source = "registry+https://github.com/rust-lang/crates.io-index" 54 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" 55 | dependencies = [ 56 | "utf8parse", 57 | ] 58 | 59 | [[package]] 60 | name = "anstyle-query" 61 | version = "1.1.2" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" 64 | dependencies = [ 65 | "windows-sys 0.59.0", 66 | ] 67 | 68 | [[package]] 69 | name = "anstyle-wincon" 70 | version = "3.0.8" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "6680de5231bd6ee4c6191b8a1325daa282b415391ec9d3a37bd34f2060dc73fa" 73 | dependencies = [ 74 | "anstyle", 75 | "once_cell_polyfill", 76 | "windows-sys 0.59.0", 77 | ] 78 | 79 | [[package]] 80 | name = "atomic-waker" 81 | version = "1.1.2" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 84 | 85 | [[package]] 86 | name = "autocfg" 87 | version = "1.4.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 90 | 91 | [[package]] 92 | name = "backtrace" 93 | version = "0.3.75" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" 96 | dependencies = [ 97 | "addr2line", 98 | "cfg-if", 99 | "libc", 100 | "miniz_oxide", 101 | "object", 102 | "rustc-demangle", 103 | "windows-targets 0.52.6", 104 | ] 105 | 106 | [[package]] 107 | name = "base64" 108 | version = "0.22.1" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 111 | 112 | [[package]] 113 | name = "bitflags" 114 | version = "2.9.1" 115 | source = "registry+https://github.com/rust-lang/crates.io-index" 116 | checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" 117 | 118 | [[package]] 119 | name = "bumpalo" 120 | version = "3.17.0" 121 | source = "registry+https://github.com/rust-lang/crates.io-index" 122 | checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" 123 | 124 | [[package]] 125 | name = "bytes" 126 | version = "1.10.1" 127 | source = "registry+https://github.com/rust-lang/crates.io-index" 128 | checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" 129 | 130 | [[package]] 131 | name = "cc" 132 | version = "1.2.24" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | checksum = "16595d3be041c03b09d08d0858631facccee9221e579704070e6e9e4915d3bc7" 135 | dependencies = [ 136 | "shlex", 137 | ] 138 | 139 | [[package]] 140 | name = "cfg-if" 141 | version = "1.0.0" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 144 | 145 | [[package]] 146 | name = "clap" 147 | version = "4.5.39" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fd60e63e9be68e5fb56422e397cf9baddded06dae1d2e523401542383bc72a9f" 150 | dependencies = [ 151 | "clap_builder", 152 | "clap_derive", 153 | ] 154 | 155 | [[package]] 156 | name = "clap_builder" 157 | version = "4.5.39" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | checksum = "89cc6392a1f72bbeb820d71f32108f61fdaf18bc526e1d23954168a67759ef51" 160 | dependencies = [ 161 | "anstream", 162 | "anstyle", 163 | "clap_lex", 164 | "strsim", 165 | ] 166 | 167 | [[package]] 168 | name = "clap_derive" 169 | version = "4.5.32" 170 | source = "registry+https://github.com/rust-lang/crates.io-index" 171 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" 172 | dependencies = [ 173 | "heck", 174 | "proc-macro2", 175 | "quote", 176 | "syn", 177 | ] 178 | 179 | [[package]] 180 | name = "clap_lex" 181 | version = "0.7.4" 182 | source = "registry+https://github.com/rust-lang/crates.io-index" 183 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" 184 | 185 | [[package]] 186 | name = "colorchoice" 187 | version = "1.0.3" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" 190 | 191 | [[package]] 192 | name = "core-foundation" 193 | version = "0.9.4" 194 | source = "registry+https://github.com/rust-lang/crates.io-index" 195 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 196 | dependencies = [ 197 | "core-foundation-sys", 198 | "libc", 199 | ] 200 | 201 | [[package]] 202 | name = "core-foundation-sys" 203 | version = "0.8.7" 204 | source = "registry+https://github.com/rust-lang/crates.io-index" 205 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 206 | 207 | [[package]] 208 | name = "displaydoc" 209 | version = "0.2.5" 210 | source = "registry+https://github.com/rust-lang/crates.io-index" 211 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" 212 | dependencies = [ 213 | "proc-macro2", 214 | "quote", 215 | "syn", 216 | ] 217 | 218 | [[package]] 219 | name = "encoding_rs" 220 | version = "0.8.35" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 223 | dependencies = [ 224 | "cfg-if", 225 | ] 226 | 227 | [[package]] 228 | name = "equivalent" 229 | version = "1.0.2" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 232 | 233 | [[package]] 234 | name = "errno" 235 | version = "0.3.12" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18" 238 | dependencies = [ 239 | "libc", 240 | "windows-sys 0.59.0", 241 | ] 242 | 243 | [[package]] 244 | name = "fastrand" 245 | version = "2.3.0" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 248 | 249 | [[package]] 250 | name = "fnv" 251 | version = "1.0.7" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 254 | 255 | [[package]] 256 | name = "foreign-types" 257 | version = "0.3.2" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 260 | dependencies = [ 261 | "foreign-types-shared", 262 | ] 263 | 264 | [[package]] 265 | name = "foreign-types-shared" 266 | version = "0.1.1" 267 | source = "registry+https://github.com/rust-lang/crates.io-index" 268 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 269 | 270 | [[package]] 271 | name = "form_urlencoded" 272 | version = "1.2.1" 273 | source = "registry+https://github.com/rust-lang/crates.io-index" 274 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 275 | dependencies = [ 276 | "percent-encoding", 277 | ] 278 | 279 | [[package]] 280 | name = "futures-channel" 281 | version = "0.3.31" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 284 | dependencies = [ 285 | "futures-core", 286 | "futures-sink", 287 | ] 288 | 289 | [[package]] 290 | name = "futures-core" 291 | version = "0.3.31" 292 | source = "registry+https://github.com/rust-lang/crates.io-index" 293 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 294 | 295 | [[package]] 296 | name = "futures-io" 297 | version = "0.3.31" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" 300 | 301 | [[package]] 302 | name = "futures-sink" 303 | version = "0.3.31" 304 | source = "registry+https://github.com/rust-lang/crates.io-index" 305 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 306 | 307 | [[package]] 308 | name = "futures-task" 309 | version = "0.3.31" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 312 | 313 | [[package]] 314 | name = "futures-util" 315 | version = "0.3.31" 316 | source = "registry+https://github.com/rust-lang/crates.io-index" 317 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 318 | dependencies = [ 319 | "futures-core", 320 | "futures-io", 321 | "futures-sink", 322 | "futures-task", 323 | "memchr", 324 | "pin-project-lite", 325 | "pin-utils", 326 | "slab", 327 | ] 328 | 329 | [[package]] 330 | name = "getrandom" 331 | version = "0.2.16" 332 | source = "registry+https://github.com/rust-lang/crates.io-index" 333 | checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" 334 | dependencies = [ 335 | "cfg-if", 336 | "libc", 337 | "wasi 0.11.0+wasi-snapshot-preview1", 338 | ] 339 | 340 | [[package]] 341 | name = "getrandom" 342 | version = "0.3.3" 343 | source = "registry+https://github.com/rust-lang/crates.io-index" 344 | checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" 345 | dependencies = [ 346 | "cfg-if", 347 | "libc", 348 | "r-efi", 349 | "wasi 0.14.2+wasi-0.2.4", 350 | ] 351 | 352 | [[package]] 353 | name = "gimli" 354 | version = "0.31.1" 355 | source = "registry+https://github.com/rust-lang/crates.io-index" 356 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 357 | 358 | [[package]] 359 | name = "h2" 360 | version = "0.4.10" 361 | source = "registry+https://github.com/rust-lang/crates.io-index" 362 | checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5" 363 | dependencies = [ 364 | "atomic-waker", 365 | "bytes", 366 | "fnv", 367 | "futures-core", 368 | "futures-sink", 369 | "http", 370 | "indexmap", 371 | "slab", 372 | "tokio", 373 | "tokio-util", 374 | "tracing", 375 | ] 376 | 377 | [[package]] 378 | name = "hashbrown" 379 | version = "0.15.3" 380 | source = "registry+https://github.com/rust-lang/crates.io-index" 381 | checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3" 382 | 383 | [[package]] 384 | name = "heck" 385 | version = "0.5.0" 386 | source = "registry+https://github.com/rust-lang/crates.io-index" 387 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 388 | 389 | [[package]] 390 | name = "http" 391 | version = "1.3.1" 392 | source = "registry+https://github.com/rust-lang/crates.io-index" 393 | checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" 394 | dependencies = [ 395 | "bytes", 396 | "fnv", 397 | "itoa", 398 | ] 399 | 400 | [[package]] 401 | name = "http-body" 402 | version = "1.0.1" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 405 | dependencies = [ 406 | "bytes", 407 | "http", 408 | ] 409 | 410 | [[package]] 411 | name = "http-body-util" 412 | version = "0.1.3" 413 | source = "registry+https://github.com/rust-lang/crates.io-index" 414 | checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" 415 | dependencies = [ 416 | "bytes", 417 | "futures-core", 418 | "http", 419 | "http-body", 420 | "pin-project-lite", 421 | ] 422 | 423 | [[package]] 424 | name = "httparse" 425 | version = "1.10.1" 426 | source = "registry+https://github.com/rust-lang/crates.io-index" 427 | checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 428 | 429 | [[package]] 430 | name = "hyper" 431 | version = "1.6.0" 432 | source = "registry+https://github.com/rust-lang/crates.io-index" 433 | checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" 434 | dependencies = [ 435 | "bytes", 436 | "futures-channel", 437 | "futures-util", 438 | "h2", 439 | "http", 440 | "http-body", 441 | "httparse", 442 | "itoa", 443 | "pin-project-lite", 444 | "smallvec", 445 | "tokio", 446 | "want", 447 | ] 448 | 449 | [[package]] 450 | name = "hyper-rustls" 451 | version = "0.27.6" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | checksum = "03a01595e11bdcec50946522c32dde3fc6914743000a68b93000965f2f02406d" 454 | dependencies = [ 455 | "http", 456 | "hyper", 457 | "hyper-util", 458 | "rustls", 459 | "rustls-pki-types", 460 | "tokio", 461 | "tokio-rustls", 462 | "tower-service", 463 | ] 464 | 465 | [[package]] 466 | name = "hyper-tls" 467 | version = "0.6.0" 468 | source = "registry+https://github.com/rust-lang/crates.io-index" 469 | checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 470 | dependencies = [ 471 | "bytes", 472 | "http-body-util", 473 | "hyper", 474 | "hyper-util", 475 | "native-tls", 476 | "tokio", 477 | "tokio-native-tls", 478 | "tower-service", 479 | ] 480 | 481 | [[package]] 482 | name = "hyper-util" 483 | version = "0.1.13" 484 | source = "registry+https://github.com/rust-lang/crates.io-index" 485 | checksum = "b1c293b6b3d21eca78250dc7dbebd6b9210ec5530e038cbfe0661b5c47ab06e8" 486 | dependencies = [ 487 | "base64", 488 | "bytes", 489 | "futures-channel", 490 | "futures-core", 491 | "futures-util", 492 | "http", 493 | "http-body", 494 | "hyper", 495 | "ipnet", 496 | "libc", 497 | "percent-encoding", 498 | "pin-project-lite", 499 | "socket2", 500 | "system-configuration", 501 | "tokio", 502 | "tower-service", 503 | "tracing", 504 | "windows-registry", 505 | ] 506 | 507 | [[package]] 508 | name = "icu_collections" 509 | version = "2.0.0" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" 512 | dependencies = [ 513 | "displaydoc", 514 | "potential_utf", 515 | "yoke", 516 | "zerofrom", 517 | "zerovec", 518 | ] 519 | 520 | [[package]] 521 | name = "icu_locale_core" 522 | version = "2.0.0" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" 525 | dependencies = [ 526 | "displaydoc", 527 | "litemap", 528 | "tinystr", 529 | "writeable", 530 | "zerovec", 531 | ] 532 | 533 | [[package]] 534 | name = "icu_normalizer" 535 | version = "2.0.0" 536 | source = "registry+https://github.com/rust-lang/crates.io-index" 537 | checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979" 538 | dependencies = [ 539 | "displaydoc", 540 | "icu_collections", 541 | "icu_normalizer_data", 542 | "icu_properties", 543 | "icu_provider", 544 | "smallvec", 545 | "zerovec", 546 | ] 547 | 548 | [[package]] 549 | name = "icu_normalizer_data" 550 | version = "2.0.0" 551 | source = "registry+https://github.com/rust-lang/crates.io-index" 552 | checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3" 553 | 554 | [[package]] 555 | name = "icu_properties" 556 | version = "2.0.1" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b" 559 | dependencies = [ 560 | "displaydoc", 561 | "icu_collections", 562 | "icu_locale_core", 563 | "icu_properties_data", 564 | "icu_provider", 565 | "potential_utf", 566 | "zerotrie", 567 | "zerovec", 568 | ] 569 | 570 | [[package]] 571 | name = "icu_properties_data" 572 | version = "2.0.1" 573 | source = "registry+https://github.com/rust-lang/crates.io-index" 574 | checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632" 575 | 576 | [[package]] 577 | name = "icu_provider" 578 | version = "2.0.0" 579 | source = "registry+https://github.com/rust-lang/crates.io-index" 580 | checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af" 581 | dependencies = [ 582 | "displaydoc", 583 | "icu_locale_core", 584 | "stable_deref_trait", 585 | "tinystr", 586 | "writeable", 587 | "yoke", 588 | "zerofrom", 589 | "zerotrie", 590 | "zerovec", 591 | ] 592 | 593 | [[package]] 594 | name = "idna" 595 | version = "1.0.3" 596 | source = "registry+https://github.com/rust-lang/crates.io-index" 597 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" 598 | dependencies = [ 599 | "idna_adapter", 600 | "smallvec", 601 | "utf8_iter", 602 | ] 603 | 604 | [[package]] 605 | name = "idna_adapter" 606 | version = "1.2.1" 607 | source = "registry+https://github.com/rust-lang/crates.io-index" 608 | checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" 609 | dependencies = [ 610 | "icu_normalizer", 611 | "icu_properties", 612 | ] 613 | 614 | [[package]] 615 | name = "indexmap" 616 | version = "2.9.0" 617 | source = "registry+https://github.com/rust-lang/crates.io-index" 618 | checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" 619 | dependencies = [ 620 | "equivalent", 621 | "hashbrown", 622 | ] 623 | 624 | [[package]] 625 | name = "ipnet" 626 | version = "2.11.0" 627 | source = "registry+https://github.com/rust-lang/crates.io-index" 628 | checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" 629 | 630 | [[package]] 631 | name = "iri-string" 632 | version = "0.7.8" 633 | source = "registry+https://github.com/rust-lang/crates.io-index" 634 | checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" 635 | dependencies = [ 636 | "memchr", 637 | "serde", 638 | ] 639 | 640 | [[package]] 641 | name = "is_terminal_polyfill" 642 | version = "1.70.1" 643 | source = "registry+https://github.com/rust-lang/crates.io-index" 644 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 645 | 646 | [[package]] 647 | name = "itoa" 648 | version = "1.0.15" 649 | source = "registry+https://github.com/rust-lang/crates.io-index" 650 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" 651 | 652 | [[package]] 653 | name = "js-sys" 654 | version = "0.3.77" 655 | source = "registry+https://github.com/rust-lang/crates.io-index" 656 | checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" 657 | dependencies = [ 658 | "once_cell", 659 | "wasm-bindgen", 660 | ] 661 | 662 | [[package]] 663 | name = "libc" 664 | version = "0.2.172" 665 | source = "registry+https://github.com/rust-lang/crates.io-index" 666 | checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" 667 | 668 | [[package]] 669 | name = "linux-raw-sys" 670 | version = "0.9.4" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" 673 | 674 | [[package]] 675 | name = "litemap" 676 | version = "0.8.0" 677 | source = "registry+https://github.com/rust-lang/crates.io-index" 678 | checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" 679 | 680 | [[package]] 681 | name = "log" 682 | version = "0.4.27" 683 | source = "registry+https://github.com/rust-lang/crates.io-index" 684 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" 685 | 686 | [[package]] 687 | name = "memchr" 688 | version = "2.7.4" 689 | source = "registry+https://github.com/rust-lang/crates.io-index" 690 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 691 | 692 | [[package]] 693 | name = "mime" 694 | version = "0.3.17" 695 | source = "registry+https://github.com/rust-lang/crates.io-index" 696 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 697 | 698 | [[package]] 699 | name = "miniz_oxide" 700 | version = "0.8.8" 701 | source = "registry+https://github.com/rust-lang/crates.io-index" 702 | checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" 703 | dependencies = [ 704 | "adler2", 705 | ] 706 | 707 | [[package]] 708 | name = "mio" 709 | version = "1.0.4" 710 | source = "registry+https://github.com/rust-lang/crates.io-index" 711 | checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" 712 | dependencies = [ 713 | "libc", 714 | "wasi 0.11.0+wasi-snapshot-preview1", 715 | "windows-sys 0.59.0", 716 | ] 717 | 718 | [[package]] 719 | name = "native-tls" 720 | version = "0.2.14" 721 | source = "registry+https://github.com/rust-lang/crates.io-index" 722 | checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" 723 | dependencies = [ 724 | "libc", 725 | "log", 726 | "openssl", 727 | "openssl-probe", 728 | "openssl-sys", 729 | "schannel", 730 | "security-framework", 731 | "security-framework-sys", 732 | "tempfile", 733 | ] 734 | 735 | [[package]] 736 | name = "object" 737 | version = "0.36.7" 738 | source = "registry+https://github.com/rust-lang/crates.io-index" 739 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 740 | dependencies = [ 741 | "memchr", 742 | ] 743 | 744 | [[package]] 745 | name = "once_cell" 746 | version = "1.21.3" 747 | source = "registry+https://github.com/rust-lang/crates.io-index" 748 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 749 | 750 | [[package]] 751 | name = "once_cell_polyfill" 752 | version = "1.70.1" 753 | source = "registry+https://github.com/rust-lang/crates.io-index" 754 | checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" 755 | 756 | [[package]] 757 | name = "openssl" 758 | version = "0.10.73" 759 | source = "registry+https://github.com/rust-lang/crates.io-index" 760 | checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8" 761 | dependencies = [ 762 | "bitflags", 763 | "cfg-if", 764 | "foreign-types", 765 | "libc", 766 | "once_cell", 767 | "openssl-macros", 768 | "openssl-sys", 769 | ] 770 | 771 | [[package]] 772 | name = "openssl-macros" 773 | version = "0.1.1" 774 | source = "registry+https://github.com/rust-lang/crates.io-index" 775 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 776 | dependencies = [ 777 | "proc-macro2", 778 | "quote", 779 | "syn", 780 | ] 781 | 782 | [[package]] 783 | name = "openssl-probe" 784 | version = "0.1.6" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" 787 | 788 | [[package]] 789 | name = "openssl-sys" 790 | version = "0.9.109" 791 | source = "registry+https://github.com/rust-lang/crates.io-index" 792 | checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" 793 | dependencies = [ 794 | "cc", 795 | "libc", 796 | "pkg-config", 797 | "vcpkg", 798 | ] 799 | 800 | [[package]] 801 | name = "percent-encoding" 802 | version = "2.3.1" 803 | source = "registry+https://github.com/rust-lang/crates.io-index" 804 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 805 | 806 | [[package]] 807 | name = "pin-project-lite" 808 | version = "0.2.16" 809 | source = "registry+https://github.com/rust-lang/crates.io-index" 810 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 811 | 812 | [[package]] 813 | name = "pin-utils" 814 | version = "0.1.0" 815 | source = "registry+https://github.com/rust-lang/crates.io-index" 816 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 817 | 818 | [[package]] 819 | name = "pkg-config" 820 | version = "0.3.32" 821 | source = "registry+https://github.com/rust-lang/crates.io-index" 822 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" 823 | 824 | [[package]] 825 | name = "potential_utf" 826 | version = "0.1.2" 827 | source = "registry+https://github.com/rust-lang/crates.io-index" 828 | checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585" 829 | dependencies = [ 830 | "zerovec", 831 | ] 832 | 833 | [[package]] 834 | name = "proc-macro2" 835 | version = "1.0.95" 836 | source = "registry+https://github.com/rust-lang/crates.io-index" 837 | checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" 838 | dependencies = [ 839 | "unicode-ident", 840 | ] 841 | 842 | [[package]] 843 | name = "quote" 844 | version = "1.0.40" 845 | source = "registry+https://github.com/rust-lang/crates.io-index" 846 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 847 | dependencies = [ 848 | "proc-macro2", 849 | ] 850 | 851 | [[package]] 852 | name = "r-efi" 853 | version = "5.2.0" 854 | source = "registry+https://github.com/rust-lang/crates.io-index" 855 | checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" 856 | 857 | [[package]] 858 | name = "radon" 859 | version = "0.3.0" 860 | dependencies = [ 861 | "ansi_term", 862 | "clap", 863 | "reqwest", 864 | "serde_json", 865 | "tempfile", 866 | "toml", 867 | ] 868 | 869 | [[package]] 870 | name = "reqwest" 871 | version = "0.12.18" 872 | source = "registry+https://github.com/rust-lang/crates.io-index" 873 | checksum = "e98ff6b0dbbe4d5a37318f433d4fc82babd21631f194d370409ceb2e40b2f0b5" 874 | dependencies = [ 875 | "base64", 876 | "bytes", 877 | "encoding_rs", 878 | "futures-channel", 879 | "futures-core", 880 | "futures-util", 881 | "h2", 882 | "http", 883 | "http-body", 884 | "http-body-util", 885 | "hyper", 886 | "hyper-rustls", 887 | "hyper-tls", 888 | "hyper-util", 889 | "ipnet", 890 | "js-sys", 891 | "log", 892 | "mime", 893 | "native-tls", 894 | "once_cell", 895 | "percent-encoding", 896 | "pin-project-lite", 897 | "rustls-pki-types", 898 | "serde", 899 | "serde_json", 900 | "serde_urlencoded", 901 | "sync_wrapper", 902 | "tokio", 903 | "tokio-native-tls", 904 | "tower", 905 | "tower-http", 906 | "tower-service", 907 | "url", 908 | "wasm-bindgen", 909 | "wasm-bindgen-futures", 910 | "web-sys", 911 | ] 912 | 913 | [[package]] 914 | name = "ring" 915 | version = "0.17.14" 916 | source = "registry+https://github.com/rust-lang/crates.io-index" 917 | checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" 918 | dependencies = [ 919 | "cc", 920 | "cfg-if", 921 | "getrandom 0.2.16", 922 | "libc", 923 | "untrusted", 924 | "windows-sys 0.52.0", 925 | ] 926 | 927 | [[package]] 928 | name = "rustc-demangle" 929 | version = "0.1.24" 930 | source = "registry+https://github.com/rust-lang/crates.io-index" 931 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 932 | 933 | [[package]] 934 | name = "rustix" 935 | version = "1.0.7" 936 | source = "registry+https://github.com/rust-lang/crates.io-index" 937 | checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" 938 | dependencies = [ 939 | "bitflags", 940 | "errno", 941 | "libc", 942 | "linux-raw-sys", 943 | "windows-sys 0.59.0", 944 | ] 945 | 946 | [[package]] 947 | name = "rustls" 948 | version = "0.23.27" 949 | source = "registry+https://github.com/rust-lang/crates.io-index" 950 | checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321" 951 | dependencies = [ 952 | "once_cell", 953 | "rustls-pki-types", 954 | "rustls-webpki", 955 | "subtle", 956 | "zeroize", 957 | ] 958 | 959 | [[package]] 960 | name = "rustls-pki-types" 961 | version = "1.12.0" 962 | source = "registry+https://github.com/rust-lang/crates.io-index" 963 | checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" 964 | dependencies = [ 965 | "zeroize", 966 | ] 967 | 968 | [[package]] 969 | name = "rustls-webpki" 970 | version = "0.103.3" 971 | source = "registry+https://github.com/rust-lang/crates.io-index" 972 | checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" 973 | dependencies = [ 974 | "ring", 975 | "rustls-pki-types", 976 | "untrusted", 977 | ] 978 | 979 | [[package]] 980 | name = "rustversion" 981 | version = "1.0.21" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d" 984 | 985 | [[package]] 986 | name = "ryu" 987 | version = "1.0.20" 988 | source = "registry+https://github.com/rust-lang/crates.io-index" 989 | checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" 990 | 991 | [[package]] 992 | name = "schannel" 993 | version = "0.1.27" 994 | source = "registry+https://github.com/rust-lang/crates.io-index" 995 | checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" 996 | dependencies = [ 997 | "windows-sys 0.59.0", 998 | ] 999 | 1000 | [[package]] 1001 | name = "security-framework" 1002 | version = "2.11.1" 1003 | source = "registry+https://github.com/rust-lang/crates.io-index" 1004 | checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1005 | dependencies = [ 1006 | "bitflags", 1007 | "core-foundation", 1008 | "core-foundation-sys", 1009 | "libc", 1010 | "security-framework-sys", 1011 | ] 1012 | 1013 | [[package]] 1014 | name = "security-framework-sys" 1015 | version = "2.14.0" 1016 | source = "registry+https://github.com/rust-lang/crates.io-index" 1017 | checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" 1018 | dependencies = [ 1019 | "core-foundation-sys", 1020 | "libc", 1021 | ] 1022 | 1023 | [[package]] 1024 | name = "serde" 1025 | version = "1.0.219" 1026 | source = "registry+https://github.com/rust-lang/crates.io-index" 1027 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 1028 | dependencies = [ 1029 | "serde_derive", 1030 | ] 1031 | 1032 | [[package]] 1033 | name = "serde_derive" 1034 | version = "1.0.219" 1035 | source = "registry+https://github.com/rust-lang/crates.io-index" 1036 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 1037 | dependencies = [ 1038 | "proc-macro2", 1039 | "quote", 1040 | "syn", 1041 | ] 1042 | 1043 | [[package]] 1044 | name = "serde_json" 1045 | version = "1.0.140" 1046 | source = "registry+https://github.com/rust-lang/crates.io-index" 1047 | checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 1048 | dependencies = [ 1049 | "itoa", 1050 | "memchr", 1051 | "ryu", 1052 | "serde", 1053 | ] 1054 | 1055 | [[package]] 1056 | name = "serde_spanned" 1057 | version = "0.6.8" 1058 | source = "registry+https://github.com/rust-lang/crates.io-index" 1059 | checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" 1060 | dependencies = [ 1061 | "serde", 1062 | ] 1063 | 1064 | [[package]] 1065 | name = "serde_urlencoded" 1066 | version = "0.7.1" 1067 | source = "registry+https://github.com/rust-lang/crates.io-index" 1068 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1069 | dependencies = [ 1070 | "form_urlencoded", 1071 | "itoa", 1072 | "ryu", 1073 | "serde", 1074 | ] 1075 | 1076 | [[package]] 1077 | name = "shlex" 1078 | version = "1.3.0" 1079 | source = "registry+https://github.com/rust-lang/crates.io-index" 1080 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1081 | 1082 | [[package]] 1083 | name = "slab" 1084 | version = "0.4.9" 1085 | source = "registry+https://github.com/rust-lang/crates.io-index" 1086 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1087 | dependencies = [ 1088 | "autocfg", 1089 | ] 1090 | 1091 | [[package]] 1092 | name = "smallvec" 1093 | version = "1.15.0" 1094 | source = "registry+https://github.com/rust-lang/crates.io-index" 1095 | checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" 1096 | 1097 | [[package]] 1098 | name = "socket2" 1099 | version = "0.5.10" 1100 | source = "registry+https://github.com/rust-lang/crates.io-index" 1101 | checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" 1102 | dependencies = [ 1103 | "libc", 1104 | "windows-sys 0.52.0", 1105 | ] 1106 | 1107 | [[package]] 1108 | name = "stable_deref_trait" 1109 | version = "1.2.0" 1110 | source = "registry+https://github.com/rust-lang/crates.io-index" 1111 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1112 | 1113 | [[package]] 1114 | name = "strsim" 1115 | version = "0.11.1" 1116 | source = "registry+https://github.com/rust-lang/crates.io-index" 1117 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1118 | 1119 | [[package]] 1120 | name = "subtle" 1121 | version = "2.6.1" 1122 | source = "registry+https://github.com/rust-lang/crates.io-index" 1123 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1124 | 1125 | [[package]] 1126 | name = "syn" 1127 | version = "2.0.101" 1128 | source = "registry+https://github.com/rust-lang/crates.io-index" 1129 | checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf" 1130 | dependencies = [ 1131 | "proc-macro2", 1132 | "quote", 1133 | "unicode-ident", 1134 | ] 1135 | 1136 | [[package]] 1137 | name = "sync_wrapper" 1138 | version = "1.0.2" 1139 | source = "registry+https://github.com/rust-lang/crates.io-index" 1140 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1141 | dependencies = [ 1142 | "futures-core", 1143 | ] 1144 | 1145 | [[package]] 1146 | name = "synstructure" 1147 | version = "0.13.2" 1148 | source = "registry+https://github.com/rust-lang/crates.io-index" 1149 | checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" 1150 | dependencies = [ 1151 | "proc-macro2", 1152 | "quote", 1153 | "syn", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "system-configuration" 1158 | version = "0.6.1" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1161 | dependencies = [ 1162 | "bitflags", 1163 | "core-foundation", 1164 | "system-configuration-sys", 1165 | ] 1166 | 1167 | [[package]] 1168 | name = "system-configuration-sys" 1169 | version = "0.6.0" 1170 | source = "registry+https://github.com/rust-lang/crates.io-index" 1171 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1172 | dependencies = [ 1173 | "core-foundation-sys", 1174 | "libc", 1175 | ] 1176 | 1177 | [[package]] 1178 | name = "tempfile" 1179 | version = "3.20.0" 1180 | source = "registry+https://github.com/rust-lang/crates.io-index" 1181 | checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" 1182 | dependencies = [ 1183 | "fastrand", 1184 | "getrandom 0.3.3", 1185 | "once_cell", 1186 | "rustix", 1187 | "windows-sys 0.59.0", 1188 | ] 1189 | 1190 | [[package]] 1191 | name = "tinystr" 1192 | version = "0.8.1" 1193 | source = "registry+https://github.com/rust-lang/crates.io-index" 1194 | checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b" 1195 | dependencies = [ 1196 | "displaydoc", 1197 | "zerovec", 1198 | ] 1199 | 1200 | [[package]] 1201 | name = "tokio" 1202 | version = "1.45.1" 1203 | source = "registry+https://github.com/rust-lang/crates.io-index" 1204 | checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779" 1205 | dependencies = [ 1206 | "backtrace", 1207 | "bytes", 1208 | "libc", 1209 | "mio", 1210 | "pin-project-lite", 1211 | "socket2", 1212 | "windows-sys 0.52.0", 1213 | ] 1214 | 1215 | [[package]] 1216 | name = "tokio-native-tls" 1217 | version = "0.3.1" 1218 | source = "registry+https://github.com/rust-lang/crates.io-index" 1219 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1220 | dependencies = [ 1221 | "native-tls", 1222 | "tokio", 1223 | ] 1224 | 1225 | [[package]] 1226 | name = "tokio-rustls" 1227 | version = "0.26.2" 1228 | source = "registry+https://github.com/rust-lang/crates.io-index" 1229 | checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" 1230 | dependencies = [ 1231 | "rustls", 1232 | "tokio", 1233 | ] 1234 | 1235 | [[package]] 1236 | name = "tokio-util" 1237 | version = "0.7.15" 1238 | source = "registry+https://github.com/rust-lang/crates.io-index" 1239 | checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" 1240 | dependencies = [ 1241 | "bytes", 1242 | "futures-core", 1243 | "futures-sink", 1244 | "pin-project-lite", 1245 | "tokio", 1246 | ] 1247 | 1248 | [[package]] 1249 | name = "toml" 1250 | version = "0.8.22" 1251 | source = "registry+https://github.com/rust-lang/crates.io-index" 1252 | checksum = "05ae329d1f08c4d17a59bed7ff5b5a769d062e64a62d34a3261b219e62cd5aae" 1253 | dependencies = [ 1254 | "serde", 1255 | "serde_spanned", 1256 | "toml_datetime", 1257 | "toml_edit", 1258 | ] 1259 | 1260 | [[package]] 1261 | name = "toml_datetime" 1262 | version = "0.6.9" 1263 | source = "registry+https://github.com/rust-lang/crates.io-index" 1264 | checksum = "3da5db5a963e24bc68be8b17b6fa82814bb22ee8660f192bb182771d498f09a3" 1265 | dependencies = [ 1266 | "serde", 1267 | ] 1268 | 1269 | [[package]] 1270 | name = "toml_edit" 1271 | version = "0.22.26" 1272 | source = "registry+https://github.com/rust-lang/crates.io-index" 1273 | checksum = "310068873db2c5b3e7659d2cc35d21855dbafa50d1ce336397c666e3cb08137e" 1274 | dependencies = [ 1275 | "indexmap", 1276 | "serde", 1277 | "serde_spanned", 1278 | "toml_datetime", 1279 | "toml_write", 1280 | "winnow", 1281 | ] 1282 | 1283 | [[package]] 1284 | name = "toml_write" 1285 | version = "0.1.1" 1286 | source = "registry+https://github.com/rust-lang/crates.io-index" 1287 | checksum = "bfb942dfe1d8e29a7ee7fcbde5bd2b9a25fb89aa70caea2eba3bee836ff41076" 1288 | 1289 | [[package]] 1290 | name = "tower" 1291 | version = "0.5.2" 1292 | source = "registry+https://github.com/rust-lang/crates.io-index" 1293 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1294 | dependencies = [ 1295 | "futures-core", 1296 | "futures-util", 1297 | "pin-project-lite", 1298 | "sync_wrapper", 1299 | "tokio", 1300 | "tower-layer", 1301 | "tower-service", 1302 | ] 1303 | 1304 | [[package]] 1305 | name = "tower-http" 1306 | version = "0.6.4" 1307 | source = "registry+https://github.com/rust-lang/crates.io-index" 1308 | checksum = "0fdb0c213ca27a9f57ab69ddb290fd80d970922355b83ae380b395d3986b8a2e" 1309 | dependencies = [ 1310 | "bitflags", 1311 | "bytes", 1312 | "futures-util", 1313 | "http", 1314 | "http-body", 1315 | "iri-string", 1316 | "pin-project-lite", 1317 | "tower", 1318 | "tower-layer", 1319 | "tower-service", 1320 | ] 1321 | 1322 | [[package]] 1323 | name = "tower-layer" 1324 | version = "0.3.3" 1325 | source = "registry+https://github.com/rust-lang/crates.io-index" 1326 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1327 | 1328 | [[package]] 1329 | name = "tower-service" 1330 | version = "0.3.3" 1331 | source = "registry+https://github.com/rust-lang/crates.io-index" 1332 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1333 | 1334 | [[package]] 1335 | name = "tracing" 1336 | version = "0.1.41" 1337 | source = "registry+https://github.com/rust-lang/crates.io-index" 1338 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 1339 | dependencies = [ 1340 | "pin-project-lite", 1341 | "tracing-core", 1342 | ] 1343 | 1344 | [[package]] 1345 | name = "tracing-core" 1346 | version = "0.1.33" 1347 | source = "registry+https://github.com/rust-lang/crates.io-index" 1348 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 1349 | dependencies = [ 1350 | "once_cell", 1351 | ] 1352 | 1353 | [[package]] 1354 | name = "try-lock" 1355 | version = "0.2.5" 1356 | source = "registry+https://github.com/rust-lang/crates.io-index" 1357 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1358 | 1359 | [[package]] 1360 | name = "unicode-ident" 1361 | version = "1.0.18" 1362 | source = "registry+https://github.com/rust-lang/crates.io-index" 1363 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" 1364 | 1365 | [[package]] 1366 | name = "untrusted" 1367 | version = "0.9.0" 1368 | source = "registry+https://github.com/rust-lang/crates.io-index" 1369 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1370 | 1371 | [[package]] 1372 | name = "url" 1373 | version = "2.5.4" 1374 | source = "registry+https://github.com/rust-lang/crates.io-index" 1375 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" 1376 | dependencies = [ 1377 | "form_urlencoded", 1378 | "idna", 1379 | "percent-encoding", 1380 | ] 1381 | 1382 | [[package]] 1383 | name = "utf8_iter" 1384 | version = "1.0.4" 1385 | source = "registry+https://github.com/rust-lang/crates.io-index" 1386 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 1387 | 1388 | [[package]] 1389 | name = "utf8parse" 1390 | version = "0.2.2" 1391 | source = "registry+https://github.com/rust-lang/crates.io-index" 1392 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 1393 | 1394 | [[package]] 1395 | name = "vcpkg" 1396 | version = "0.2.15" 1397 | source = "registry+https://github.com/rust-lang/crates.io-index" 1398 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1399 | 1400 | [[package]] 1401 | name = "want" 1402 | version = "0.3.1" 1403 | source = "registry+https://github.com/rust-lang/crates.io-index" 1404 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1405 | dependencies = [ 1406 | "try-lock", 1407 | ] 1408 | 1409 | [[package]] 1410 | name = "wasi" 1411 | version = "0.11.0+wasi-snapshot-preview1" 1412 | source = "registry+https://github.com/rust-lang/crates.io-index" 1413 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1414 | 1415 | [[package]] 1416 | name = "wasi" 1417 | version = "0.14.2+wasi-0.2.4" 1418 | source = "registry+https://github.com/rust-lang/crates.io-index" 1419 | checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" 1420 | dependencies = [ 1421 | "wit-bindgen-rt", 1422 | ] 1423 | 1424 | [[package]] 1425 | name = "wasm-bindgen" 1426 | version = "0.2.100" 1427 | source = "registry+https://github.com/rust-lang/crates.io-index" 1428 | checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" 1429 | dependencies = [ 1430 | "cfg-if", 1431 | "once_cell", 1432 | "rustversion", 1433 | "wasm-bindgen-macro", 1434 | ] 1435 | 1436 | [[package]] 1437 | name = "wasm-bindgen-backend" 1438 | version = "0.2.100" 1439 | source = "registry+https://github.com/rust-lang/crates.io-index" 1440 | checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" 1441 | dependencies = [ 1442 | "bumpalo", 1443 | "log", 1444 | "proc-macro2", 1445 | "quote", 1446 | "syn", 1447 | "wasm-bindgen-shared", 1448 | ] 1449 | 1450 | [[package]] 1451 | name = "wasm-bindgen-futures" 1452 | version = "0.4.50" 1453 | source = "registry+https://github.com/rust-lang/crates.io-index" 1454 | checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" 1455 | dependencies = [ 1456 | "cfg-if", 1457 | "js-sys", 1458 | "once_cell", 1459 | "wasm-bindgen", 1460 | "web-sys", 1461 | ] 1462 | 1463 | [[package]] 1464 | name = "wasm-bindgen-macro" 1465 | version = "0.2.100" 1466 | source = "registry+https://github.com/rust-lang/crates.io-index" 1467 | checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" 1468 | dependencies = [ 1469 | "quote", 1470 | "wasm-bindgen-macro-support", 1471 | ] 1472 | 1473 | [[package]] 1474 | name = "wasm-bindgen-macro-support" 1475 | version = "0.2.100" 1476 | source = "registry+https://github.com/rust-lang/crates.io-index" 1477 | checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" 1478 | dependencies = [ 1479 | "proc-macro2", 1480 | "quote", 1481 | "syn", 1482 | "wasm-bindgen-backend", 1483 | "wasm-bindgen-shared", 1484 | ] 1485 | 1486 | [[package]] 1487 | name = "wasm-bindgen-shared" 1488 | version = "0.2.100" 1489 | source = "registry+https://github.com/rust-lang/crates.io-index" 1490 | checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" 1491 | dependencies = [ 1492 | "unicode-ident", 1493 | ] 1494 | 1495 | [[package]] 1496 | name = "web-sys" 1497 | version = "0.3.77" 1498 | source = "registry+https://github.com/rust-lang/crates.io-index" 1499 | checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" 1500 | dependencies = [ 1501 | "js-sys", 1502 | "wasm-bindgen", 1503 | ] 1504 | 1505 | [[package]] 1506 | name = "winapi" 1507 | version = "0.3.9" 1508 | source = "registry+https://github.com/rust-lang/crates.io-index" 1509 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 1510 | dependencies = [ 1511 | "winapi-i686-pc-windows-gnu", 1512 | "winapi-x86_64-pc-windows-gnu", 1513 | ] 1514 | 1515 | [[package]] 1516 | name = "winapi-i686-pc-windows-gnu" 1517 | version = "0.4.0" 1518 | source = "registry+https://github.com/rust-lang/crates.io-index" 1519 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1520 | 1521 | [[package]] 1522 | name = "winapi-x86_64-pc-windows-gnu" 1523 | version = "0.4.0" 1524 | source = "registry+https://github.com/rust-lang/crates.io-index" 1525 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1526 | 1527 | [[package]] 1528 | name = "windows-link" 1529 | version = "0.1.1" 1530 | source = "registry+https://github.com/rust-lang/crates.io-index" 1531 | checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" 1532 | 1533 | [[package]] 1534 | name = "windows-registry" 1535 | version = "0.4.0" 1536 | source = "registry+https://github.com/rust-lang/crates.io-index" 1537 | checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" 1538 | dependencies = [ 1539 | "windows-result", 1540 | "windows-strings", 1541 | "windows-targets 0.53.0", 1542 | ] 1543 | 1544 | [[package]] 1545 | name = "windows-result" 1546 | version = "0.3.4" 1547 | source = "registry+https://github.com/rust-lang/crates.io-index" 1548 | checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" 1549 | dependencies = [ 1550 | "windows-link", 1551 | ] 1552 | 1553 | [[package]] 1554 | name = "windows-strings" 1555 | version = "0.3.1" 1556 | source = "registry+https://github.com/rust-lang/crates.io-index" 1557 | checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" 1558 | dependencies = [ 1559 | "windows-link", 1560 | ] 1561 | 1562 | [[package]] 1563 | name = "windows-sys" 1564 | version = "0.52.0" 1565 | source = "registry+https://github.com/rust-lang/crates.io-index" 1566 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1567 | dependencies = [ 1568 | "windows-targets 0.52.6", 1569 | ] 1570 | 1571 | [[package]] 1572 | name = "windows-sys" 1573 | version = "0.59.0" 1574 | source = "registry+https://github.com/rust-lang/crates.io-index" 1575 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1576 | dependencies = [ 1577 | "windows-targets 0.52.6", 1578 | ] 1579 | 1580 | [[package]] 1581 | name = "windows-targets" 1582 | version = "0.52.6" 1583 | source = "registry+https://github.com/rust-lang/crates.io-index" 1584 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1585 | dependencies = [ 1586 | "windows_aarch64_gnullvm 0.52.6", 1587 | "windows_aarch64_msvc 0.52.6", 1588 | "windows_i686_gnu 0.52.6", 1589 | "windows_i686_gnullvm 0.52.6", 1590 | "windows_i686_msvc 0.52.6", 1591 | "windows_x86_64_gnu 0.52.6", 1592 | "windows_x86_64_gnullvm 0.52.6", 1593 | "windows_x86_64_msvc 0.52.6", 1594 | ] 1595 | 1596 | [[package]] 1597 | name = "windows-targets" 1598 | version = "0.53.0" 1599 | source = "registry+https://github.com/rust-lang/crates.io-index" 1600 | checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" 1601 | dependencies = [ 1602 | "windows_aarch64_gnullvm 0.53.0", 1603 | "windows_aarch64_msvc 0.53.0", 1604 | "windows_i686_gnu 0.53.0", 1605 | "windows_i686_gnullvm 0.53.0", 1606 | "windows_i686_msvc 0.53.0", 1607 | "windows_x86_64_gnu 0.53.0", 1608 | "windows_x86_64_gnullvm 0.53.0", 1609 | "windows_x86_64_msvc 0.53.0", 1610 | ] 1611 | 1612 | [[package]] 1613 | name = "windows_aarch64_gnullvm" 1614 | version = "0.52.6" 1615 | source = "registry+https://github.com/rust-lang/crates.io-index" 1616 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1617 | 1618 | [[package]] 1619 | name = "windows_aarch64_gnullvm" 1620 | version = "0.53.0" 1621 | source = "registry+https://github.com/rust-lang/crates.io-index" 1622 | checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" 1623 | 1624 | [[package]] 1625 | name = "windows_aarch64_msvc" 1626 | version = "0.52.6" 1627 | source = "registry+https://github.com/rust-lang/crates.io-index" 1628 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1629 | 1630 | [[package]] 1631 | name = "windows_aarch64_msvc" 1632 | version = "0.53.0" 1633 | source = "registry+https://github.com/rust-lang/crates.io-index" 1634 | checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" 1635 | 1636 | [[package]] 1637 | name = "windows_i686_gnu" 1638 | version = "0.52.6" 1639 | source = "registry+https://github.com/rust-lang/crates.io-index" 1640 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1641 | 1642 | [[package]] 1643 | name = "windows_i686_gnu" 1644 | version = "0.53.0" 1645 | source = "registry+https://github.com/rust-lang/crates.io-index" 1646 | checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" 1647 | 1648 | [[package]] 1649 | name = "windows_i686_gnullvm" 1650 | version = "0.52.6" 1651 | source = "registry+https://github.com/rust-lang/crates.io-index" 1652 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1653 | 1654 | [[package]] 1655 | name = "windows_i686_gnullvm" 1656 | version = "0.53.0" 1657 | source = "registry+https://github.com/rust-lang/crates.io-index" 1658 | checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" 1659 | 1660 | [[package]] 1661 | name = "windows_i686_msvc" 1662 | version = "0.52.6" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1665 | 1666 | [[package]] 1667 | name = "windows_i686_msvc" 1668 | version = "0.53.0" 1669 | source = "registry+https://github.com/rust-lang/crates.io-index" 1670 | checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" 1671 | 1672 | [[package]] 1673 | name = "windows_x86_64_gnu" 1674 | version = "0.52.6" 1675 | source = "registry+https://github.com/rust-lang/crates.io-index" 1676 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1677 | 1678 | [[package]] 1679 | name = "windows_x86_64_gnu" 1680 | version = "0.53.0" 1681 | source = "registry+https://github.com/rust-lang/crates.io-index" 1682 | checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" 1683 | 1684 | [[package]] 1685 | name = "windows_x86_64_gnullvm" 1686 | version = "0.52.6" 1687 | source = "registry+https://github.com/rust-lang/crates.io-index" 1688 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1689 | 1690 | [[package]] 1691 | name = "windows_x86_64_gnullvm" 1692 | version = "0.53.0" 1693 | source = "registry+https://github.com/rust-lang/crates.io-index" 1694 | checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" 1695 | 1696 | [[package]] 1697 | name = "windows_x86_64_msvc" 1698 | version = "0.52.6" 1699 | source = "registry+https://github.com/rust-lang/crates.io-index" 1700 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1701 | 1702 | [[package]] 1703 | name = "windows_x86_64_msvc" 1704 | version = "0.53.0" 1705 | source = "registry+https://github.com/rust-lang/crates.io-index" 1706 | checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" 1707 | 1708 | [[package]] 1709 | name = "winnow" 1710 | version = "0.7.10" 1711 | source = "registry+https://github.com/rust-lang/crates.io-index" 1712 | checksum = "c06928c8748d81b05c9be96aad92e1b6ff01833332f281e8cfca3be4b35fc9ec" 1713 | dependencies = [ 1714 | "memchr", 1715 | ] 1716 | 1717 | [[package]] 1718 | name = "wit-bindgen-rt" 1719 | version = "0.39.0" 1720 | source = "registry+https://github.com/rust-lang/crates.io-index" 1721 | checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" 1722 | dependencies = [ 1723 | "bitflags", 1724 | ] 1725 | 1726 | [[package]] 1727 | name = "writeable" 1728 | version = "0.6.1" 1729 | source = "registry+https://github.com/rust-lang/crates.io-index" 1730 | checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" 1731 | 1732 | [[package]] 1733 | name = "yoke" 1734 | version = "0.8.0" 1735 | source = "registry+https://github.com/rust-lang/crates.io-index" 1736 | checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc" 1737 | dependencies = [ 1738 | "serde", 1739 | "stable_deref_trait", 1740 | "yoke-derive", 1741 | "zerofrom", 1742 | ] 1743 | 1744 | [[package]] 1745 | name = "yoke-derive" 1746 | version = "0.8.0" 1747 | source = "registry+https://github.com/rust-lang/crates.io-index" 1748 | checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" 1749 | dependencies = [ 1750 | "proc-macro2", 1751 | "quote", 1752 | "syn", 1753 | "synstructure", 1754 | ] 1755 | 1756 | [[package]] 1757 | name = "zerofrom" 1758 | version = "0.1.6" 1759 | source = "registry+https://github.com/rust-lang/crates.io-index" 1760 | checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" 1761 | dependencies = [ 1762 | "zerofrom-derive", 1763 | ] 1764 | 1765 | [[package]] 1766 | name = "zerofrom-derive" 1767 | version = "0.1.6" 1768 | source = "registry+https://github.com/rust-lang/crates.io-index" 1769 | checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" 1770 | dependencies = [ 1771 | "proc-macro2", 1772 | "quote", 1773 | "syn", 1774 | "synstructure", 1775 | ] 1776 | 1777 | [[package]] 1778 | name = "zeroize" 1779 | version = "1.8.1" 1780 | source = "registry+https://github.com/rust-lang/crates.io-index" 1781 | checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1782 | 1783 | [[package]] 1784 | name = "zerotrie" 1785 | version = "0.2.2" 1786 | source = "registry+https://github.com/rust-lang/crates.io-index" 1787 | checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595" 1788 | dependencies = [ 1789 | "displaydoc", 1790 | "yoke", 1791 | "zerofrom", 1792 | ] 1793 | 1794 | [[package]] 1795 | name = "zerovec" 1796 | version = "0.11.2" 1797 | source = "registry+https://github.com/rust-lang/crates.io-index" 1798 | checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428" 1799 | dependencies = [ 1800 | "yoke", 1801 | "zerofrom", 1802 | "zerovec-derive", 1803 | ] 1804 | 1805 | [[package]] 1806 | name = "zerovec-derive" 1807 | version = "0.11.1" 1808 | source = "registry+https://github.com/rust-lang/crates.io-index" 1809 | checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" 1810 | dependencies = [ 1811 | "proc-macro2", 1812 | "quote", 1813 | "syn", 1814 | ] 1815 | --------------------------------------------------------------------------------