From 7f4c586fd3160b99820cabf2b58e9ad8cbdb5111 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:13:51 +0100 Subject: [PATCH 01/21] mcp-apps-cli helper: opt-in sign-in for MCP servers behind OAuth The helper's connection to a server can't use Claude Code's sign-in, which the helper never reads. For a server the person chooses, the helper can sign in itself, as its own second grant, and only then: - A new setting, "Own sign-in (OAuth)", works like "Structured results from text": empty by default, MCP server names separated by commas. The mod says with each request that names a server whether it is listed; the helper's connection carries its token only for a listed server, and taking a name off the list stops the use at once. - `mcp-apps-cli-helper signin ` says what the sign-in is (a second grant with its own client registration, tokens in one file only the person can read, not encrypted, how to end it) and asks to continue, no by default. Without a terminal it refuses unless `--yes` is given. Then: protected resource metadata, dynamic client registration, authorization code with PKCE on a loopback address, and refresh, as rmcp's `auth` feature does them. - `mcp-apps-cli-helper signout ` asks the server to revoke the tokens where it publishes a revocation endpoint (RFC 7009), says honestly when it doesn't, and deletes the file. - A session that uses the helper's own sign-in for a server says so once, in the debug log and in the /discover answer. - A 401 from a server that isn't listed no longer points to `signin`; it says the helper doesn't share Claude Code's sign-in. One for a listed server says to sign in again. - One folder for the tokens (~/.cache/mcp-apps-cli/oauth, or MCP_APPS_CLI_OAUTH_DIR), and only https or loopback addresses. Only streamable HTTP, and not a server whose config sets its own Authorization header. Tests: the stand-in server that needs sign-in, in both forms of the connection, now also checks the opt-in, the refusal without a terminal, revocation, and a server without a revocation endpoint. --- .../apps/claude-code/helper-rs/Cargo.toml | 3 +- .../apps/claude-code/helper-rs/src/main.rs | 9 + .../apps/claude-code/helper-rs/src/mcp.rs | 275 +++++++++++++++- .../apps/claude-code/helper-rs/src/oauth.rs | 307 ++++++++++++++++++ .../apps/claude-code/helper-rs/src/server.rs | 7 +- .../apps/claude-code/helper-rs/src/store.rs | 5 + .../apps/claude-code/helper-rs/tests/gate.rs | 172 +++++++++- .../helper-rs/tests/oauth-server.mjs | 194 +++++++++++ .../mod/.claude-plugin/plugin.json | 6 + .../apps/claude-code/mod/hooks/helper.ts | 11 + .../apps/claude-code/mod/hooks/settings.ts | 12 + polyfills/apps/claude-code/mod/hooks/state.ts | 2 +- .../claude-code/mod/tests/mcp-apps.test.tsx | 26 +- 13 files changed, 1010 insertions(+), 19 deletions(-) create mode 100644 polyfills/apps/claude-code/helper-rs/src/oauth.rs create mode 100644 polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs diff --git a/polyfills/apps/claude-code/helper-rs/Cargo.toml b/polyfills/apps/claude-code/helper-rs/Cargo.toml index 691f0387..185fecaa 100644 --- a/polyfills/apps/claude-code/helper-rs/Cargo.toml +++ b/polyfills/apps/claude-code/helper-rs/Cargo.toml @@ -13,7 +13,8 @@ members = ["crates/render", "crates/pictures"] anyhow = "1.0.104" hex = "0.4.3" libc = "0.2.191" -rmcp = { version = "3.11.0", default-features = false, features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest"] } +rmcp = { version = "3.11.0", default-features = false, features = ["auth", "client", "transport-child-process", "transport-streamable-http-client-reqwest"] } +async-trait = "0.1" reqwest = { version = "0.13", default-features = false } http = "1" serde = { version = "1.0.229", features = ["derive"] } diff --git a/polyfills/apps/claude-code/helper-rs/src/main.rs b/polyfills/apps/claude-code/helper-rs/src/main.rs index b660ca9f..448a415c 100644 --- a/polyfills/apps/claude-code/helper-rs/src/main.rs +++ b/polyfills/apps/claude-code/helper-rs/src/main.rs @@ -8,6 +8,7 @@ mod chrome; mod fetch_browser; mod config; mod mcp; +mod oauth; mod out; mod server; mod sse; @@ -94,6 +95,14 @@ fn main() -> Result<()> { tmp::reap(pid(2), pid(3)); return Ok(()); } + // `signin `: the person signs in to a server that needs it (oauth.rs). + if words.get(1).map(String::as_str) == Some("signin") { + return tokio::runtime::Builder::new_multi_thread().enable_all().build()?.block_on(oauth::cli(parse_args(), &words)); + } + // `signout `: the person ends it (revoked where the server offers that). + if words.get(1).map(String::as_str) == Some("signout") { + return tokio::runtime::Builder::new_multi_thread().enable_all().build()?.block_on(oauth::signout(parse_args(), &words)); + } tokio::runtime::Builder::new_multi_thread().enable_all().build()?.block_on(run()) } diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 3b995c6e..bd2b4794 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -11,7 +11,7 @@ //! flight to the server and closes the connection (model/AppsViews.tla, //! FixAtSend and FixRevoke). -use std::collections::{BTreeMap, HashMap}; +use std::collections::{BTreeMap, HashMap, HashSet}; use std::future::Future; use std::path::PathBuf; use std::pin::Pin; @@ -20,7 +20,7 @@ use std::sync::Arc; use anyhow::{Context, Result, anyhow, bail}; use rmcp::ServiceExt; use rmcp::model::{ClientCapabilities, ClientConfig, Implementation, ProtocolVersion}; -use rmcp::service::{ClientInitializeError, ClientLifecycleMode, ClientServiceExt, RoleClient, RunningService}; +use rmcp::service::{ClientInitializeError, ClientLifecycleMode, ClientServiceExt, RoleClient, RunningService, ServiceError}; use rmcp::transport::streamable_http_client::StreamableHttpClientTransportConfig; use rmcp::transport::{ConfigureCommandExt, StreamableHttpClientTransport, TokioChildProcess}; use serde_json::{Map, Value, json}; @@ -48,6 +48,11 @@ pub struct Clients { open: Mutex>, discovered: Mutex>, gates: std::sync::Mutex>, + /// The servers the person listed under "Own sign-in (OAuth)": the mod says + /// so with each request that names a server. Empty unless it does. + own_sign_in: std::sync::Mutex>, + /// The servers whose open connection carries the helper's own sign-in. + signed_in: std::sync::Mutex>, ask: Asker, } @@ -84,6 +89,8 @@ impl Clients { open: Mutex::new(HashMap::new()), discovered: Mutex::new(HashMap::new()), gates: std::sync::Mutex::new(HashMap::new()), + own_sign_in: std::sync::Mutex::new(HashSet::new()), + signed_in: std::sync::Mutex::new(HashSet::new()), ask, } } @@ -161,6 +168,28 @@ impl Clients { true } + /// Whether the person listed `server` under "Own sign-in (OAuth)", as the + /// mod says with each request. A change closes the connection, so the next + /// one is made as the setting now is: removing a name stops the use of its + /// token at once. + pub async fn set_own_sign_in(&self, server: &str, listed: bool) { + let changed = { + let mut own = self.own_sign_in.lock().unwrap(); + if listed { own.insert(server.to_string()) } else { own.remove(server) } + }; + if changed { + if let Some((client, _)) = self.open.lock().await.remove(server) { + client.cancellation_token().cancel(); + } + self.signed_in.lock().unwrap().remove(server); + } + } + + /// Whether the open connection to `server` carries the helper's own sign-in. + pub fn uses_own_sign_in(&self, server: &str) -> bool { + self.signed_in.lock().unwrap().contains(server) + } + /// The entry Claude Code would use for `server`, or why none is used /// (see config.rs): nothing is started, sent or expanded before this. fn entry(&self, server: &str) -> Result { @@ -185,7 +214,14 @@ impl Clients { if self.revocation(server) > epoch { bail!("Claude Code stopped using MCP server \"{server}\""); } - let client = Arc::new(connect(&entry.config, &self.cwd).await.with_context(|| format!("connecting to {server}"))?); + let own = self.own_sign_in.lock().unwrap().contains(server); + let (client, signed_in) = connect(&entry.config, &self.cwd, server, own).await.with_context(|| format!("connecting to {server}"))?; + if signed_in { + self.signed_in.lock().unwrap().insert(server.to_string()); + } else { + self.signed_in.lock().unwrap().remove(server); + } + let client = Arc::new(client); open.insert(server.to_string(), (client.clone(), entry.scope)); Ok((client, entry.scope)) }) @@ -202,7 +238,28 @@ impl Clients { let mut given = given; let (client, scope) = self.client_and_scope(server, &mut given).await?; let epoch = self.admit(server, given).await?; - Ok((self.guarded(server, epoch, op(client)).await?, scope)) + match self.guarded(server, epoch, op(client)).await { + Ok(result) => Ok((result, scope)), + Err(error) => Err(self.sign_in_wanted(server, error).await), + } + } + + /// A request the server answered with a 401: one that asks for sign-in + /// only past `server/discover` (2026-07-28 has no handshake to refuse), + /// or a sign-in that ended and couldn't be refreshed. The error says what + /// to do, and the connection is closed, so the next request opens one + /// with the sign-in kept by then. Any other error is passed on as it is. + async fn sign_in_wanted(&self, server: &str, error: anyhow::Error) -> anyhow::Error { + if !error.downcast_ref::().is_some_and(ServiceError::is_authorization_required) { + return error; + } + if let Some((client, _)) = self.open.lock().await.remove(server) { + client.cancellation_token().cancel(); + } + match self.entry(server) { + Ok(entry) if can_sign_in(&entry.config) => anyhow!("{error:#}{}", sign_in_hint(server, self.own_sign_in.lock().unwrap().contains(server))), + _ => error, + } } /// The server's tools, as the mod and the views need them: those with a @@ -214,7 +271,9 @@ impl Clients { return Ok(found.clone()); } } - let (tools, scope) = self.request(server, None, |client| async move { client.list_all_tools().await.map_err(|e| anyhow!("{e}")) }).await?; + // A 401 keeps its type: `sign_in_wanted` reads it. + let list = |client: Client| async move { client.list_all_tools().await.map_err(|e| if e.is_authorization_required() { e.into() } else { anyhow!("{e}") }) }; + let (tools, scope) = self.request(server, None, list).await?; let mut with_ui = Map::new(); let mut visibility = Map::new(); let mut definitions = Map::new(); @@ -366,7 +425,40 @@ fn startup_error(error: ClientInitializeError) -> anyhow::Error { } } -async fn connect(config: &Value, cwd: &PathBuf) -> Result> { +/// Whether `signin` (oauth.rs) can help with a server that answers 401: one +/// over streamable HTTP, at an address the helper signs in to, with no +/// `Authorization` header of the person's own (that one is sent instead). +fn can_sign_in(config: &Value) -> bool { + config::kind(config) == "http" + && !headers(config).contains_key(http::header::AUTHORIZATION) + && config.get("url").and_then(Value::as_str).is_some_and(crate::oauth::allowed) +} + +/// What to say about a server that wants sign-in, after its error: for one +/// the person listed under "Own sign-in (OAuth)", to sign in again; for any +/// other, that the helper doesn't share Claude Code's sign-in. It never +/// pushes a server that isn't listed towards `signin`. +fn sign_in_hint(name: &str, listed: bool) -> String { + if listed { + format!(" (signed out or expired: run `mcp-apps-cli-helper signin {name}`)") + } else { + " (this server needs sign-in, which the helper doesn't share with Claude Code: see \"Servers that need sign-in\" in the README)".to_string() + } +} + +/// Why a connection over streamable HTTP didn't start, with what to do when +/// the server wants sign-in: its 401 to `server/discover` or to `initialize` +/// (whichever the connection got to), or a sign-in kept here that no longer +/// works. +fn sign_in_error(name: &str, config: &Value, listed: bool, error: ClientInitializeError) -> anyhow::Error { + let wanted = error.is_authorization_required() && can_sign_in(config); + let error = startup_error(error); + if wanted { anyhow!("{error:#}{}", sign_in_hint(name, listed)) } else { error } +} + +/// A connection to `name`, and whether it carries the helper's own sign-in +/// (`own`: the person listed the server for it). +async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result<(RunningService, bool)> { let url = config.get("url").and_then(Value::as_str); match config::kind(config) { "http" => { @@ -376,15 +468,25 @@ async fn connect(config: &Value, cwd: &PathBuf) -> Result client_info().serve_with_lifecycle(StreamableHttpClientTransport::with_client(auth, transport_config), lifecycle()).await, + None => client_info().serve_with_lifecycle(StreamableHttpClientTransport::from_config(transport_config), lifecycle()).await, + }; + started.map(|service| (service, used)).map_err(|e| sign_in_error(name, config, own, e)) } // The HTTP+SSE transport is the 2024-11-05 revision's (replaced in // 2025-03-26): a server that offers it speaks a 2025 revision, so it // gets the handshake, at 2025-11-25. "sse" => { let url = url.ok_or_else(|| anyhow!("an sse server needs a url"))?; - Ok(client_info().serve(crate::sse::connect(url, headers(config)).await?).await?) + Ok((client_info().serve(crate::sse::connect(url, headers(config)).await?).await?, false)) } _ => { let command = config.get("command").and_then(Value::as_str).ok_or_else(|| anyhow!("a stdio server needs a command"))?; @@ -409,7 +511,7 @@ async fn connect(config: &Value, cwd: &PathBuf) -> Result format!("{error:#}"), Ok(Ok(_)) => panic!("connected to a server that refuses everything"), Err(_) => panic!("timed out"), @@ -551,4 +653,151 @@ mod tests { tokio::time::sleep(Duration::from_millis(500)).await; assert!(sent(&elsewhere).is_empty(), "the other origin was sent {:?}", sent(&elsewhere)); } + + /// The stand-in server that needs sign-in (tests/oauth-server.mjs): + /// its child, its url and its request log. + struct OAuthServer { + child: std::process::Child, + url: String, + log: PathBuf, + } + + impl OAuthServer { + /// One whose tokens last `lasts` seconds and that serves `serves`: + /// `modern` (2026-07-28 only), `legacy` (the 2025 revisions only), + /// `dual`, or `open` (modern, asking for the token only past + /// `server/discover`). + fn start(dir: &std::path::Path, lasts: u64, serves: &str) -> Self { + use std::io::BufRead; + let log = dir.join(format!("requests-{serves}.log")); + let mut child = std::process::Command::new("node") + .arg(std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("tests").join("oauth-server.mjs")) + .args([log.to_str().unwrap(), &lasts.to_string(), serves]) + .stdout(std::process::Stdio::piped()) + .spawn() + .expect("node starts the stand-in server"); + let mut line = String::new(); + std::io::BufReader::new(child.stdout.take().unwrap()).read_line(&mut line).unwrap(); + let port = line.trim().strip_prefix("listening ").expect("the stand-in server names its port"); + OAuthServer { child, url: format!("http://127.0.0.1:{port}/mcp"), log } + } + fn requests(&self) -> Vec { + std::fs::read_to_string(&self.log).unwrap_or_default().lines().map(str::to_string).collect() + } + fn count(&self, line: &str) -> usize { + self.requests().iter().filter(|r| r.as_str() == line).count() + } + /// A helper that uses it as "docs", with these headers of the person's own. + fn clients(&self, headers: Value) -> Clients { + let clients = self.clients_unlisted(headers); + clients.own_sign_in.lock().unwrap().insert("docs".to_string()); + clients + } + /// The same, the person not having listed it under "Own sign-in (OAuth)". + fn clients_unlisted(&self, headers: Value) -> Clients { + let config = json!({"mcpServers": {"docs": {"type": "http", "url": self.url, "headers": headers}}}).to_string(); + let args = Args { mcp_config: vec![config], ..Args::default() }; + Clients::with_asker(args, std::env::temp_dir(), Arc::new(|_| Box::pin(async { Some(1) }))) + } + /// The person signing in: the address `signin` shows is opened as a browser would. + async fn sign_in(&self) -> anyhow::Result<()> { + crate::oauth::signin("docs", &self.url, |address| { + let address = address.to_string(); + tokio::spawn(async move { + let _ = reqwest::get(address).await; + }); + }) + .await + } + } + + impl Drop for OAuthServer { + fn drop(&mut self) { + let _ = self.child.kill(); + let _ = self.child.wait(); + } + } + + // A server that needs sign-in (OAuth), in each form the helper's + // connection has: 2026-07-28 (`server/discover`, then each request on + // its own) and the 2025 handshake (`initialize`). The helper's own + // connection is refused (401) until the person signs in with `signin`, + // and the error says to; after it, the tools (with their UI) and the + // `ui://` resource are read with the token the helper holds, in the + // server's revision, and when the token ends it is refreshed. One test: + // it sets the tokens' folder for the process. + #[tokio::test] + async fn a_server_that_needs_sign_in_is_read_after_signin_and_refreshed_in_each_revision() { + let dir = std::env::temp_dir().join(format!("mcp-apps-oauth-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + // SAFETY: the only test that sets it, and nothing else here reads it concurrently. + unsafe { std::env::set_var("MCP_APPS_CLI_OAUTH_DIR", dir.join("tokens")) }; + let view = json!({"uri": "ui://demo/view.html"}); + let modes = ["modern", "legacy", "dual", "open"]; + for serves in modes { + // A token lasts 2 s, so a refresh is seen. + let server = OAuthServer::start(&dir, 2, serves); + let seen = || format!("{serves}: {:?}", server.requests()); + // The revision each request names once the connection has started. + let revision = if serves == "legacy" { "-" } else { "2026-07-28" }; + + // Not signed in: the server's 401, said with what to do, at the + // first request that needs the token, and nothing after it. + let refused = server.clients(json!({})).discover("docs", false).await.expect_err("an unauthenticated connection was accepted"); + assert!(format!("{refused:#}").contains("signed out or expired: run `mcp-apps-cli-helper signin docs`"), "{serves}: {refused:#}"); + let first_refused = if serves == "open" { "401 POST /mcp no tools/list 2026-07-28" } else { "401 POST /mcp no server/discover 2026-07-28" }; + assert_eq!(server.count(first_refused), 1, "{}", seen()); + assert!(!server.requests().iter().any(|r| r.starts_with("200 POST /mcp") && !r.contains("server/discover")), "{}", seen()); + // Not listed: the same 401, and no word of `signin`. + let unlisted = server.clients_unlisted(json!({})).discover("docs", false).await.expect_err("an unauthenticated connection was accepted"); + assert!(format!("{unlisted:#}").contains("see \"Servers that need sign-in\" in the README") && !format!("{unlisted:#}").contains("mcp-apps-cli-helper signin"), "{serves}: {unlisted:#}"); + // A header of the person's own is theirs to fix: `signin` isn't named. + let own = server.clients(json!({"Authorization": "Bearer mine"})).discover("docs", false).await.expect_err("a token of no one's was accepted"); + assert!(!format!("{own:#}").contains("signin"), "{serves}: {own:#}"); + + // Signed in: the tools and the resource are read, in the server's revision. + server.sign_in().await.expect("signin"); + assert_eq!((server.count("201 POST /register no register"), server.count("200 POST /token no authorization_code")), (1, 1), "{}", seen()); + // A server not listed doesn't use the token that is kept. + let unlisted = server.clients_unlisted(json!({})).discover("docs", false).await.expect_err("the token was used for a server that isn't listed"); + assert!(format!("{unlisted:#}").contains("Servers that need sign-in"), "{serves}: {unlisted:#}"); + let clients = server.clients(json!({})); + let found = clients.discover("docs", false).await.unwrap_or_else(|e| panic!("discover after sign-in: {e:#}; {}", seen())); + assert_eq!(found["tools"]["show"]["resourceUri"], "ui://demo/view.html", "{found}"); + let read = clients.read_resource("docs", view.clone(), None).await.unwrap_or_else(|e| panic!("resources/read after sign-in: {e:#}; {}", seen())); + assert!(read["contents"][0]["text"].as_str().unwrap().contains("signed-in view"), "{read}"); + assert_eq!(server.count(&format!("200 POST /mcp yes tools/list {revision}")), 1, "{}", seen()); + assert_eq!(server.count(&format!("200 POST /mcp yes resources/read {revision}")), 1, "{}", seen()); + // The handshake only where the server has it, and with the token. + assert_eq!(server.count("200 POST /mcp yes initialize -"), usize::from(serves == "legacy"), "{}", seen()); + assert_eq!(server.count("202 POST /mcp yes notifications/initialized -"), usize::from(serves == "legacy"), "{}", seen()); + + // The token ends: the next request refreshes it and goes on. + tokio::time::sleep(Duration::from_millis(2500)).await; + clients.read_resource("docs", view.clone(), None).await.unwrap_or_else(|e| panic!("resources/read after the token ended: {e:#}; {}", seen())); + assert!(server.count("200 POST /token no refresh_token") >= 1, "{}", seen()); + assert_eq!(server.count(&format!("200 POST /mcp yes resources/read {revision}")), 2, "{}", seen()); + + // A new helper uses the kept sign-in too. + server.clients(json!({})).read_resource("docs", view.clone(), None).await.unwrap_or_else(|e| panic!("a new helper with the kept sign-in: {e:#}; {}", seen())); + // Taking the name off the list stops the use of the token at once. + assert!(clients.uses_own_sign_in("docs")); + clients.set_own_sign_in("docs", false).await; + assert!(!clients.uses_own_sign_in("docs")); + let off = clients.read_resource("docs", view.clone(), None).await.expect_err("the token was used after the name was taken off the list"); + assert!(format!("{off:#}").contains("Servers that need sign-in"), "{serves}: {off:#}"); + } + // Each sign-in is in one file only this user can read. + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + let files: Vec<_> = std::fs::read_dir(dir.join("tokens")).unwrap().flatten().collect(); + assert_eq!(files.len(), modes.len()); + for file in files { + assert_eq!(file.metadata().unwrap().permissions().mode() & 0o777, 0o600); + } + } + let _ = std::fs::remove_dir_all(&dir); + } } diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs new file mode 100644 index 00000000..3db698e4 --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -0,0 +1,307 @@ +//! The helper's own sign-in (OAuth) for a server that needs it: off unless the +//! person lists the server under "Own sign-in (OAuth)" in `/config` and runs +//! `signin `. +//! +//! The helper's connection to a server is a second one (Claude Code gives a +//! plugin neither a tool's UI metadata nor its own connection), so Claude +//! Code's sign-in is not on it, and the helper never reads Claude Code's +//! stored credentials (docs/polyfill-contract.md, 6). What it can do, for a +//! server the person chose, is sign in itself, with the MCP authorization +//! spec's flow as rmcp implements it (protected resource metadata, dynamic +//! client registration, authorization code with PKCE, refresh). That is a +//! second grant, with its own life, so each step is the person's: +//! +//! - `mcp-apps-cli-helper signin ` says what that means, asks to +//! continue (default no), opens the person's browser at the server's +//! authorization page, takes the answer on a loopback address of its own, +//! and keeps the tokens (and the client the server registered) in a file +//! only the person can read (`folder`); +//! - `mcp-apps-cli-helper signout ` asks the server to revoke the +//! tokens where it offers that (RFC 7009) and deletes the file; +//! - the mod tells the helper, with each request that names a server, whether +//! the person listed it; only then does the helper's connection carry the +//! token (refreshed by rmcp when it ends). Nothing is written to Claude +//! Code's files. +//! +//! The helper uses it only for a server it may already use (config.rs), and +//! only over `https` or to a loopback address. + +use std::io::{BufRead, IsTerminal, Write}; +use std::path::PathBuf; +use std::time::Duration; + +use anyhow::{Context, Result, anyhow, bail}; +use async_trait::async_trait; +use rmcp::transport::auth::{AuthClient, AuthError, AuthorizationManager, AuthorizationRequest, AuthorizationSession, CredentialStore, StoredCredentials}; +use tokio::io::{AsyncReadExt, AsyncWriteExt}; +use tokio::net::TcpListener; + +/// How long `signin` waits for the person to answer in the browser. +const WAIT: Duration = Duration::from_secs(300); + +/// The one folder sign-ins are kept in: `$MCP_APPS_CLI_OAUTH_DIR` if it is +/// set (the tests use it), else `~/.cache/mcp-apps-cli/oauth`. +fn folder() -> Option { + if let Some(dir) = std::env::var_os("MCP_APPS_CLI_OAUTH_DIR").filter(|d| !d.is_empty()) { + return Some(PathBuf::from(dir)); + } + crate::tmp::home().map(|home| home.join(".cache").join("mcp-apps-cli").join("oauth")) +} + +/// The file for one server at one url, so a token is never used for another url. +fn file(name: &str, url: &str) -> Option { + folder().map(|folder| folder.join(crate::store::file_name(name, url))) +} + +/// The file a sign-in to one server at one url was kept in, if there is one. +fn kept_file(name: &str, url: &str) -> Option { + file(name, url).filter(|path| path.is_file()) +} + +/// The tokens of one server, in a file only the person can read. +struct FileStore { + path: PathBuf, +} + +fn failed(error: impl std::fmt::Display) -> AuthError { + AuthError::CredentialStoreError(error.to_string()) +} + +#[async_trait] +impl CredentialStore for FileStore { + async fn load(&self) -> Result, AuthError> { + match crate::store::read(&self.path) { + Some(value) => serde_json::from_value(value).map(Some).map_err(failed), + None => Ok(None), + } + } + + async fn save(&self, credentials: StoredCredentials) -> Result<(), AuthError> { + crate::store::write_json(&self.path, &serde_json::to_value(&credentials).map_err(failed)?).map_err(failed) + } + + async fn clear(&self) -> Result<(), AuthError> { + match std::fs::remove_file(&self.path) { + Err(e) if e.kind() != std::io::ErrorKind::NotFound => Err(failed(e)), + _ => Ok(()), + } + } +} + +/// A url the helper may sign in to or send a token to: `https`, or an address +/// on this machine itself (a token never travels in the clear over a network). +pub fn allowed(url: &str) -> bool { + url::Url::parse(url).is_ok_and(|u| { + u.scheme() == "https" + || (u.scheme() == "http" + && match u.host() { + Some(url::Host::Domain(host)) => host.eq_ignore_ascii_case("localhost") || host.to_ascii_lowercase().ends_with(".localhost"), + Some(url::Host::Ipv4(ip)) => ip.is_loopback(), + Some(url::Host::Ipv6(ip)) => ip.is_loopback(), + None => false, + }) + }) +} + +/// The client for `name` at `url`, carrying its token and refreshing it, if +/// the person signed in to it with `signin` (the caller has checked that they +/// listed the server). +pub async fn client(name: &str, url: &str) -> Result>> { + if !allowed(url) { + return Ok(None); + } + let Some(path) = kept_file(name, url) else { return Ok(None) }; + let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + manager.set_credential_store(FileStore { path }); + if !manager.initialize_from_store().await.map_err(|e| anyhow!("{e}"))? { + return Ok(None); + } + // No redirect is followed: the token goes to the server's own url only. + let http = reqwest::Client::builder().pool_max_idle_per_host(0).redirect(reqwest::redirect::Policy::none()).build()?; + Ok(Some(AuthClient::new(http, manager))) +} + +/// Signs in to `name` at `url`: `show` is given the address the person opens +/// (the CLI prints it and tries the browser). Returns when the tokens are kept. +pub async fn signin(name: &str, url: &str, show: impl FnOnce(&str)) -> Result<()> { + if !allowed(url) { + bail!("\"{name}\" is at {url}: the helper signs in only to an https address, or one on this machine"); + } + let path = file(name, url).context("no folder to keep the sign-in in")?; + crate::store::private_folder(path.parent().context("no folder to keep the sign-in in")?)?; + let listener = TcpListener::bind("127.0.0.1:0").await?; + let redirect = format!("http://127.0.0.1:{}/callback", listener.local_addr()?.port()); + let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + manager.set_credential_store(FileStore { path }); + let found = manager.resolve_metadata().await.map_err(|e| anyhow!("the server's sign-in page was not found: {e}"))?; + manager.set_metadata(found.metadata); + let request = AuthorizationRequest::new(redirect.clone()).with_client_name("mcp-apps-cli"); + let session = AuthorizationSession::new(manager, request).await.map_err(|(_, e)| anyhow!("{e}"))?; + show(&session.auth_url); + let callback = tokio::time::timeout(WAIT, wait_for_callback(&listener)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; + session.handle_callback_url(&format!("http://127.0.0.1:{}{callback}", listener.local_addr()?.port())).await.map_err(|e| anyhow!("{e}"))?; + Ok(()) +} + +/// The request target (`/callback?code=…&state=…`) of the browser's return. +async fn wait_for_callback(listener: &TcpListener) -> Result { + loop { + let (mut stream, peer) = listener.accept().await?; + if !peer.ip().is_loopback() { + continue; + } + let mut head = vec![0u8; 8192]; + let n = tokio::time::timeout(Duration::from_secs(5), stream.read(&mut head)).await.ok().and_then(Result::ok).unwrap_or(0); + let text = String::from_utf8_lossy(&head[..n]).to_string(); + let target = text.lines().next().and_then(|l| l.strip_prefix("GET ")).and_then(|l| l.split_whitespace().next()).unwrap_or("").to_string(); + let ours = target.starts_with("/callback?"); + let body = if ours { "Signed in

Signed in. You can close this tab." } else { "" }; + let status = if ours { "200 OK" } else { "404 Not Found" }; + let _ = stream + .write_all(format!("HTTP/1.1 {status}\r\ncontent-type: text/html\r\ncontent-length: {}\r\nconnection: close\r\n\r\n{body}", body.len()).as_bytes()) + .await; + if ours { + if target.contains("error=") { + bail!("the server refused the sign-in: {target}"); + } + return Ok(target); + } + } +} + +/// The server `signin` or `signout` is about, and its url. +fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { + let name = words.get(2).filter(|w| !w.starts_with("--")).with_context(|| format!("usage: mcp-apps-cli-helper {} ", words[1]))?; + let cwd = args.cwd.clone().unwrap_or_else(|| std::env::current_dir().unwrap_or_default()); + let entry = crate::config::resolve(args, &cwd, name).map_err(|why| anyhow!("not using MCP server \"{name}\": {why}"))?; + let url = entry.config["url"].as_str().context("only a server reached by a url needs sign-in")?.to_string(); + Ok((name.clone(), url)) +} + +/// What `signin` says before it opens the browser. +fn notice(name: &str, url: &str, path: &str) -> String { + format!( + "This signs the helper in to \"{name}\" ({url}) on its own.\n\ + It is not Claude Code's sign-in, which the helper never reads.\n\ + \n\ + \x20 - A second grant. The server registers \"mcp-apps-cli\" as a new client and\n\ + \x20 shows its own consent screen. Claude Code's `/mcp` neither lists this\n\ + \x20 grant nor clears it, and your organisation's MCP sign-in settings don't\n\ + \x20 apply to it.\n\ + \x20 - Kept on this machine. The access and refresh tokens go in one file only\n\ + \x20 you can read, not encrypted:\n\ + \x20 {path}\n\ + \x20 The helper refreshes them until you sign out.\n\ + \x20 - To end it: `mcp-apps-cli-helper signout {name}` deletes the file and asks\n\ + \x20 the server to revoke the tokens where it offers that. You can also remove\n\ + \x20 \"mcp-apps-cli\" from the server's list of connected apps.\n" + ) +} + +/// `mcp-apps-cli-helper signin [--yes] [--mcp-config …] [--cwd …]` +pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { + let (name, url) = target(&args, words)?; + let name = name.as_str(); + let path = file(name, &url).context("no folder to keep the sign-in in")?; + let shown = path.display().to_string(); + println!("{}", notice(name, &url, &shown)); + // `--yes`, or `MCP_APPS_CLI_SIGNIN_YES=1` for someone who always wants it + // (a terminal can't read /config): the text above is still shown. + let assumed = words.iter().any(|w| w == "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); + if !assumed { + if !std::io::stdin().is_terminal() { + bail!("signin asks a question: run it in a terminal, or pass --yes (or set MCP_APPS_CLI_SIGNIN_YES=1)"); + } + print!("Continue? [y/N] "); + std::io::stdout().flush()?; + let mut answer = String::new(); + std::io::stdin().lock().read_line(&mut answer)?; + if !matches!(answer.trim().to_ascii_lowercase().as_str(), "y" | "yes") { + println!("Not signed in to {name}. Nothing was kept."); + return Ok(()); + } + } + println!(); + signin(name, &url, |address| { + println!("Open this address to sign in to {name}:\n{address}"); + if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + open_browser(address); + } + }) + .await?; + println!("\nSigned in to {name}.\nTokens kept in {shown}\nSign out with: mcp-apps-cli-helper signout {name}"); + // From a terminal the helper can't read /config, so it can't know. + println!("If \"{name}\" isn't listed under \"Own sign-in (OAuth)\" in /config yet, add it there: the next tool call then shows the app."); + Ok(()) +} + +/// Asks the server to revoke the tokens in `path` (RFC 7009): what to say about it. +async fn revoke(name: &str, url: &str, path: &std::path::Path) -> String { + let none = format!("{name} offers no way to revoke from here: remove \"mcp-apps-cli\" in its connected apps."); + let Some(kept) = crate::store::read(path) else { return none }; + let attempt = async { + let manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + let found = manager.resolve_metadata().await.map_err(|e| anyhow!("{e}"))?; + let Some(endpoint) = found.metadata.additional_fields.get("revocation_endpoint").and_then(|v| v.as_str()).map(str::to_string) else { return Ok(false) }; + if !allowed(&endpoint) { + bail!("its revocation address is {endpoint}, not https"); + } + let http = reqwest::Client::builder().timeout(Duration::from_secs(10)).redirect(reqwest::redirect::Policy::none()).build()?; + let client_id = kept["client_id"].as_str().unwrap_or_default(); + for (hint, field) in [("refresh_token", "refresh_token"), ("access_token", "access_token")] { + let Some(token) = kept["token_response"][field].as_str() else { continue }; + let body = url::form_urlencoded::Serializer::new(String::new()).append_pair("token", token).append_pair("token_type_hint", hint).append_pair("client_id", client_id).finish(); + let sent = http.post(&endpoint).header(reqwest::header::CONTENT_TYPE, "application/x-www-form-urlencoded").body(body).send().await?; + if !sent.status().is_success() { + bail!("it answered {}", sent.status()); + } + } + Ok::(true) + }; + match attempt.await { + Ok(true) => format!("Asked {name} to revoke the tokens."), + Ok(false) => none, + Err(why) => format!("{name} did not revoke the tokens ({why}): remove \"mcp-apps-cli\" in its connected apps."), + } +} + +/// `mcp-apps-cli-helper signout [--mcp-config …] [--cwd …]` +pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { + let (name, url) = target(&args, words)?; + let Some(path) = kept_file(&name, &url) else { + println!("The helper is not signed in to {name}: nothing to delete."); + return Ok(()); + }; + println!("{}", revoke(&name, &url, &path).await); + std::fs::remove_file(&path).with_context(|| format!("deleting {}", path.display()))?; + println!("Deleted {}", path.display()); + Ok(()) +} + +fn open_browser(address: &str) { + let (program, args): (&str, Vec<&str>) = if cfg!(target_os = "macos") { + ("open", vec![address]) + } else if cfg!(windows) { + ("rundll32", vec!["url.dll,FileProtocolHandler", address]) + } else { + ("xdg-open", vec![address]) + }; + let _ = std::process::Command::new(program).args(args).stdout(std::process::Stdio::null()).stderr(std::process::Stdio::null()).spawn(); +} + +#[cfg(test)] +mod tests { + use super::allowed; + + // A token goes only over https or to this machine itself, never in the + // clear over a network. + #[test] + fn only_https_and_loopback_addresses_are_allowed() { + for url in ["https://mcp.example.com/mcp", "http://localhost:3212/mcp", "http://127.0.0.1:8/mcp", "http://[::1]:9/mcp", "http://app.localhost/mcp"] { + assert!(allowed(url), "{url}"); + } + for url in ["http://10.1.2.3/mcp", "http://192.168.1.5/mcp", "http://box.local:1/mcp", "http://mcp.example.com/mcp", "http://127.0.0.1.example.com/mcp", "ftp://localhost/mcp", "not a url"] { + assert!(!allowed(url), "{url}"); + } + } +} diff --git a/polyfills/apps/claude-code/helper-rs/src/server.rs b/polyfills/apps/claude-code/helper-rs/src/server.rs index e9ba9efd..febcddf9 100644 --- a/polyfills/apps/claude-code/helper-rs/src/server.rs +++ b/polyfills/apps/claude-code/helper-rs/src/server.rs @@ -250,6 +250,11 @@ async fn route(helper: &Arc, path: &str, input: Value) -> Option Ok(helper.views.ping().await), // Whether app views have a browser to run in, and which. @@ -268,7 +273,7 @@ async fn route(helper: &Arc, path: &str, input: Value) -> Option { - let mut answer = json!({ "ok": true }); + let mut answer = json!({ "ok": true, "ownSignIn": helper.mcp.uses_own_sign_in(&server) }); if let (Value::Object(a), Value::Object(f)) = (&mut answer, found) { a.extend(f); } diff --git a/polyfills/apps/claude-code/helper-rs/src/store.rs b/polyfills/apps/claude-code/helper-rs/src/store.rs index 8cd84908..875a0084 100644 --- a/polyfills/apps/claude-code/helper-rs/src/store.rs +++ b/polyfills/apps/claude-code/helper-rs/src/store.rs @@ -125,6 +125,11 @@ pub fn write(path: &Path, state: &Value) -> Result<()> { state["origins"].as_array().into_iter().flatten().all(|o| o["localStorage"].as_array().is_none_or(Vec::is_empty) && o["indexedDB"].as_array().is_none_or(Vec::is_empty)); if empty { let _ = fs::remove_file(path); return Ok(()); } + write_json(path, state) +} + +/// Writes `state` as `path`, whole or not at all, readable by this user only. +pub fn write_json(path: &Path, state: &Value) -> Result<()> { let temp = path.with_extension(format!("json.{}.tmp", crate::tmp::random_hex(8)?)); let result = (|| -> Result<()> { let mut options = OpenOptions::new(); diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index a70954a9..60e95199 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -112,8 +112,12 @@ impl World { } /// The helper, started in this world as the mod starts it, and each name discovered. fn discover(&self, names: &[&str]) -> Vec<(String, Value)> { + self.discover_listed(names, false) + } + /// The same, the mod saying whether the person listed each server under "Own sign-in (OAuth)". + fn discover_listed(&self, names: &[&str], listed: bool) -> Vec<(String, Value)> { let helper = Helper::start(self); - let answers = names.iter().map(|n| (n.to_string(), helper.post("/discover", &json!({"server": n})))).collect(); + let answers = names.iter().map(|n| (n.to_string(), helper.post("/discover", &json!({"server": n, "ownSignIn": listed})))).collect(); // A started server's marker is written at once; let any that would be, be. std::thread::sleep(Duration::from_millis(300)); answers @@ -206,7 +210,9 @@ impl Helper { .env("TMPDIR", world.root.join("tmp")) .env("TMP", world.root.join("tmp")) .env("TEMP", world.root.join("tmp")) - .env("MCP_APPS_CLI_STORAGE_DIR", "off"); + .env("MCP_APPS_CLI_STORAGE_DIR", "off") + // Where sign-ins are kept. + .env("MCP_APPS_CLI_OAUTH_DIR", world.root.join("tokens")); // What Windows itself needs to start programs and open sockets (node // among them), and the transport a run asks for. for name in ["SystemRoot", "SYSTEMROOT", "windir", "PATHEXT", "ComSpec", "MCP_APPS_CLI_TRANSPORT"] { @@ -607,3 +613,165 @@ fn a_revoke_cancels_a_request_in_flight() { eventually("the helper never said it stopped waiting", || helper.said("busy").last().is_some_and(|m| m["busy"] == false)); eventually("the server is still running after the revoke", || !alive(pid)); } + +/// The stand-in server that needs sign-in (tests/oauth-server.mjs). +struct OAuthServer { + child: Child, + url: String, +} + +fn oauth_script() -> PathBuf { + Path::new(env!("CARGO_MANIFEST_DIR")).join("tests").join("oauth-server.mjs") +} + +impl OAuthServer { + /// One that serves `serves`: `modern` (2026-07-28 only) or `legacy` (the 2025 revisions only). + fn start(w: &World, serves: &str) -> Self { + let mut child = Command::new("node").arg(oauth_script()).arg(w.marker("oauth-requests")).args(["3600", serves]).stdout(Stdio::piped()).spawn().unwrap(); + let mut line = String::new(); + BufReader::new(child.stdout.take().unwrap()).read_line(&mut line).unwrap(); + let port = line.trim().strip_prefix("listening ").expect("the stand-in server names its port").to_string(); + OAuthServer { child, url: format!("http://127.0.0.1:{port}/mcp") } + } +} + +impl Drop for OAuthServer { + fn drop(&mut self) { + let _ = self.child.kill(); + let _ = self.child.wait(); + } +} + +/// `mcp-apps-cli-helper docs …`, run as from a terminal: no plugin +/// folder named, nothing on stdin. +fn terminal(w: &World, args: &[&str]) -> Command { + let mut command = Command::new(env!("CARGO_BIN_EXE_mcp-apps-cli-helper")); + command + .args(args) + .args(["--cwd", w.project.to_str().unwrap()]) + .current_dir(&w.project) + .env_clear() + .env("PATH", std::env::var("PATH").unwrap_or_default()) + .env("HOME", w.root.join("home")) + .env("USERPROFILE", w.root.join("home")) + .env("MCP_APPS_CLI_OAUTH_DIR", w.root.join("tokens")) + .env("MCP_APPS_CLI_NO_BROWSER", "1") + .stdin(Stdio::null()); + for name in ["SystemRoot", "SYSTEMROOT", "windir", "PATHEXT", "ComSpec"] { + if let Some(value) = std::env::var_os(name) { + command.env(name, value); + } + } + command +} + +// A server that needs sign-in (OAuth), whole, with the real binary, in each +// form the helper's connection has (2026-07-28 and the 2025 handshake). The +// helper's own sign-in is opt-in: a server that isn't listed under "Own +// sign-in (OAuth)" is refused with a pointer to the README, never to `signin`; +// `signin` asks first (and refuses without a terminal unless `--yes`), run as +// from a terminal with the person's browser played by node; a listed server +// is then discovered in the server's revision with the kept token, an +// unlisted one still isn't; and `signout` asks the server to revoke the +// tokens, deletes the file, and the listed server is refused again. +#[test] +fn the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_each_revision() { + for serves in ["modern", "legacy"] { + let w = World::new(&format!("{serves}-oauth")); + let server = OAuthServer::start(&w, serves); + let requests = || std::fs::read_to_string(w.marker("oauth-requests")).unwrap_or_default(); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + + // Not listed: the 401, with no push towards `signin`. + let why = refused(&w.discover(&["docs"]), "docs"); + assert!(why.contains("Auth required") && why.contains("Servers that need sign-in") && !why.contains("mcp-apps-cli-helper signin"), "{serves}: {why}"); + assert!(requests().contains("401 POST /mcp no server/discover 2026-07-28\n"), "{serves}: {}", requests()); + // Listed, not signed in: what to do. + let why = refused(&w.discover_listed(&["docs"], true), "docs"); + assert!(why.contains("signed out or expired: run `mcp-apps-cli-helper signin docs`"), "{serves}: {why}"); + + // Without a terminal, `signin` asks nothing and keeps nothing. + let silent = terminal(&w, &["signin", "docs"]).output().unwrap(); + assert!(!silent.status.success(), "{serves}: signin went on without a terminal"); + assert!(String::from_utf8_lossy(&silent.stderr).contains("signin asks a question: run it in a terminal, or pass --yes"), "{serves}: {}", String::from_utf8_lossy(&silent.stderr)); + assert!(!w.root.join("tokens").exists(), "{serves}: the refused signin kept something"); + + let mut signin = terminal(&w, &["signin", "docs", "--yes"]).stdout(Stdio::piped()).spawn().unwrap(); + let mut lines = BufReader::new(signin.stdout.take().unwrap()).lines(); + let mut shown = String::new(); + let address = loop { + let line = lines.next().expect("signin shows an address").unwrap(); + if line.starts_with("Open this address") { + break lines.next().unwrap().unwrap(); + } + shown.push_str(&line); + }; + assert!(shown.contains("a second grant") || shown.contains("A second grant"), "{serves}: {shown}"); + assert!(shown.contains("not encrypted") && shown.contains("signout docs"), "{serves}: {shown}"); + assert!(address.starts_with(&server.url.replace("/mcp", "/authorize?")), "{serves}: {address}"); + let browsed = Command::new("node").arg(oauth_script()).args(["browse", &address]).output().unwrap(); + assert!(browsed.status.success(), "{serves}: {}", String::from_utf8_lossy(&browsed.stdout)); + assert!(signin.wait().unwrap().success(), "{serves}: signin failed"); + + // Signed in but not listed: the token is not used. + let why = refused(&w.discover(&["docs"]), "docs"); + assert!(why.contains("Servers that need sign-in"), "{serves}: {why}"); + // Listed: used, and said so. + let answers = w.discover_listed(&["docs"], true); + let (_, docs) = answers.iter().find(|(n, _)| n == "docs").unwrap(); + assert_eq!(docs["ok"], true, "{serves}: {docs}; {}", requests()); + assert_eq!(docs["ownSignIn"], true, "{serves}: {docs}"); + assert_eq!(docs["tools"]["show"]["resourceUri"], "ui://demo/view.html", "{serves}: {docs}"); + let listed = if serves == "modern" { "200 POST /mcp yes tools/list 2026-07-28\n" } else { "200 POST /mcp yes tools/list -\n" }; + assert!(requests().contains(listed), "{serves}: {}", requests()); + assert_eq!(requests().contains("200 POST /mcp yes initialize -\n"), serves == "legacy", "{serves}: {}", requests()); + + // Signing out: revoked where the server offers it, file deleted. + let out = terminal(&w, &["signout", "docs"]).output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(out.status.success() && said.contains("Asked docs to revoke the tokens.") && said.contains("Deleted "), "{serves}: {said} {}", String::from_utf8_lossy(&out.stderr)); + assert!(requests().contains("200 POST /revoke no revoke\n"), "{serves}: {}", requests()); + assert!(std::fs::read_dir(w.root.join("tokens")).unwrap().next().is_none(), "{serves}: the file is still there"); + let why = refused(&w.discover_listed(&["docs"], true), "docs"); + assert!(why.contains("signed out or expired"), "{serves}: {why}"); + } +} + +// The server publishes no revocation endpoint: `signout` says so, honestly, +// and still deletes the file. +#[test] +fn signout_says_when_the_server_cannot_revoke() { + let w = World::new("no-revoke"); + let mut child = Command::new("node") + .arg(oauth_script()) + .arg(w.marker("oauth-requests")) + .args(["3600", "modern"]) + .env("OAUTH_NO_REVOKE", "1") + .stdout(Stdio::piped()) + .spawn() + .unwrap(); + let mut line = String::new(); + BufReader::new(child.stdout.take().unwrap()).read_line(&mut line).unwrap(); + let port = line.trim().strip_prefix("listening ").unwrap().to_string(); + let url = format!("http://127.0.0.1:{port}/mcp"); + w.claude_json(json!({"docs": {"type": "http", "url": url}}), json!({})); + // The persistent form of `--yes`: an environment variable, no question asked. + let mut signin = terminal(&w, &["signin", "docs"]).env("MCP_APPS_CLI_SIGNIN_YES", "1").stdout(Stdio::piped()).spawn().unwrap(); + let mut lines = BufReader::new(signin.stdout.take().unwrap()).lines(); + let address = loop { + if lines.next().unwrap().unwrap().starts_with("Open this address") { + break lines.next().unwrap().unwrap(); + } + }; + assert!(Command::new("node").arg(oauth_script()).args(["browse", &address]).output().unwrap().status.success()); + assert!(signin.wait().unwrap().success()); + let out = terminal(&w, &["signout", "docs"]).output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(said.contains("docs offers no way to revoke from here: remove \"mcp-apps-cli\" in its connected apps.") && said.contains("Deleted "), "{said}"); + assert!(std::fs::read_dir(w.root.join("tokens")).unwrap().next().is_none()); + // Nothing left to sign out of. + let again = String::from_utf8_lossy(&terminal(&w, &["signout", "docs"]).output().unwrap().stdout).to_string(); + assert!(again.contains("not signed in to docs") || again.contains("The helper is not signed in to docs"), "{again}"); + let _ = child.kill(); + let _ = child.wait(); +} diff --git a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs new file mode 100644 index 00000000..95e4123a --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs @@ -0,0 +1,194 @@ +// A stand-in MCP server that needs sign-in (OAuth), for the sign-in tests; +// run with `node` from PATH. Standard library only. +// +// node oauth-server.mjs [seconds a token lasts, default 3600] [modern|legacy|dual|open, default dual] +// node oauth-server.mjs browse +// +// First form: the authorization server and the protected resource of the +// MCP authorization spec, in one process, on a loopback port it prints +// (`listening `): +// /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server, +// POST /register (dynamic client registration), GET /authorize (approves +// at once, S256 PKCE), POST /token (authorization_code and refresh_token; +// a refresh token works once), and POST|DELETE /mcp, which answers 401 +// with a `WWW-Authenticate` naming the resource metadata unless the +// request carries a token issued here and not ended. With one, it is an +// MCP App's server: one tool whose `_meta.ui.resourceUri` is a `ui://` +// resource. It serves revision 2026-07-28 only (modern: `server/discover`, +// no `initialize`, each request naming the revision in its `_meta` and in +// MCP-Protocol-Version), the 2025 revisions only (legacy: `initialize`), +// or both (dual), answering as gate-server.mjs's revision servers do. +// "open" is modern, but `server/discover` needs no token: the 401 comes +// at the first request after it. +// Each request is appended to as " ", and one to /mcp with the +// revision its `_meta` names after that, or "-" for none. +// With OAUTH_NO_REVOKE set in the environment, it publishes no revocation endpoint. +// Second form: opens the way a browser does (follows redirects). + +import { createHash, randomUUID } from "node:crypto"; +import { appendFileSync } from "node:fs"; +import { createServer } from "node:http"; + +if (process.argv[2] === "browse") { + const answer = await fetch(process.argv[3]); + console.log(`browsed ${answer.status}`); + process.exit(answer.ok ? 0 : 1); +} + +const [log, lasts = "3600", serves = "dual"] = process.argv.slice(2); +const MODERN = "2026-07-28"; +const LEGACY = ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"]; +const modern = serves !== "legacy"; +const legacy = serves === "legacy" || serves === "dual"; +const VIEW = "ui://demo/view.html"; +const serverInfo = { name: `oauth-${serves}`, version: "0" }; +const codes = new Map(); // code -> { challenge, redirect } +const refresh = new Set(); +const tokens = new Map(); // access token -> end (ms) +const registered = new Set(); + +const issue = (res) => { + const access = `at-${randomUUID()}`; + const next = `rt-${randomUUID()}`; + tokens.set(access, Date.now() + Number(lasts) * 1000); + refresh.add(next); + res.writeHead(200, { "content-type": "application/json", "cache-control": "no-store" }); + res.end(JSON.stringify({ access_token: access, token_type: "Bearer", expires_in: Number(lasts), refresh_token: next })); +}; + +const server = createServer((req, res) => { + let body = ""; + req.on("data", (c) => (body += c)); + req.on("end", () => { + const origin = `http://${req.headers.host}`; + const url = new URL(req.url, origin); + const bearer = (req.headers.authorization ?? "").replace(/^Bearer /, ""); + let what = ""; + const note = (status) => appendFileSync(log, `${status} ${req.method} ${url.pathname} ${bearer ? "yes" : "no"} ${what}\n`); + const json = (status, value) => { + note(status); + res.writeHead(status, { "content-type": "application/json" }); + res.end(JSON.stringify(value)); + }; + if (url.pathname === "/.well-known/oauth-protected-resource" || url.pathname === "/.well-known/oauth-protected-resource/mcp") { + return json(200, { resource: `${origin}/mcp`, authorization_servers: [origin] }); + } + if (url.pathname.startsWith("/.well-known/oauth-authorization-server")) { + return json(200, { + issuer: origin, + authorization_endpoint: `${origin}/authorize`, + token_endpoint: `${origin}/token`, + registration_endpoint: `${origin}/register`, + ...(process.env.OAUTH_NO_REVOKE ? {} : { revocation_endpoint: `${origin}/revoke` }), + response_types_supported: ["code"], + grant_types_supported: ["authorization_code", "refresh_token"], + code_challenge_methods_supported: ["S256"], + token_endpoint_auth_methods_supported: ["none"], + }); + } + if (url.pathname === "/register" && req.method === "POST") { + what = "register"; + const meta = JSON.parse(body); + const client_id = `client-${registered.size + 1}`; + registered.add(client_id); + return json(201, { ...meta, client_id, token_endpoint_auth_method: "none" }); + } + if (url.pathname === "/authorize") { + what = "authorize"; + const q = url.searchParams; + if (!registered.has(q.get("client_id")) || q.get("code_challenge_method") !== "S256" || !q.get("code_challenge")) return json(400, { error: "invalid_request" }); + const code = `code-${randomUUID()}`; + codes.set(code, { challenge: q.get("code_challenge"), redirect: q.get("redirect_uri") }); + const back = new URL(q.get("redirect_uri")); + back.searchParams.set("code", code); + back.searchParams.set("state", q.get("state")); + note(302); + res.writeHead(302, { location: back.toString() }); + return res.end(); + } + if (url.pathname === "/revoke" && req.method === "POST") { + // RFC 7009: the token named is ended, whichever kind it is. + const form = new URLSearchParams(body); + what = "revoke"; + tokens.delete(form.get("token")); + refresh.delete(form.get("token")); + return json(200, {}); + } + if (url.pathname === "/token" && req.method === "POST") { + const form = new URLSearchParams(body); + what = form.get("grant_type") ?? ""; + if (what === "authorization_code") { + const grant = codes.get(form.get("code")); + codes.delete(form.get("code")); + const proof = createHash("sha256").update(form.get("code_verifier") ?? "").digest("base64url"); + if (!grant || proof !== grant.challenge || form.get("redirect_uri") !== grant.redirect) return json(400, { error: "invalid_grant" }); + note(200); + return issue(res); + } + if (what === "refresh_token") { + if (!refresh.delete(form.get("refresh_token"))) return json(400, { error: "invalid_grant" }); + note(200); + return issue(res); + } + return json(400, { error: "unsupported_grant_type" }); + } + if (url.pathname !== "/mcp") return json(404, {}); + let message; + try { + message = req.method === "POST" ? JSON.parse(body) : undefined; + } catch { + return json(400, {}); + } + const meta = message?.params?._meta ?? {}; + const envelope = meta["io.modelcontextprotocol/protocolVersion"] ?? null; + if (message) what = `${message.method} ${envelope ?? "-"}`; + const live = tokens.has(bearer) && tokens.get(bearer) > Date.now(); + if (!live && !(serves === "open" && message?.method === "server/discover")) { + note(401); + res.writeHead(401, { + "www-authenticate": `Bearer error="invalid_token", resource_metadata="${origin}/.well-known/oauth-protected-resource"`, + "content-type": "application/json", + }); + return res.end(JSON.stringify({ error: "invalid_token" })); + } + if (req.method === "DELETE") return json(200, {}); + if (req.method !== "POST") return json(405, {}); + if (message.id === undefined) { + note(202); + res.writeHead(202); + return res.end(); + } + const fail = (code, text, data) => json(200, { jsonrpc: "2.0", id: message.id, error: { code, message: text, ...(data ? { data } : {}) } }); + // A 2026-07-28 result carries its type, how long it may be cached and + // for whom, and who the server is. + const answer = (result) => + json(200, { + jsonrpc: "2.0", + id: message.id, + result: envelope ? { ...result, resultType: "complete", ttlMs: 0, cacheScope: "private", _meta: { "io.modelcontextprotocol/serverInfo": serverInfo } } : result, + }); + if (message.method === "initialize") { + const asked = message.params?.protocolVersion; + if (!legacy) return fail(-32022, `Unsupported protocol version: ${asked}`, { supported: [MODERN], requested: asked }); + return json(200, { jsonrpc: "2.0", id: message.id, result: { protocolVersion: LEGACY.includes(asked) ? asked : LEGACY[0], capabilities: { tools: {}, resources: {} }, serverInfo } }); + } + if (envelope !== null) { + if (!modern) return json(400, { jsonrpc: "2.0", id: null, error: { code: -32000, message: `Bad Request: Unsupported protocol version: ${envelope}` } }); + if (envelope !== MODERN || req.headers["mcp-protocol-version"] !== MODERN) return fail(-32022, `Unsupported protocol version: ${envelope}`, { supported: [MODERN], requested: envelope }); + } else if (!legacy) { + return fail(-32022, "Unsupported protocol version: none", { supported: [MODERN] }); + } + switch (message.method) { + case "server/discover": + return modern ? answer({ supportedVersions: [MODERN], capabilities: { tools: {}, resources: {} } }) : fail(-32601, "Method not found"); + case "tools/list": + return answer({ tools: [{ name: "show", inputSchema: { type: "object" }, _meta: { ui: { resourceUri: VIEW } } }] }); + case "resources/read": + return answer({ contents: [{ uri: message.params?.uri, mimeType: "text/html;profile=mcp-app", text: "

signed-in view

" }] }); + default: + return fail(-32601, "Method not found"); + } + }); +}); +server.listen(0, "127.0.0.1", () => console.log(`listening ${server.address().port}`)); diff --git a/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json b/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json index bff80b91..51d43214 100644 --- a/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json +++ b/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json @@ -56,6 +56,12 @@ "title": "Structured results from text", "description": "Off unless you list servers here: MCP server names, separated by commas, as Claude Code names them. Claude Code gives plugins a tool's result as the model reads it, so an app's first result has no structuredContent (its JSON is in the text) and no _meta. For a server listed here, when that result is a single text block of a JSON object that fits the tool's outputSchema, the app gets it back as structuredContent too. This goes beyond the MCP Apps spec: a server whose text is JSON but which sent no structuredContent gets one all the same.", "default": "" + }, + "ownSignIn": { + "type": "string", + "title": "Own sign-in (OAuth)", + "description": "Off unless you list servers here: MCP server names, separated by commas, as Claude Code names them. Claude Code doesn't share its MCP sign-in with plugins, so for a server behind OAuth the helper can't read the app's UI. For a server listed here, the helper uses a sign-in of its own, which you start from a terminal with `mcp-apps-cli-helper signin `. That is a second grant, separate from Claude Code's: its own client registration and consent screen, its own refresh token kept in a file on this machine, and it is not seen or revoked by `/mcp` or by your organisation's MCP sign-in settings. Claude Code's own sign-in stays the recommended way; this goes away when Claude Code lets plugins use its connection.", + "default": "" } } } diff --git a/polyfills/apps/claude-code/mod/hooks/helper.ts b/polyfills/apps/claude-code/mod/hooks/helper.ts index eb3fc166..a16dba1c 100644 --- a/polyfills/apps/claude-code/mod/hooks/helper.ts +++ b/polyfills/apps/claude-code/mod/hooks/helper.ts @@ -3,6 +3,7 @@ import type { EngineInterface, On } from 'claude-code' import type { HelperEndpoint, HelperMessage, UiTool, View } from './state' import { allowDownload, allowTool, appMessage, onNotify, openLink, plainText } from './consent' +import { ownSignIn } from './settings' import { allowedForSession, discovered, earlyCalls, isLive, linksAllowed, messagesAllowed, modelContext, ranCalls, seenCalls, state, views } from './state' import { loadRowsSeen, paneId, restoreViews, saveViews, setDisplay, showPicture, sleepWhenAnswered, trimClosed } from './views' @@ -159,6 +160,13 @@ export function discover($: EngineInterface, server: string) { if (!found) { found = helper($, '/discover', { server }).then((answer) => { if (!answer.ok) throw new Error(String(answer.error)) + // Once a session for each server, as the relay is announced. + if (answer.ownSignIn === true) { + $.ui.log( + `mcp-apps-cli: ${server}: using the helper's own sign-in (not Claude Code's). Sign out: mcp-apps-cli-helper signout ${server}`, + { to: 'debug' }, + ) + } const tools = (answer.tools ?? {}) as Record state.serversWithApps.set(server, Object.keys(tools).length > 0) const definitions = (answer.definitions ?? {}) as Record @@ -224,6 +232,9 @@ async function request($: EngineInterface, route: string, body: unknown) { throw new Error(`Claude Code is not using an MCP server named ${JSON.stringify(plainText(server))} in this session`) } const where = await startHelper($) + // Whether the person listed the server under "Own sign-in (OAuth)": the + // helper uses its own sign-in for it only then. + if (typeof server === 'string') body = { ...(body as object), ownSignIn: ownSignIn(server) } const headers: Record = { 'content-type': 'application/json', 'x-mcp-apps-cli-token': where.token } const init = 'socketPath' in where diff --git a/polyfills/apps/claude-code/mod/hooks/settings.ts b/polyfills/apps/claude-code/mod/hooks/settings.ts index 747409fd..a18b7ebb 100644 --- a/polyfills/apps/claude-code/mod/hooks/settings.ts +++ b/polyfills/apps/claude-code/mod/hooks/settings.ts @@ -64,3 +64,15 @@ export function structuredFromText(server: string): boolean { .map((name) => name.trim()) .some((name) => name !== '' && name === server) } + +/** + * Whether the person listed `server` under "Own sign-in (OAuth)" (names + * separated by commas, as Claude Code names its servers): the helper uses a + * sign-in of its own for that server only then. Off by default. + */ +export function ownSignIn(server: string): boolean { + return String(state.settings.ownSignIn ?? '') + .split(',') + .map((name) => name.trim()) + .some((name) => name !== '' && name === server) +} diff --git a/polyfills/apps/claude-code/mod/hooks/state.ts b/polyfills/apps/claude-code/mod/hooks/state.ts index 18a189c3..884c44c6 100644 --- a/polyfills/apps/claude-code/mod/hooks/state.ts +++ b/polyfills/apps/claude-code/mod/hooks/state.ts @@ -267,7 +267,7 @@ export const state = { // MCP Apps itself, and `claude -p` or the Agent SDK has no one to click. isActive: false, /** The person's choices for consent (plugin.json userConfig), defaults as Claude Desktop. */ - settings: {} as { appToolCalls?: string; appMessages?: string; offerFullscreen?: string; offerBrowser?: string; structuredFromText?: string }, + settings: {} as { appToolCalls?: string; appMessages?: string; offerFullscreen?: string; offerBrowser?: string; structuredFromText?: string; ownSignIn?: string }, /** The no-browser offer this session: being checked, or done (see browser.ts). */ browserOffer: undefined as 'checking' | 'done' | undefined, /** The offer to switch to fullscreen (see fullscreen.ts): due after this turn, or done for the session. */ diff --git a/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx b/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx index aeacfa84..12a11d54 100644 --- a/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx +++ b/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx @@ -284,6 +284,30 @@ for (const [setting, expected] of [ }) } +// The helper's own sign-in is opt-in the same way: the person lists the +// server under "Own sign-in (OAuth)" (off by default), and the mod says so +// with each request that names the server. +for (const [setting, expected] of [ + [undefined, false], + ['', false], + ['vanilla', true], + [' other ,vanilla ', true], + ['vanil', false], + ['other', false], +] as const) { + const options: Record = setting === undefined ? {} : { ownSignIn: setting } + test(`own sign-in, setting ${JSON.stringify(setting ?? 'default')}: ${expected ? 'listed' : 'not listed'} for the helper`, { options }, async ($, on) => { + const { sent, finish } = standIns(on) + await $.session.start({ cwd: '/', surface: 'terminal', isInteractive: true }) + await $.tool.call({ tool: TOOL, tool_use_id: TOOL_USE_ID }) + await until(() => sent.some((s) => s.route === '/open'), () => Promise.resolve()) + const asked = sent.filter((s) => (s.body as { server?: unknown }).server === 'vanilla') + expect(asked.length).toBeGreaterThan(0) + for (const request of asked) expect(request.body.ownSignIn).toBe(expected) + finish() + }) +} + test('the tool result reaches Claude unchanged and the view opens', async ($, on) => { const { sent, finish } = standIns(on) await $.session.start({ cwd: '/', surface: 'terminal', isInteractive: true }) @@ -1967,7 +1991,7 @@ for (const [what, matches, prewarm] of [ const body = sent.find((s) => s.route === '/prewarm')!.body expect(body.server).toBe('vanilla') expect(body.tool).toBe('get-time') - expect(Object.keys(body).sort()).toEqual(['server', 'theme', 'tool']) + expect(Object.keys(body).sort()).toEqual(['ownSignIn', 'server', 'theme', 'tool']) } else { for (let i = 0; i < 300; i++) await Promise.resolve() expect(routes()).not.toContain('/prewarm') From bb64a3f46158c5a32ea2c46033e6e29a8628d233 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:13:51 +0100 Subject: [PATCH 02/21] mcp-apps-cli: document the opt-in own sign-in The README's "Limits" keeps its original sentence about servers that need sign-in as the default behaviour, and adds what the opt-in means before someone turns it on: a second grant, tokens in a file on this machine, not seen by an organisation's MCP sign-in controls, and how to end it. The host's own sign-in stays the recommended way. SECURITY.md describes the mechanism; the compliance table says "no by default" and names the opt-in. --- polyfills/apps/claude-code/README.md | 39 +++++++++++++++++++ polyfills/apps/claude-code/SECURITY.md | 18 +++++++++ polyfills/apps/claude-code/docs/COMPLIANCE.md | 2 +- 3 files changed, 58 insertions(+), 1 deletion(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index bfd55e59..8d9af109 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -169,6 +169,45 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. doesn't give plugins the UI metadata of a tool or of a resource. So the helper opens its own connection to each server, from your MCP config, and that connection can't sign in. +- **Own sign-in (opt-in, one server at a time).** If you need a server's apps + before Claude Code shares its connection, the helper can sign in to that + server itself. It is off unless you list the server under **Own sign-in + (OAuth)** in `/config` and run `mcp-apps-cli-helper signin ` once + (the helper binary the plugin carries, in its `helper/bin//` + folder, from a terminal in your project's folder). Know what that means + before you do: + - **It is a second grant, with its own life.** The server registers + `mcp-apps-cli` as a client of its own and asks for your consent again. + Signing out of the server in `/mcp` doesn't end it, and signing out here + doesn't touch Claude Code's. + - **The tokens are on your machine, in a file.** One file per server and + address under `~/.cache/mcp-apps-cli/oauth/` (`MCP_APPS_CLI_OAUTH_DIR` + puts them elsewhere), readable only by you, not encrypted and not in the + system keychain. A token is sent only to the address it was issued for, + over `https` or to this machine itself, and no redirect is followed. + - **Your organisation's controls for MCP sign-in don't see it.** With a + managed MCP policy, or an allow or deny list for MCP servers, the helper + uses no server at all, so this is off there too. The server's + administrators see a client named `mcp-apps-cli`. + - **To end it:** `mcp-apps-cli-helper signout ` deletes the file and + asks the server to revoke the tokens where it offers that; removing the + server from the setting stops their use at once. + + `signin` says all this before it opens the browser and asks to continue + (the answer is no by default; without a terminal it refuses). To skip the + question, pass `--yes`, or set `MCP_APPS_CLI_SIGNIN_YES=1` in your + environment to skip it every time (a terminal can't read `/config`); the + text is still printed. Only do that for servers you have already decided to + sign in to: the question is the one place the second grant is spelled out + before a token exists. It works with a server of MCP 2026-07-28 and with one of the 2025 + revisions, only for `streamable-http` servers (not the older `sse` ones), + only servers that register clients themselves (dynamic client + registration), and not a server whose config already sets an + `Authorization` header. The helper still uses a server only while Claude + Code itself is connected to it in the session, and never reads Claude + Code's stored credentials. Claude Code's sign-in is the recommended way; + [host change 1](../../../docs/host-changes.md) would make this unnecessary, + and the option will be removed when it lands. - **A view gets Claude's tool result as the model reads it.** That is all Claude Code gives plugins: a result with `structuredContent` comes as one text block of that object's JSON, and the server's own `content` and the diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 54395a15..2288c967 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -96,6 +96,24 @@ server's headers never reach another host that way. The plugin never reads Claude Code's stored credentials (the keychain, OAuth tokens). It reads the same MCP configuration files Claude Code reads. +Off by default, per server (the **Own sign-in (OAuth)** setting), the person +can have the helper sign in to a server itself (`signin `, after it +says what that means and asks to continue): authorization code with PKCE, to a +loopback address of the helper's own, for a server it may already use and only +over `https` or to the person's own machine. It is a second grant, which +Claude Code's `/mcp` and an organisation's MCP sign-in settings don't see. The +tokens, and the client the server registered, are kept in a file only the +person can read, in a folder only they can open +(`~/.cache/mcp-apps-cli/oauth/`), one file for each server and address, so a +token is sent only to the address it was issued for. They are not encrypted +there: the file's mode is what protects them, as for the view stores. A +connection that carries a token follows no redirect, and says once a session, +in the debug log, that it is using its own sign-in. `signout ` asks the +server to revoke the tokens where it offers that (RFC 7009) and deletes the +file; taking the server off the setting stops their use at once. These are the +helper's own tokens, issued to it by the server: Claude Code's are still never +read. + ## What an app may do, and when you're asked Each view runs in a sandboxed iframe in a dedicated headless Chrome, under the diff --git a/polyfills/apps/claude-code/docs/COMPLIANCE.md b/polyfills/apps/claude-code/docs/COMPLIANCE.md index d80e16b7..75a64627 100644 --- a/polyfills/apps/claude-code/docs/COMPLIANCE.md +++ b/polyfills/apps/claude-code/docs/COMPLIANCE.md @@ -118,7 +118,7 @@ R12 is the one MUST that is neither met nor a limit of the host; see the row. | CSP from `_meta.ui.csp`, `prefersBorder`, `domain` | yes (see R11-R14, R26, R72-R75) | | `permissions` | `clipboardWrite` yes; camera, microphone, geolocation not granted (no devices in headless Chrome, no indicator) | | Display modes `inline`, `fullscreen`, `pip` | yes, as a terminal allows: fullscreen fills the terminal, pip is a pane | -| Sign-in (OAuth) for servers that need it | no: the helper's own connection can't use Claude Code's sign-in. Host change: `$.mcp.request` over Claude Code's connection ([host-changes](../../../../docs/host-changes.md), change 1) | +| Sign-in (OAuth) for servers that need it | no by default: the helper's own connection can't use Claude Code's sign-in (a host limit, host change 1). Opt-in per server, under "Own sign-in (OAuth)" in `/config`: the helper's own sign-in (`signin ` after a confirmation, `signout `; authorization code with PKCE, dynamic client registration, refresh), a second grant of its own that the helper never mixes with Claude Code's, which it never reads; both forms of the helper's connection (2026-07-28 and the 2025 handshake); streamable HTTP only; `https` or loopback. Tests: `a_server_that_needs_sign_in_is_read_after_signin_and_refreshed_in_each_revision` and `the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_each_revision` (helper) against a stand-in server; not checked against a public server or in a Claude Code session. Host change that would remove it: `$.mcp.request` over Claude Code's connection ([host-changes](../../../../docs/host-changes.md), change 1) | | `_meta` and `structuredContent` of a tool's result | the model's call: neither, only `content` as the model reads it (a host limit), unless the person lists the server under "Structured results from text", which takes `structuredContent` back from that text where it fits the tool's `outputSchema` (up to 0.1.4 that was done for every server, unchecked). A view's own call of a tool the model sees: `structuredContent` yes, `_meta` no (`$.mcp.call`). An app-only tool: both (the helper's connection). Host change 4 would give the first two whole | | The MCP revision of the helper's connection | 2026-07-28 where the server serves it (`server/discover`, no `initialize`), else the 2025 handshake at 2025-11-25 (from 0.1.5; see below) | | `tools/list_changed`, resource updates | no: Claude Code delivers no server notifications to plugins (host change 3) | From 3f5b01105755b6eaf786320169de96730ab448d2 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:13:51 +0100 Subject: [PATCH 03/21] mcp-apps-cli: Cargo.lock and third-party licenses for the new dependencies Generated: cargo for the lockfile, node package/third-party.mjs for the licenses. --- .../apps/claude-code/THIRD_PARTY_LICENSES.txt | 12713 ++++++++++------ .../apps/claude-code/helper-rs/Cargo.lock | 230 +- 2 files changed, 8562 insertions(+), 4381 deletions(-) diff --git a/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt b/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt index 080b07f3..1deec58e 100644 --- a/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt +++ b/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt @@ -464,6 +464,216 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +============================================================================== +async-trait 0.1.92 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/async-trait + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + ============================================================================== atomic-waker 1.1.2 (Rust crate) License: Apache-2.0 OR MIT @@ -1985,7 +2195,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -block-buffer 0.12.1 (Rust crate) +block-buffer 0.10.4 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/RustCrypto/utils @@ -2195,40 +2405,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2018-2025 The RustCrypto Project Developers - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -bytes 1.12.2 (Rust crate) -License: MIT -Source: https://github.com/tokio-rs/bytes - ---- LICENSE --- - -Copyright (c) 2018 Carl Lerche +Copyright (c) 2018-2019 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2255,9 +2432,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -cfg-if 1.0.5 (Rust crate) +block-buffer 0.12.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/cfg-if +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -2455,7 +2632,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -2465,7 +2642,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton +Copyright (c) 2018-2025 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2492,50 +2669,46 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -chrono 0.4.45 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/chronotope/chrono - ---- LICENSE.txt --- - -Rust-chrono is dual-licensed under The MIT License [1] and -Apache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and -contributors. - -Nota Bene: This is same as the Rust Project's own license. - - -[1]: , which is reproduced below: +bytes 1.12.2 (Rust crate) +License: MIT +Source: https://github.com/tokio-rs/bytes -~~~~ -The MIT License (MIT) +--- LICENSE --- -Copyright (c) 2014, Kang Seonghoon. +Copyright (c) 2018 Carl Lerche -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -~~~~ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. +============================================================================== +cfg-if 1.0.5 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/cfg-if -[2]: , which is reproduced below: +--- LICENSE-APACHE --- -~~~~ - Apache License +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -2736,16 +2909,80 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -~~~~ + +--- LICENSE-MIT --- + +Copyright (c) 2014 Alex Crichton + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -const-oid 0.10.3 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/RustCrypto/formats +chrono 0.4.45 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/chronotope/chrono ---- LICENSE-APACHE --- +--- LICENSE.txt --- -Apache License +Rust-chrono is dual-licensed under The MIT License [1] and +Apache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and +contributors. + +Nota Bene: This is same as the Rust Project's own license. + + +[1]: , which is reproduced below: + +~~~~ +The MIT License (MIT) + +Copyright (c) 2014, Kang Seonghoon. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +~~~~ + + +[2]: , which is reproduced below: + +~~~~ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -2939,46 +3176,19 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2020-2026 The RustCrypto Project Developers - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +~~~~ ============================================================================== -core-foundation 0.10.1 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/servo/core-foundation-rs +const-oid 0.10.3 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/formats --- LICENSE-APACHE --- @@ -3176,7 +3386,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -3186,7 +3396,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2012-2013 Mozilla Foundation +Copyright (c) 2020-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -3213,7 +3423,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -core-foundation-sys 0.8.7 (Rust crate) +core-foundation 0.10.1 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/servo/core-foundation-rs @@ -3450,9 +3660,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -cpufeatures 0.3.1 (Rust crate) +core-foundation-sys 0.8.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/utils +Source: https://github.com/servo/core-foundation-rs --- LICENSE-APACHE --- @@ -3650,7 +3860,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -3660,7 +3870,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2020-2026 The RustCrypto Project Developers +Copyright (c) 2012-2013 Mozilla Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -3687,283 +3897,50 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -crc32fast 1.5.5 (Rust crate) +cpufeatures 0.2.17 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/srijs/rust-crc32fast +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + Version 2.0, January 2004 + http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 1. Definitions. +1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---- LICENSE-MIT --- - -MIT License - -Copyright (c) 2018 Sam Rijs, Alex Crichton and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -============================================================================== -crypto-common 0.2.2 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/traits - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the @@ -4130,7 +4107,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2021-2026 RustCrypto Developers +Copyright (c) 2020-2025 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4157,9 +4134,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -digest 0.11.3 (Rust crate) +cpufeatures 0.3.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/traits +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -4367,8 +4344,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2017-2025 RustCrypto Developers -Copyright (c) 2017 Artyom Pavlov +Copyright (c) 2020-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4395,28 +4371,261 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -displaydoc 0.2.7 (Rust crate) +crc32fast 1.5.5 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/yaahc/displaydoc +Source: https://github.com/srijs/rust-crc32fast --- LICENSE-APACHE --- Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + Version 2.0, January 2004 + http://www.apache.org/licenses/ -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -1. Definitions. + 1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--- LICENSE-MIT --- + +MIT License + +Copyright (c) 2018 Sam Rijs, Alex Crichton and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +crypto-common 0.1.7 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/traits + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or @@ -4595,7 +4804,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -4605,6 +4814,8 @@ limitations under the License. --- LICENSE-MIT --- +Copyright (c) 2021 RustCrypto Developers + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -4630,9 +4841,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -equivalent 1.0.3 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/indexmap-rs/equivalent +crypto-common 0.2.2 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -4830,7 +5041,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -4840,7 +5051,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016--2023 +Copyright (c) 2021-2026 RustCrypto Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4867,9 +5078,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -errno 0.3.15 (Rust crate) +digest 0.10.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/lambda-fairy/rust-errno +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -5067,7 +5278,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -5077,7 +5288,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Chris Wong +Copyright (c) 2017 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -5104,221 +5315,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -fdeflate 0.3.7 (Rust crate) +digest 0.11.3 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/image-rs/fdeflate - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - ---- LICENSE-MIT --- - -MIT License - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -flate2 1.1.11 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/flate2-rs +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -5516,7 +5515,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -5526,7 +5525,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014-2026 Alex Crichton +Copyright (c) 2017-2025 RustCrypto Developers +Copyright (c) 2017 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -5553,9 +5553,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -form_urlencoded 1.2.2 (Rust crate) +displaydoc 0.2.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/rust-url +Source: https://github.com/yaahc/displaydoc --- LICENSE-APACHE --- @@ -5763,8 +5763,6 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2013-2016 The rust-url developers - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -5790,9 +5788,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures 0.3.34 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +equivalent 1.0.3 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/indexmap-rs/equivalent --- LICENSE-APACHE --- @@ -5984,8 +5982,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6001,8 +5998,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2016--2023 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6029,9 +6025,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-channel 0.3.34 (Rust crate) +errno 0.3.15 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +Source: https://github.com/lambda-fairy/rust-errno --- LICENSE-APACHE --- @@ -6223,8 +6219,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6240,8 +6235,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2014 Chris Wong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6268,17 +6262,229 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-core 0.3.34 (Rust crate) +fdeflate 0.3.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +Source: https://github.com/image-rs/fdeflate --- LICENSE-APACHE --- Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + Version 2.0, January 2004 + http://www.apache.org/licenses/ -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +MIT License + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +flate2 1.1.11 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/flate2-rs + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. @@ -6462,8 +6668,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6479,8 +6684,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2014-2026 Alex Crichton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6507,9 +6711,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-executor 0.3.34 (Rust crate) +form_urlencoded 1.2.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +Source: https://github.com/servo/rust-url --- LICENSE-APACHE --- @@ -6701,8 +6905,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6718,8 +6921,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2013-2016 The rust-url developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6746,7 +6948,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-io 0.3.34 (Rust crate) +futures 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -6985,7 +7187,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-macro 0.3.34 (Rust crate) +futures-channel 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7224,7 +7426,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-sink 0.3.34 (Rust crate) +futures-core 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7463,7 +7665,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-task 0.3.34 (Rust crate) +futures-executor 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7702,7 +7904,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-util 0.3.34 (Rust crate) +futures-io 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7941,9 +8143,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -hashbrown 0.17.1 (Rust crate) +futures-macro 0.3.34 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/hashbrown +Source: https://github.com/rust-lang/futures-rs --- LICENSE-APACHE --- @@ -8135,7 +8337,8 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -8151,7 +8354,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Amanieu d'Antras +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -8178,241 +8382,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -hex 0.4.3 (Rust crate) +futures-sink 0.3.34 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/KokaKiwi/rust-hex - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2013-2014 The Rust Project Developers. -Copyright (c) 2015-2020 The rust-hex Developers - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -============================================================================== -http 1.5.0 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/hyperium/http +Source: https://github.com/rust-lang/futures-rs --- LICENSE-APACHE --- @@ -8604,7 +8576,8 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2017 http-rs authors +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -8620,7 +8593,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2017 http-rs authors +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -8647,81 +8621,15 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -http-body 1.1.0 (Rust crate) -License: MIT -Source: https://github.com/hyperium/http-body +futures-task 0.3.34 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/futures-rs ---- LICENSE --- +--- LICENSE-APACHE --- -Copyright (c) 2019-2026 Sean McArthur & Hyper Contributors - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -http-body-util 0.1.5 (Rust crate) -License: MIT -Source: https://github.com/hyperium/http-body - ---- LICENSE --- - -Copyright (c) 2019-2026 Sean McArthur & Hyper Contributors - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -httparse 1.10.1 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/seanmonstar/httparse - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -8907,7 +8815,8 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -8923,30 +8832,37 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2015-2025 Sean McArthur +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -hybrid-array 0.4.15 (Rust crate) +futures-util 0.3.34 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/hybrid-array +Source: https://github.com/rust-lang/futures-rs --- LICENSE-APACHE --- @@ -9138,13 +9054,14 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -9154,7 +9071,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2022-2026 The RustCrypto Project Developers +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -9181,13 +9099,15 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -hyper 1.12.0 (Rust crate) +generic-array 0.14.7 (Rust crate) License: MIT -Source: https://github.com/hyperium/hyper +Source: https://github.com/fizyk20/generic-array.git --- LICENSE --- -Copyright (c) 2014-2026 Sean McArthur +The MIT License (MIT) + +Copyright (c) 2015 Bartłomiej Kamiński Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9196,27 +9116,27 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ============================================================================== -hyper-rustls 0.27.10 (Rust crate) -License: Apache-2.0 OR ISC OR MIT -Source: https://github.com/rustls/hyper-rustls +getrandom 0.2.17 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-random/getrandom --- LICENSE-APACHE --- Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -9408,7 +9328,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -9416,27 +9336,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---- LICENSE-ISC --- - -ISC License (ISC) -Copyright (c) 2016, Joseph Birr-Pixton - -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS -ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. - --- LICENSE-MIT --- -Copyright (c) 2016 Joseph Birr-Pixton +Copyright (c) 2018-2024 The rust-random Project Developers +Copyright (c) 2014 The Rust Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -9463,9 +9366,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -hyper-tls 0.6.0 (Rust crate) -License: MIT/Apache-2.0 -Source: https://github.com/hyperium/hyper-tls +hashbrown 0.17.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/hashbrown --- LICENSE-APACHE --- @@ -9673,435 +9576,268 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2017 Sean McArthur +Copyright (c) 2016 Amanieu d'Antras -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -hyper-util 0.1.21 (Rust crate) -License: MIT -Source: https://github.com/hyperium/hyper-util +hex 0.4.3 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/KokaKiwi/rust-hex ---- LICENSE --- +--- LICENSE-APACHE --- -Copyright (c) 2023-2025 Sean McArthur +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + 1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -============================================================================== -icu_collections 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. ---- LICENSE --- + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. -UNICODE LICENSE V3 + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. -COPYRIGHT AND PERMISSION NOTICE + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. -Copyright © 2020-2024 Unicode, Inc. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -SPDX-License-Identifier: Unicode-3.0 + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. -— + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: -============================================================================== -icu_locale_core 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and ---- LICENSE --- + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and -UNICODE LICENSE V3 + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and -COPYRIGHT AND PERMISSION NOTICE + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. -Copyright © 2020-2024 Unicode, Inc. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -SPDX-License-Identifier: Unicode-3.0 + END OF TERMS AND CONDITIONS -— + APPENDIX: How to apply the Apache License to your work. -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. -============================================================================== -icu_normalizer 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x + Copyright {yyyy} {name of copyright owner} ---- LICENSE --- + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at -UNICODE LICENSE V3 + http://www.apache.org/licenses/LICENSE-2.0 -COPYRIGHT AND PERMISSION NOTICE + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. -Copyright © 2020-2024 Unicode, Inc. +--- LICENSE-MIT --- -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +Copyright (c) 2013-2014 The Rust Project Developers. +Copyright (c) 2015-2020 The rust-hex Developers -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. - -SPDX-License-Identifier: Unicode-3.0 - -— - -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - -============================================================================== -icu_normalizer_data 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x - ---- LICENSE --- - -UNICODE LICENSE V3 - -COPYRIGHT AND PERMISSION NOTICE - -Copyright © 2020-2024 Unicode, Inc. - -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. - -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. - -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. - -SPDX-License-Identifier: Unicode-3.0 - -— - -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - -============================================================================== -icu_properties 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x - ---- LICENSE --- - -UNICODE LICENSE V3 - -COPYRIGHT AND PERMISSION NOTICE - -Copyright © 2020-2024 Unicode, Inc. - -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. - -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. - -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. - -SPDX-License-Identifier: Unicode-3.0 - -— - -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - -============================================================================== -icu_properties_data 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x - ---- LICENSE --- - -UNICODE LICENSE V3 - -COPYRIGHT AND PERMISSION NOTICE - -Copyright © 2020-2024 Unicode, Inc. - -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. - -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. - -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. - -SPDX-License-Identifier: Unicode-3.0 - -— - -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - -============================================================================== -icu_provider 2.4.0 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x - ---- LICENSE --- - -UNICODE LICENSE V3 - -COPYRIGHT AND PERMISSION NOTICE - -Copyright © 2020-2024 Unicode, Inc. - -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. - -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. - -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. - -SPDX-License-Identifier: Unicode-3.0 - -— - -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ============================================================================== -idna 1.1.0 (Rust crate) +http 1.5.0 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/rust-url/ +Source: https://github.com/hyperium/http --- LICENSE-APACHE --- @@ -10293,7 +10029,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright 2017 http-rs authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -10309,7 +10045,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2013-2025 The rust-url developers +Copyright (c) 2017 http-rs authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -10336,11 +10072,77 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -idna_adapter 1.2.2 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/hsivonen/idna_adapter +http-body 1.1.0 (Rust crate) +License: MIT +Source: https://github.com/hyperium/http-body ---- LICENSE-APACHE --- +--- LICENSE --- + +Copyright (c) 2019-2026 Sean McArthur & Hyper Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +http-body-util 0.1.5 (Rust crate) +License: MIT +Source: https://github.com/hyperium/http-body + +--- LICENSE --- + +Copyright (c) 2019-2026 Sean McArthur & Hyper Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +httparse 1.10.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/seanmonstar/httparse + +--- LICENSE-APACHE --- Apache License Version 2.0, January 2004 @@ -10546,36 +10348,30 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) The rust-url developers +Copyright (c) 2015-2025 Sean McArthur -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. ============================================================================== -indexmap 2.14.2 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/indexmap-rs/indexmap +hybrid-array 0.4.15 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/hybrid-array --- LICENSE-APACHE --- @@ -10773,7 +10569,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -10783,7 +10579,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016--2017 +Copyright (c) 2022-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -10810,269 +10606,77 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -ipnet 2.12.2 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/krisprice/ipnet - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +hyper 1.12.0 (Rust crate) +License: MIT +Source: https://github.com/hyperium/hyper - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +--- LICENSE --- - 1. Definitions. +Copyright (c) 2014-2026 Sean McArthur - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +============================================================================== +hyper-rustls 0.27.10 (Rust crate) +License: Apache-2.0 OR ISC OR MIT +Source: https://github.com/rustls/hyper-rustls - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +--- LICENSE-APACHE --- - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +1. Definitions. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2017 Juniper Networks, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---- LICENSE-MIT --- - -Copyright 2017 Juniper Networks, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -============================================================================== -itoa 1.0.19 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/itoa - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the @@ -11212,8 +10816,53 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-ISC --- + +ISC License (ISC) +Copyright (c) 2016, Joseph Birr-Pixton + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + --- LICENSE-MIT --- +Copyright (c) 2016 Joseph Birr-Pixton + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -11239,9 +10888,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -libc 0.2.191 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/libc +hyper-tls 0.6.0 (Rust crate) +License: MIT/Apache-2.0 +Source: https://github.com/hyperium/hyper-tls --- LICENSE-APACHE --- @@ -11422,92 +11071,84 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS ---- LICENSE-MIT --- +APPENDIX: How to apply the Apache License to your work. -Copyright (c) The Rust Project Developers + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Copyright [yyyy] [name of copyright owner] -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. + http://www.apache.org/licenses/LICENSE-2.0 -============================================================================== -litemap 0.8.3 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. ---- LICENSE --- - -UNICODE LICENSE V3 +--- LICENSE-MIT --- -COPYRIGHT AND PERMISSION NOTICE +Copyright (c) 2017 Sean McArthur -Copyright © 2020-2024 Unicode, Inc. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. +============================================================================== +hyper-util 0.1.21 (Rust crate) +License: MIT +Source: https://github.com/hyperium/hyper-util -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. +--- LICENSE --- -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. +Copyright (c) 2023-2025 Sean McArthur -SPDX-License-Identifier: Unicode-3.0 +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -— +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. ============================================================================== -log 0.4.35 (Rust crate) +iana-time-zone 0.1.65 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/log +Source: https://github.com/strawlab/iana-time-zone --- LICENSE-APACHE --- @@ -11699,7 +11340,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright 2020 Andrew Straw Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -11715,7 +11356,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 The Rust Project Developers +Copyright (c) 2020 Andrew D. Straw Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -11742,944 +11383,698 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -memchr 2.8.3 (Rust crate) -License: Unlicense OR MIT -Source: https://github.com/BurntSushi/memchr - ---- COPYING --- - -This project is dual-licensed under the Unlicense and MIT licenses. - -You may use this code under the terms of either license. +icu_collections 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x ---- LICENSE-MIT --- +--- LICENSE --- -The MIT License (MIT) +UNICODE LICENSE V3 -Copyright (c) 2015 Andrew Gallant +COPYRIGHT AND PERMISSION NOTICE -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Copyright © 2020-2024 Unicode, Inc. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. ---- UNLICENSE --- +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. -This is free and unencumbered software released into the public domain. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. +SPDX-License-Identifier: Unicode-3.0 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +— -For more information, please refer to +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. ============================================================================== -miniz_oxide 0.8.9 (Rust crate) -License: MIT OR Zlib OR Apache-2.0 -Source: https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide +icu_locale_core 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x --- LICENSE --- -MIT License +UNICODE LICENSE V3 -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2017 Frommi -Copyright (c) 2017-2024 oyvindln +COPYRIGHT AND PERMISSION NOTICE +Copyright © 2020-2024 Unicode, Inc. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. ---- LICENSE-APACHE.md --- +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +SPDX-License-Identifier: Unicode-3.0 - 1. Definitions. +— - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +============================================================================== +icu_normalizer 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +--- LICENSE --- - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +UNICODE LICENSE V3 - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +COPYRIGHT AND PERMISSION NOTICE - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +Copyright © 2020-2024 Unicode, Inc. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +SPDX-License-Identifier: Unicode-3.0 - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +— - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +============================================================================== +icu_normalizer_data 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +--- LICENSE --- - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +UNICODE LICENSE V3 - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +COPYRIGHT AND PERMISSION NOTICE - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +Copyright © 2020-2024 Unicode, Inc. - END OF TERMS AND CONDITIONS +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. ---- LICENSE-MIT.md --- +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. -MIT License +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2017 Frommi -Copyright (c) 2017-2024 oyvindln +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +SPDX-License-Identifier: Unicode-3.0 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +— ---- LICENSE-ZLIB.md --- +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2020 Frommi -Copyright (c) 2017-2024 oyvindln +============================================================================== +icu_properties 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x -This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. +--- LICENSE --- -Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: +UNICODE LICENSE V3 -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +COPYRIGHT AND PERMISSION NOTICE -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +Copyright © 2020-2024 Unicode, Inc. -3. This notice may not be removed or altered from any source distribution. +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. -============================================================================== -miniz_oxide 0.9.1 (Rust crate) -License: MIT OR Zlib OR Apache-2.0 -Source: https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. ---- LICENSE --- +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. -MIT License +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2017 Frommi -Copyright (c) 2017-2024 oyvindln +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. +SPDX-License-Identifier: Unicode-3.0 -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +— -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +============================================================================== +icu_properties_data 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x ---- LICENSE-APACHE.md --- +--- LICENSE --- -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +UNICODE LICENSE V3 - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +COPYRIGHT AND PERMISSION NOTICE - 1. Definitions. +Copyright © 2020-2024 Unicode, Inc. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +SPDX-License-Identifier: Unicode-3.0 - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +— - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +============================================================================== +icu_provider 2.4.0 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +--- LICENSE --- - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +UNICODE LICENSE V3 - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +COPYRIGHT AND PERMISSION NOTICE - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +Copyright © 2020-2024 Unicode, Inc. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +SPDX-License-Identifier: Unicode-3.0 - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +— - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +============================================================================== +idna 1.1.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/servo/rust-url/ - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +--- LICENSE-APACHE --- - END OF TERMS AND CONDITIONS +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ ---- LICENSE-MIT.md --- +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -MIT License +1. Definitions. -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2017 Frommi -Copyright (c) 2017-2024 oyvindln + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. ---- LICENSE-ZLIB.md --- + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. -Copyright 2013-2014 RAD Game Tools and Valve Software -Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC -Copyright (c) 2020 Frommi -Copyright (c) 2017-2024 oyvindln + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. -This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). -Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -3. This notice may not be removed or altered from any source distribution. +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. -============================================================================== -mio 1.2.5 (Rust crate) -License: MIT -Source: https://github.com/tokio-rs/mio +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. ---- LICENSE --- +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: -Copyright (c) 2014 Carl Lerche and other MIO contributors + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. -============================================================================== -native-tls 0.2.18 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-native-tls/rust-native-tls + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. ---- LICENSE-APACHE --- +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. - 1. Definitions. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +END OF TERMS AND CONDITIONS - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +APPENDIX: How to apply the Apache License to your work. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Copyright [yyyy] [name of copyright owner] - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + http://www.apache.org/licenses/LICENSE-2.0 - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +--- LICENSE-MIT --- - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +Copyright (c) 2013-2025 The rust-url developers - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +============================================================================== +idna_adapter 1.2.2 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/hsivonen/idna_adapter - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +--- LICENSE-APACHE --- - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +1. Definitions. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - END OF TERMS AND CONDITIONS + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - APPENDIX: How to apply the Apache License to your work. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - Copyright {yyyy} {name of copyright owner} + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2016 The rust-native-tls Developers - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -============================================================================== -nix 0.31.4 (Rust crate) -License: MIT -Source: https://github.com/nix-rust/nix - ---- LICENSE --- - -The MIT License (MIT) - -Copyright (c) 2015 Carl Lerche + nix-rust Authors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -============================================================================== -num-traits 0.2.19 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-num/num-traits - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, @@ -12813,7 +12208,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 The Rust Project Developers +Copyright (c) The rust-url developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -12840,9 +12235,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -once_cell 1.21.4 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/matklad/once_cell +indexmap 2.14.2 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/indexmap-rs/indexmap --- LICENSE-APACHE --- @@ -13050,6 +12445,8 @@ limitations under the License. --- LICENSE-MIT --- +Copyright (c) 2016--2017 + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -13075,83 +12472,302 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -openssl-probe 0.2.2 (Rust crate) +ipnet 2.12.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rustls/openssl-probe +Source: https://github.com/krisprice/ipnet --- LICENSE-APACHE --- Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + Version 2.0, January 2004 + http://www.apache.org/licenses/ -1. Definitions. + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + 1. Definitions. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 Juniper Networks, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--- LICENSE-MIT --- + +Copyright 2017 Juniper Networks, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +============================================================================== +itoa 1.0.19 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/itoa + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, @@ -13258,35 +12874,8 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -13312,9 +12901,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -percent-encoding 2.3.2 (Rust crate) +libc 0.2.191 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/rust-url/ +Source: https://github.com/rust-lang/libc --- LICENSE-APACHE --- @@ -13495,34 +13084,9 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - --- LICENSE-MIT --- -Copyright (c) 2013-2025 The rust-url developers +Copyright (c) The Rust Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -13549,268 +13113,112 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -pin-project-lite 0.2.17 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/taiki-e/pin-project-lite - ---- LICENSE-APACHE --- +litemap 0.8.3 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +--- LICENSE --- - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +UNICODE LICENSE V3 - 1. Definitions. +COPYRIGHT AND PERMISSION NOTICE - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Copyright © 2020-2024 Unicode, Inc. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +SPDX-License-Identifier: Unicode-3.0 - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +— - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +============================================================================== +log 0.4.35 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/log - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +--- LICENSE-APACHE --- - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +1. Definitions. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - ---- LICENSE-MIT --- - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -png 0.18.1 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/image-rs/image-png - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions @@ -13969,7 +13377,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2015 nwin +Copyright (c) 2014 The Rust Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -13996,117 +13404,3750 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -potential_utf 0.1.6 (Rust crate) -License: Unicode-3.0 -Source: https://github.com/unicode-org/icu4x +memchr 2.8.3 (Rust crate) +License: Unlicense OR MIT +Source: https://github.com/BurntSushi/memchr ---- LICENSE --- +--- COPYING --- -UNICODE LICENSE V3 +This project is dual-licensed under the Unlicense and MIT licenses. -COPYRIGHT AND PERMISSION NOTICE +You may use this code under the terms of either license. -Copyright © 2020-2024 Unicode, Inc. +--- LICENSE-MIT --- -NOTICE TO USER: Carefully read the following legal agreement. BY -DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR -SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT -DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. +The MIT License (MIT) -Permission is hereby granted, free of charge, to any person obtaining a -copy of data files and any associated documentation (the "Data Files") or -software and any associated documentation (the "Software") to deal in the -Data Files or Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, and/or sell -copies of the Data Files or Software, and to permit persons to whom the -Data Files or Software are furnished to do so, provided that either (a) -this copyright and permission notice appear with all copies of the Data -Files or Software, or (b) this copyright and permission notice appear in -associated Documentation. +Copyright (c) 2015 Andrew Gallant -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF -THIRD PARTY RIGHTS. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE -BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA -FILES OR SOFTWARE. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -Except as contained in this notice, the name of a copyright holder shall -not be used in advertising or otherwise to promote the sale, use or other -dealings in these Data Files or Software without prior written -authorization of the copyright holder. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -SPDX-License-Identifier: Unicode-3.0 +--- UNLICENSE --- -— +This is free and unencumbered software released into the public domain. -Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. -ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to ============================================================================== -proc-macro2 1.0.107 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/proc-macro2 +miniz_oxide 0.8.9 (Rust crate) +License: MIT OR Zlib OR Apache-2.0 +Source: https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide ---- LICENSE-APACHE --- +--- LICENSE --- -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +MIT License -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2017 Frommi +Copyright (c) 2017-2024 oyvindln -1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +--- LICENSE-APACHE.md --- - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + 1. Definitions. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- LICENSE-MIT.md --- + +MIT License + +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2017 Frommi +Copyright (c) 2017-2024 oyvindln + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- LICENSE-ZLIB.md --- + +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2020 Frommi +Copyright (c) 2017-2024 oyvindln + +This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source distribution. + +============================================================================== +miniz_oxide 0.9.1 (Rust crate) +License: MIT OR Zlib OR Apache-2.0 +Source: https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide + +--- LICENSE --- + +MIT License + +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2017 Frommi +Copyright (c) 2017-2024 oyvindln + + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- LICENSE-APACHE.md --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- LICENSE-MIT.md --- + +MIT License + +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2017 Frommi +Copyright (c) 2017-2024 oyvindln + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- LICENSE-ZLIB.md --- + +Copyright 2013-2014 RAD Game Tools and Valve Software +Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC +Copyright (c) 2020 Frommi +Copyright (c) 2017-2024 oyvindln + +This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source distribution. + +============================================================================== +mio 1.2.5 (Rust crate) +License: MIT +Source: https://github.com/tokio-rs/mio + +--- LICENSE --- + +Copyright (c) 2014 Carl Lerche and other MIO contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +native-tls 0.2.18 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-native-tls/rust-native-tls + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2016 The rust-native-tls Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +nix 0.31.4 (Rust crate) +License: MIT +Source: https://github.com/nix-rust/nix + +--- LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Carl Lerche + nix-rust Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +num-traits 0.2.19 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-num/num-traits + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +oauth2 5.0.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/ramosbugs/oauth2-rs + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 Alex Crichton + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +once_cell 1.21.4 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/matklad/once_cell + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +openssl-probe 0.2.2 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rustls/openssl-probe + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 Alex Crichton + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +percent-encoding 2.3.2 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/servo/rust-url/ + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2013-2025 The rust-url developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +pin-project-lite 0.2.17 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/taiki-e/pin-project-lite + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +png 0.18.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/image-rs/image-png + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2015 nwin + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +potential_utf 0.1.6 (Rust crate) +License: Unicode-3.0 +Source: https://github.com/unicode-org/icu4x + +--- LICENSE --- + +UNICODE LICENSE V3 + +COPYRIGHT AND PERMISSION NOTICE + +Copyright © 2020-2024 Unicode, Inc. + +NOTICE TO USER: Carefully read the following legal agreement. BY +DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR +SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE +TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT +DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of data files and any associated documentation (the "Data Files") or +software and any associated documentation (the "Software") to deal in the +Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell +copies of the Data Files or Software, and to permit persons to whom the +Data Files or Software are furnished to do so, provided that either (a) +this copyright and permission notice appear with all copies of the Data +Files or Software, or (b) this copyright and permission notice appear in +associated Documentation. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE +BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA +FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written +authorization of the copyright holder. + +SPDX-License-Identifier: Unicode-3.0 + +— + +Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. +ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. + +============================================================================== +ppv-lite86 0.2.21 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/cryptocorrosion/cryptocorrosion + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright 2019 The CryptoCorrosion Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2019 The CryptoCorrosion Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +proc-macro2 1.0.107 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/proc-macro2 + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +process-wrap 10.0.1 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/watchexec/process-wrap + +--- COPYRIGHT --- + +Short version for non-lawyers: + +This project is dual-licensed under Apache 2.0 and MIT terms. + + +Longer version: + +Copyrights in this project are retained by their contributors. No copyright +assignment is required to contribute. + +Some files include explicit copyright notices and/or license notices. +For full authorship information, see the version control history. + +Except as otherwise noted (below and/or in individual files), the project is +licensed under the Apache License, Version 2.0 or + or the MIT license +or , at your option. + + +The read2() method in src/std/core.rs is adapted from the read2() +function in the Rust stdlib at sys/unix/pipe.rs, copyright the Rust Contributors, +licensed under Apache 2.0 and MIT. + + + +The job_object() and resume_threads() methods in src/windows.rs are +adapted from the Windows™ version of the new() method in watchexec at +src/process.rs, copyright Matt Green, licensed under Apache 2.0 only. + + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +quote 1.0.47 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/quote + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +rand 0.8.8 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-random/rand + +--- COPYRIGHT --- + +Copyrights in the Rand project are retained by their contributors. No +copyright assignment is required to contribute to the Rand project. + +For full authorship information, see the version control history. + +Except as otherwise noted (below and/or in individual files), Rand is +licensed under the Apache License, Version 2.0 or + or the MIT license + or , at your option. + +The Rand project includes code from the Rust project +published under these same licenses. + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Copyright 2018 Developers of the Rand project +Copyright (c) 2014 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +rand_chacha 0.3.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-random/rand + +--- COPYRIGHT --- + +Copyrights in the Rand project are retained by their contributors. No +copyright assignment is required to contribute to the Rand project. + +For full authorship information, see the version control history. + +Except as otherwise noted (below and/or in individual files), Rand is +licensed under the Apache License, Version 2.0 or + or the MIT license + or , at your option. + +The Rand project includes code from the Rust project +published under these same licenses. + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent @@ -14233,8 +17274,36 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + --- LICENSE-MIT --- +Copyright 2018 Developers of the Rand project +Copyright (c) 2014 The Rust Project Developers + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -14260,47 +17329,30 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -process-wrap 10.0.1 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/watchexec/process-wrap +rand_core 0.6.4 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-random/rand --- COPYRIGHT --- -Short version for non-lawyers: - -This project is dual-licensed under Apache 2.0 and MIT terms. - - -Longer version: - -Copyrights in this project are retained by their contributors. No copyright -assignment is required to contribute. +Copyrights in the Rand project are retained by their contributors. No +copyright assignment is required to contribute to the Rand project. -Some files include explicit copyright notices and/or license notices. For full authorship information, see the version control history. -Except as otherwise noted (below and/or in individual files), the project is +Except as otherwise noted (below and/or in individual files), Rand is licensed under the Apache License, Version 2.0 or - or the MIT license -or , at your option. - - -The read2() method in src/std/core.rs is adapted from the read2() -function in the Rust stdlib at sys/unix/pipe.rs, copyright the Rust Contributors, -licensed under Apache 2.0 and MIT. - - + or the MIT license + or , at your option. -The job_object() and resume_threads() methods in src/windows.rs are -adapted from the Windows™ version of the new() method in watchexec at -src/process.rs, copyright Matt Green, licensed under Apache 2.0 only. - +The Rand project includes code from the Rust project +published under these same licenses. --- LICENSE-APACHE --- Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -14475,8 +17527,22 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + --- LICENSE-MIT --- +Copyright 2018 Developers of the Rand project +Copyright (c) 2014 The Rust Project Developers + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -14502,9 +17568,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -quote 1.0.47 (Rust crate) +reqwest 0.13.5 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/quote +Source: https://github.com/seanmonstar/reqwest --- LICENSE-APACHE --- @@ -14683,38 +17749,283 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. -END OF TERMS AND CONDITIONS +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright 2016 Sean McArthur + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2016-2026 Sean McArthur + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +rmcp 3.11.0 (Rust crate) +License: Apache-2.0 +Source: https://github.com/modelcontextprotocol/rust-sdk/ + +--- LICENSE --- + +The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. + +Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. + +No rights beyond those granted by the applicable original license are conveyed for such contributions. + +--- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright + owner or by an individual or Legal Entity authorized to submit on behalf + of the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- + +MIT License + +Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. ---- LICENSE-MIT --- +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +--- -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +Creative Commons Attribution 4.0 International (CC-BY-4.0) -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +Documentation in this project (excluding specifications) is licensed under +CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for +the full license text. ============================================================================== -reqwest 0.13.5 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/seanmonstar/reqwest +rustls 0.23.46 (Rust crate) +License: Apache-2.0 OR ISC OR MIT +Source: https://github.com/rustls/rustls --- LICENSE-APACHE --- @@ -14906,7 +18217,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2016 Sean McArthur +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14920,256 +18231,323 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +--- LICENSE-ISC --- + +ISC License (ISC) +Copyright (c) 2016, Joseph Birr-Pixton + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + --- LICENSE-MIT --- -Copyright (c) 2016-2026 Sean McArthur +Copyright (c) 2016 Joseph Birr-Pixton -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -rmcp 3.11.0 (Rust crate) -License: Apache-2.0 -Source: https://github.com/modelcontextprotocol/rust-sdk/ +rustls-native-certs 0.8.5 (Rust crate) +License: Apache-2.0 OR ISC OR MIT +Source: https://github.com/rustls/rustls-native-certs --- LICENSE --- -The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. +Rustls is distributed under the following three licenses: -Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. +- Apache License version 2.0. +- MIT license. +- ISC license. -No rights beyond those granted by the applicable original license are conveyed for such contributions. +These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC +respectively. You may use this software under the terms of any +of these licenses, at your option. ---- +--- LICENSE-APACHE --- - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 1. Definitions. +1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to the Licensor for inclusion in the Work by the copyright - owner or by an individual or Legal Entity authorized to submit on behalf - of the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +END OF TERMS AND CONDITIONS - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +APPENDIX: How to apply the Apache License to your work. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +Copyright [yyyy] [name of copyright owner] - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - END OF TERMS AND CONDITIONS + http://www.apache.org/licenses/LICENSE-2.0 ---- +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. -MIT License +--- LICENSE-ISC --- -Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. +ISC License (ISC) +Copyright (c) 2016, Joseph Birr-Pixton -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all copies. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +--- LICENSE-MIT --- ---- +Copyright (c) 2016 Joseph Birr-Pixton -Creative Commons Attribution 4.0 International (CC-BY-4.0) +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -Documentation in this project (excluding specifications) is licensed under -CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for -the full license text. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -rustls 0.23.46 (Rust crate) -License: Apache-2.0 OR ISC OR MIT -Source: https://github.com/rustls/rustls +rustls-pki-types 1.16.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rustls/pki-types --- LICENSE-APACHE --- @@ -15361,82 +18739,327 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright 2023 Dirkjan Ochtman + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2023 Dirkjan Ochtman + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +rustls-platform-verifier 0.7.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rustls/rustls-platform-verifier + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--- LICENSE-MIT --- -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at +MIT License - http://www.apache.org/licenses/LICENSE-2.0 +Copyright (c) 2022 1Password -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: ---- LICENSE-ISC --- +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -ISC License (ISC) -Copyright (c) 2016, Joseph Birr-Pixton +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all copies. +============================================================================== +rustls-webpki 0.103.17 (Rust crate) +License: ISC +Source: https://github.com/rustls/webpki -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS -ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. +--- LICENSE --- ---- LICENSE-MIT --- +Except as otherwise noted, this project is licensed under the following +(ISC-style) terms: -Copyright (c) 2016 Joseph Birr-Pixton +Copyright 2015 Brian Smith. -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +The files under third-party/chromium are licensed as described in +third-party/chromium/LICENSE. ============================================================================== -rustls-native-certs 0.8.5 (Rust crate) -License: Apache-2.0 OR ISC OR MIT -Source: https://github.com/rustls/rustls-native-certs +schannel 0.1.30 (Rust crate) +License: MIT +Source: https://github.com/steffengy/schannel-rs ---- LICENSE --- +--- LICENSE.md --- -Rustls is distributed under the following three licenses: +Copyright (c) 2015 steffengy -- Apache License version 2.0. -- MIT license. -- ISC license. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC -respectively. You may use this software under the terms of any -of these licenses, at your option. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +============================================================================== +security-framework 3.7.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/kornelski/rust-security-framework --- LICENSE-APACHE --- @@ -15642,56 +19265,33 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---- LICENSE-ISC --- - -ISC License (ISC) -Copyright (c) 2016, Joseph Birr-Pixton - -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS -ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. - --- LICENSE-MIT --- -Copyright (c) 2016 Joseph Birr-Pixton +The MIT License (MIT) -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Copyright (c) 2015 Steven Fackler -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -rustls-pki-types 1.16.0 (Rust crate) +security-framework-sys 2.17.0 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rustls/pki-types +Source: https://github.com/kornelski/rust-security-framework --- LICENSE-APACHE --- @@ -15866,344 +19466,274 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright 2023 Dirkjan Ochtman - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2023 Dirkjan Ochtman - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -rustls-platform-verifier 0.7.1 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rustls/rustls-platform-verifier - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +END OF TERMS AND CONDITIONS - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +APPENDIX: How to apply the Apache License to your work. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +Copyright [yyyy] [name of copyright owner] - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." + http://www.apache.org/licenses/LICENSE-2.0 - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +--- LICENSE-MIT --- - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +The MIT License (MIT) - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +Copyright (c) 2015 Steven Fackler - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +============================================================================== +serde 1.0.229 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/serde-rs/serde - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +--- LICENSE-APACHE --- - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +1. Definitions. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - END OF TERMS AND CONDITIONS + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - APPENDIX: How to apply the Apache License to your work. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - Copyright [yyyy] [name of copyright owner] + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - http://www.apache.org/licenses/LICENSE-2.0 + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." ---- LICENSE-MIT --- + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -MIT License +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. -Copyright (c) 2022 1Password +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and -============================================================================== -rustls-webpki 0.103.17 (Rust crate) -License: ISC -Source: https://github.com/rustls/webpki + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and ---- LICENSE --- + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. -Except as otherwise noted, this project is licensed under the following -(ISC-style) terms: + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. -Copyright 2015 Brian Smith. +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -The files under third-party/chromium are licensed as described in -third-party/chromium/LICENSE. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -============================================================================== -schannel 0.1.30 (Rust crate) -License: MIT -Source: https://github.com/steffengy/schannel-rs +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. ---- LICENSE.md --- +END OF TERMS AND CONDITIONS -Copyright (c) 2015 steffengy +--- LICENSE-MIT --- -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -security-framework 3.7.0 (Rust crate) +serde_core 1.0.229 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/kornelski/rust-security-framework +Source: https://github.com/serde-rs/serde --- LICENSE-APACHE --- @@ -16384,58 +19914,36 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - --- LICENSE-MIT --- -The MIT License (MIT) - -Copyright (c) 2015 Steven Fackler - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -security-framework-sys 2.17.0 (Rust crate) +serde_derive 1.0.229 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/kornelski/rust-security-framework +Source: https://github.com/serde-rs/serde --- LICENSE-APACHE --- @@ -16611,63 +20119,41 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +END OF TERMS AND CONDITIONS --- LICENSE-MIT --- -The MIT License (MIT) - -Copyright (c) 2015 Steven Fackler - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -serde 1.0.229 (Rust crate) +serde_json 1.0.154 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/serde-rs/serde +Source: https://github.com/serde-rs/json --- LICENSE-APACHE --- @@ -16875,9 +20361,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -serde_core 1.0.229 (Rust crate) +serde_path_to_error 0.1.20 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/serde-rs/serde +Source: https://github.com/dtolnay/path-to-error --- LICENSE-APACHE --- @@ -17085,9 +20571,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -serde_derive 1.0.229 (Rust crate) +sha2 0.10.9 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/serde-rs/serde +Source: https://github.com/RustCrypto/hashes --- LICENSE-APACHE --- @@ -17268,8 +20754,37 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + --- LICENSE-MIT --- +Copyright (c) 2006-2009 Graydon Hoare +Copyright (c) 2009-2013 Mozilla Foundation +Copyright (c) 2016 Artyom Pavlov + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -17295,9 +20810,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -serde_json 1.0.154 (Rust crate) +sha2 0.11.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/serde-rs/json +Source: https://github.com/RustCrypto/hashes --- LICENSE-APACHE --- @@ -17478,8 +20993,38 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + --- LICENSE-MIT --- +Copyright (c) 2016-2026 The RustCrypto Project Developers +Copyright (c) 2016 Artyom Pavlov +Copyright (c) 2009-2013 Mozilla Foundation +Copyright (c) 2006-2009 Graydon Hoare + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -17505,9 +21050,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -sha2 0.11.1 (Rust crate) +signal-hook-registry 1.4.8 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/hashes +Source: https://github.com/vorner/signal-hook --- LICENSE-APACHE --- @@ -17705,7 +21250,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -17715,10 +21260,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016-2026 The RustCrypto Project Developers -Copyright (c) 2016 Artyom Pavlov -Copyright (c) 2009-2013 Mozilla Foundation -Copyright (c) 2006-2009 Graydon Hoare +Copyright (c) 2017 tokio-jsonrpc developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -17745,9 +21287,71 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -signal-hook-registry 1.4.8 (Rust crate) +simd-adler32 0.3.10 (Rust crate) +License: MIT +Source: https://github.com/mcountryman/simd-adler32 + +--- LICENSE.md --- + +MIT License + +Copyright (c) [2021] [Marvin Countryman] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +slab 0.4.12 (Rust crate) +License: MIT +Source: https://github.com/tokio-rs/slab + +--- LICENSE --- + +Copyright (c) 2019 Carl Lerche + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +smallvec 1.16.6 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/vorner/signal-hook +Source: https://github.com/smallvec/smallvec --- LICENSE-APACHE --- @@ -17941,83 +21545,21 @@ APPENDIX: How to apply the Apache License to your work. Copyright [yyyy] [name of copyright owner] -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2017 tokio-jsonrpc developers - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -simd-adler32 0.3.10 (Rust crate) -License: MIT -Source: https://github.com/mcountryman/simd-adler32 - ---- LICENSE.md --- - -MIT License - -Copyright (c) [2021] [Marvin Countryman] - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + http://www.apache.org/licenses/LICENSE-2.0 -============================================================================== -slab 0.4.12 (Rust crate) -License: MIT -Source: https://github.com/tokio-rs/slab +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. ---- LICENSE --- +--- LICENSE-MIT --- -Copyright (c) 2019 Carl Lerche +Copyright (c) 2018 The Servo Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -18044,9 +21586,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -smallvec 1.16.6 (Rust crate) +socket2 0.6.5 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/smallvec/smallvec +Source: https://github.com/rust-lang/socket2 --- LICENSE-APACHE --- @@ -18202,88 +21744,321 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 Alex Crichton + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +sse-stream 0.2.6 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/4t145/sse-stream/ + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. + APPENDIX: How to apply the Apache License to your work. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. -Copyright [yyyy] [name of copyright owner] + Copyright [yyyy] [name of copyright owner] -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2018 The Servo Project Developers +MIT License -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Copyright (c) 2024 4t145 -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ============================================================================== -socket2 0.6.5 (Rust crate) +stable_deref_trait 1.2.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/socket2 +Source: https://github.com/storyyeller/stable_deref_trait --- LICENSE-APACHE --- @@ -18491,7 +22266,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton +Copyright (c) 2017 Robert Grosse Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -18518,242 +22293,256 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -sse-stream 0.2.6 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/4t145/sse-stream/ - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +subtle 2.6.1 (Rust crate) +License: BSD-3-Clause +Source: https://github.com/dalek-cryptography/subtle - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +--- LICENSE --- - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +Copyright (c) 2016-2017 Isis Agora Lovecruft, Henry de Valence. All rights reserved. +Copyright (c) 2016-2024 Isis Agora Lovecruft. All rights reserved. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +3. Neither the name of the copyright holder nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +============================================================================== +syn 2.0.119 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/syn - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +--- LICENSE-APACHE --- - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +1. Definitions. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." - END OF TERMS AND CONDITIONS + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. - APPENDIX: How to apply the Apache License to your work. +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. - Copyright [yyyy] [name of copyright owner] +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - http://www.apache.org/licenses/LICENSE-2.0 + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and ---- LICENSE-MIT --- + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. -MIT License + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. -Copyright (c) 2024 4t145 +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +--- LICENSE-MIT --- -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -stable_deref_trait 1.2.1 (Rust crate) +syn 3.0.10 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/storyyeller/stable_deref_trait +Source: https://github.com/dtolnay/syn --- LICENSE-APACHE --- @@ -18934,35 +22723,8 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - --- LICENSE-MIT --- -Copyright (c) 2017 Robert Grosse - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -18977,57 +22739,219 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +sync_wrapper 1.0.2 (Rust crate) +License: Apache-2.0 +Source: https://github.com/Actyx/sync_wrapper + +--- LICENSE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS ============================================================================== -subtle 2.6.1 (Rust crate) -License: BSD-3-Clause -Source: https://github.com/dalek-cryptography/subtle +synstructure 0.14.0 (Rust crate) +License: MIT +Source: https://github.com/mystor/synstructure --- LICENSE --- -Copyright (c) 2016-2017 Isis Agora Lovecruft, Henry de Valence. All rights reserved. -Copyright (c) 2016-2024 Isis Agora Lovecruft. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - -1. Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. +Copyright 2016 Nika Layzell -2. Redistributions in binary form must reproduce the above copyright -notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -3. Neither the name of the copyright holder nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -syn 2.0.119 (Rust crate) +thiserror 1.0.69 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/syn +Source: https://github.com/dtolnay/thiserror --- LICENSE-APACHE --- @@ -19235,9 +23159,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -syn 3.0.10 (Rust crate) +thiserror 2.0.21 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/syn +Source: https://github.com/dtolnay/thiserror --- LICENSE-APACHE --- @@ -19439,212 +23363,13 @@ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -sync_wrapper 1.0.2 (Rust crate) -License: Apache-2.0 -Source: https://github.com/Actyx/sync_wrapper - ---- LICENSE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - -============================================================================== -synstructure 0.14.0 (Rust crate) -License: MIT -Source: https://github.com/mystor/synstructure - ---- LICENSE --- - -Copyright 2016 Nika Layzell - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -thiserror 2.0.21 (Rust crate) +thiserror-impl 1.0.69 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/dtolnay/thiserror @@ -25766,6 +29491,270 @@ SPDX-License-Identifier: Unicode-3.0 Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. +============================================================================== +zerocopy 0.8.65 (Rust crate) +License: BSD-2-Clause OR Apache-2.0 OR MIT +Source: https://github.com/google/zerocopy + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2023 The Fuchsia Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--- LICENSE-BSD --- + +Copyright 2019 The Fuchsia Authors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- LICENSE-MIT --- + +Copyright 2023 The Fuchsia Authors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + ============================================================================== zerofrom 0.1.8 (Rust crate) License: Unicode-3.0 diff --git a/polyfills/apps/claude-code/helper-rs/Cargo.lock b/polyfills/apps/claude-code/helper-rs/Cargo.lock index aaf60737..7f326347 100644 --- a/polyfills/apps/claude-code/helper-rs/Cargo.lock +++ b/polyfills/apps/claude-code/helper-rs/Cargo.lock @@ -23,6 +23,17 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + [[package]] name = "atomic-waker" version = "1.1.2" @@ -76,6 +87,15 @@ version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + [[package]] name = "block-buffer" version = "0.12.1" @@ -128,8 +148,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" dependencies = [ "cfg-if", - "cpufeatures", - "rand_core", + "cpufeatures 0.3.1", + "rand_core 0.10.1", ] [[package]] @@ -139,8 +159,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" dependencies = [ "iana-time-zone", + "js-sys", "num-traits", "serde", + "wasm-bindgen", "windows-link", ] @@ -185,6 +207,15 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + [[package]] name = "cpufeatures" version = "0.3.1" @@ -203,6 +234,16 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + [[package]] name = "crypto-common" version = "0.2.2" @@ -212,15 +253,25 @@ dependencies = [ "hybrid-array", ] +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common 0.1.7", +] + [[package]] name = "digest" version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ - "block-buffer", + "block-buffer 0.12.1", "const-oid", - "crypto-common", + "crypto-common 0.2.2", ] [[package]] @@ -406,6 +457,16 @@ dependencies = [ "slab", ] +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + [[package]] name = "getrandom" version = "0.2.17" @@ -429,7 +490,7 @@ dependencies = [ "js-sys", "libc", "r-efi", - "rand_core", + "rand_core 0.10.1", "wasm-bindgen", ] @@ -731,7 +792,7 @@ dependencies = [ "jni-sys", "log", "simd_cesu8", - "thiserror", + "thiserror 2.0.21", "walkdir", "windows-link", ] @@ -824,6 +885,7 @@ name = "mcp-apps-cli-helper" version = "0.1.0" dependencies = [ "anyhow", + "async-trait", "base64 0.23.1", "hex", "http", @@ -834,7 +896,7 @@ dependencies = [ "rmcp", "serde", "serde_json", - "sha2", + "sha2 0.11.1", "tokio", "url", "windows-sys 0.61.2", @@ -936,6 +998,25 @@ dependencies = [ "autocfg", ] +[[package]] +name = "oauth2" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d" +dependencies = [ + "base64 0.22.1", + "chrono", + "getrandom 0.2.17", + "http", + "rand 0.8.8", + "serde", + "serde_json", + "serde_path_to_error", + "sha2 0.10.9", + "thiserror 1.0.69", + "url", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -1025,6 +1106,15 @@ dependencies = [ "zerovec", ] +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + [[package]] name = "proc-macro2" version = "1.0.107" @@ -1062,7 +1152,7 @@ dependencies = [ "rustc-hash", "rustls", "socket2", - "thiserror", + "thiserror 2.0.21", "tokio", "tracing", "web-time", @@ -1078,14 +1168,14 @@ dependencies = [ "bytes", "getrandom 0.4.3", "lru-slab", - "rand", + "rand 0.10.4", "rand_pcg", "ring", "rustc-hash", "rustls", "rustls-pki-types", "slab", - "thiserror", + "thiserror 2.0.21", "tinyvec", "tracing", "web-time", @@ -1120,6 +1210,17 @@ version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" +[[package]] +name = "rand" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +dependencies = [ + "libc", + "rand_chacha", + "rand_core 0.6.4", +] + [[package]] name = "rand" version = "0.10.4" @@ -1128,7 +1229,26 @@ checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ "chacha20", "getrandom 0.4.3", - "rand_core", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", ] [[package]] @@ -1143,7 +1263,7 @@ version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb95882a1e14462c69aea9984bb261293ccfe6022ef8de0eda18bd5afb0052df" dependencies = [ - "rand_core", + "rand_core 0.10.1", ] [[package]] @@ -1209,6 +1329,7 @@ version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "391f153431ab68664d946513ea0cb3edbca78eaf99c5a983036cacab6220d85b" dependencies = [ + "async-trait", "base64 0.23.1", "bytes", "chrono", @@ -1216,21 +1337,23 @@ dependencies = [ "http", "indexmap", "libc", + "oauth2", "percent-encoding", "pin-project-lite", "process-wrap", "reqwest", "serde", "serde_json", - "sha2", + "sha2 0.11.1", "sse-stream", - "thiserror", + "thiserror 2.0.21", "tokio", "tokio-stream", "tokio-util", "tracing", "unicode-general-category", "unicode-normalization", + "url", ] [[package]] @@ -1258,7 +1381,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -1432,6 +1555,28 @@ dependencies = [ "zmij", ] +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + [[package]] name = "sha2" version = "0.11.1" @@ -1439,8 +1584,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" dependencies = [ "cfg-if", - "cpufeatures", - "digest", + "cpufeatures 0.3.1", + "digest 0.11.3", ] [[package]] @@ -1580,7 +1725,16 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", ] [[package]] @@ -1589,7 +1743,18 @@ version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" dependencies = [ - "thiserror-impl", + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] @@ -1816,6 +1981,7 @@ dependencies = [ "idna", "percent-encoding", "serde", + "serde_derive", ] [[package]] @@ -1839,6 +2005,12 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + [[package]] name = "walkdir" version = "2.5.0" @@ -2191,6 +2363,26 @@ dependencies = [ "synstructure", ] +[[package]] +name = "zerocopy" +version = "0.8.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32bc8a75f879cd6fe53a6bedf3c28f0e1b914c77424fc2be9e2ec85d7d25aff5" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bfd2644ea1681f60cf95029ff18aa8ad1cc3f7b8fe37286f8e473bb29f816b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "zerofrom" version = "0.1.8" From 32d23012c1c1a082a156ff50c4dd8b88341a3da8 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:56:14 +0100 Subject: [PATCH 04/21] mcp-apps-cli helper: consent page in the browser, Keychain or passphrase-encrypted tokens (macOS) signin shows a short consent page on a loopback address of its own (random port, token against forged requests, Host and Origin checks, closed after the answer or five minutes): what it means, where to keep the login, Accept or Refuse. Accept goes on to the server's own sign-in in the same tab. The y/N question stays for --no-browser; --yes and the environment variable skip both. The tokens go to the macOS Keychain (Security.framework, called directly), or to a file encrypted with a passphrase (AES-256-GCM, PBKDF2-HMAC-SHA256); a plain file is an explicit option only. No silent fall back. macOS only for now. --- .../apps/claude-code/helper-rs/Cargo.toml | 6 + .../apps/claude-code/helper-rs/src/consent.rs | 84 ++++ .../apps/claude-code/helper-rs/src/main.rs | 2 + .../apps/claude-code/helper-rs/src/mcp.rs | 9 +- .../apps/claude-code/helper-rs/src/oauth.rs | 451 +++++++++++++----- .../apps/claude-code/helper-rs/src/vault.rs | 433 +++++++++++++++++ .../apps/claude-code/helper-rs/tests/gate.rs | 122 ++++- .../helper-rs/tests/oauth-server.mjs | 30 ++ .../mod/.claude-plugin/plugin.json | 2 +- 9 files changed, 1020 insertions(+), 119 deletions(-) create mode 100644 polyfills/apps/claude-code/helper-rs/src/consent.rs create mode 100644 polyfills/apps/claude-code/helper-rs/src/vault.rs diff --git a/polyfills/apps/claude-code/helper-rs/Cargo.toml b/polyfills/apps/claude-code/helper-rs/Cargo.toml index 185fecaa..35976a39 100644 --- a/polyfills/apps/claude-code/helper-rs/Cargo.toml +++ b/polyfills/apps/claude-code/helper-rs/Cargo.toml @@ -43,3 +43,9 @@ reqwest = { version = "0.13", default-features = false, features = ["rustls"] } rmcp = { version = "3.11.0", default-features = false, features = ["reqwest-native-tls"] } reqwest = { version = "0.13", default-features = false, features = ["native-tls"] } windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Pipes", "Win32_System_Threading", "Win32_System_JobObjects", "Win32_System_Diagnostics_ToolHelp", "Win32_Security_Cryptography"] } + +# The helper's own sign-in keeps its tokens in the macOS Keychain (called +# directly) or in a file encrypted with a passphrase (macOS only for now). +[target.'cfg(target_os = "macos")'.dependencies] +aes-gcm = "0.11.1" +pbkdf2 = { version = "0.13.0", features = ["hmac"] } diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs new file mode 100644 index 00000000..75e85757 --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -0,0 +1,84 @@ +//! The pages `signin` shows in the person's browser (served by oauth.rs on a +//! loopback address of its own): the consent page, and the two that end it. +//! Plain HTML and CSS, no script, nothing loaded from elsewhere. + +/// Text safe to put in HTML. +fn escape(text: &str) -> String { + text.replace('&', "&").replace('<', "<").replace('>', ">").replace('"', """).replace('\'', "'") +} + +const STYLE: &str = "\ +body{margin:0;background:#f4f5f7;color:#1c1e21;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:flex;justify-content:center;padding:48px 16px}\ +main{width:100%;max-width:560px;background:#fff;border:1px solid #d9dce1;border-radius:14px;padding:28px 30px;box-shadow:0 2px 10px rgba(0,0,0,.05)}\ +h1{font-size:22px;margin:0 0 2px}.url{font:13px ui-monospace,Menlo,monospace;color:#6b7280;margin:0 0 18px;word-break:break-all}\ +ul{margin:0 0 20px;padding-left:20px}li{margin:6px 0}h2{font-size:15px;margin:0 0 8px}\ +label.opt{display:block;border:1px solid #d9dce1;border-radius:10px;padding:10px 12px;margin:0 0 8px;cursor:pointer}\ +input:checked + label.opt{border-color:#2563eb;background:#eff4ff}label.opt small{display:block;color:#6b7280}input[type=radio]{margin-right:8px}\ +.pass{display:none;margin:0 0 8px 28px}input#enc:checked ~ .pass{display:block}\ +.pass input{display:block;width:100%;box-sizing:border-box;padding:8px;margin:4px 0;border:1px solid #c4c8cf;border-radius:8px;font-size:15px}\ +details{margin:0 0 20px}summary{cursor:pointer;color:#4b5563;font-size:14px}\ +.row{display:flex;gap:10px;margin-top:20px}button{font:600 15px inherit;border-radius:9px;padding:10px 20px;border:1px solid #c4c8cf;background:#fff;cursor:pointer}\ +button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fdecea;border:1px solid #f5b5af;color:#8a1c14;border-radius:8px;padding:8px 12px;margin:0 0 16px}\ +.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; + +fn shell(title: &str, body: &str) -> String { + format!("{}
{body}
", escape(title)) +} + +/// The consent page for `name` at `url`; `token` guards the form; `problem` +/// is what went wrong with the last answer, if anything. +pub fn page(name: &str, url: &str, token: &str, problem: Option<&str>) -> String { + let (name, url, token) = (escape(name), escape(url), escape(token)); + let error = problem.map(|p| format!("

{}

", escape(p))).unwrap_or_default(); + let mac = cfg!(target_os = "macos"); + let stores = if mac { + "\ + \ + \ + \ +
\ +
Advanced
" + } else { + "

Only a plain file is available on this system for now (macOS gets the Keychain and encrypted files first).

\ + " + }; + // The radio inputs are hidden and chosen through their labels; the checked + // one decides which fields show (CSS only, see `.pass`). + let body = format!( + "{error}

Sign in to “{name}”?

{url}

\ +
  • The helper gets its own login to {name}. Claude Code’s sign-in is not used.
  • \ +
  • Claude Code’s /mcp and your organisation’s MCP rules can’t see or cancel it.
  • \ +
  • It stays until you run mcp-apps-cli-helper signout {name}.
\ +

Where to keep the login

{stores}\ +
\ +

More: README, “Own sign-in”

", + more = crate::oauth::MORE + ); + shell(&format!("Sign in to {name}?"), &body) +} + +pub fn refused_page(name: &str) -> String { + shell("Not signed in", &format!("

Not signed in

Nothing was kept for “{}”. You can close this tab.

", escape(name))) +} + +pub fn done_page() -> String { + shell("Signed in", "

Signed in

You can close this tab and go back to the terminal.

") +} + +#[cfg(test)] +mod tests { + use super::*; + + // What the person is shown: the server, three points, the stores, both buttons, nothing injected. + #[test] + fn the_consent_page_says_what_it_means_and_escapes_what_it_shows() { + let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", "tok", Some("two different")); + for needle in ["its own login", "can’t see or cancel", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Plain file, not encrypted", "a=1&b=2"] { + assert!(html.contains(needle), "{needle}"); + } + assert!(!html.contains("de") && !html.contains("different") && !html.contains(" String { if listed { format!(" (signed out or expired: run `mcp-apps-cli-helper signin {name}`)") } else { - " (this server needs sign-in, which the helper doesn't share with Claude Code: see \"Servers that need sign-in\" in the README)".to_string() + " (needs sign-in, which the helper doesn't share with Claude Code: see \"Servers that need sign-in\" in the README)".to_string() } } @@ -701,7 +701,7 @@ mod tests { } /// The person signing in: the address `signin` shows is opened as a browser would. async fn sign_in(&self) -> anyhow::Result<()> { - crate::oauth::signin("docs", &self.url, |address| { + crate::oauth::signin("docs", &self.url, crate::vault::Kind::File, |address| { let address = address.to_string(); tokio::spawn(async move { let _ = reqwest::get(address).await; @@ -732,7 +732,10 @@ mod tests { let _ = std::fs::remove_dir_all(&dir); std::fs::create_dir_all(&dir).unwrap(); // SAFETY: the only test that sets it, and nothing else here reads it concurrently. - unsafe { std::env::set_var("MCP_APPS_CLI_OAUTH_DIR", dir.join("tokens")) }; + unsafe { + std::env::set_var("MCP_APPS_CLI_OAUTH_DIR", dir.join("tokens")); + std::env::set_var("MCP_APPS_CLI_TOKEN_STORE", "file"); + } let view = json!({"uri": "ui://demo/view.html"}); let modes = ["modern", "legacy", "dual", "open"]; for serves in modes { diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index 3db698e4..86ca6c30 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -9,15 +9,19 @@ //! server the person chose, is sign in itself, with the MCP authorization //! spec's flow as rmcp implements it (protected resource metadata, dynamic //! client registration, authorization code with PKCE, refresh). That is a -//! second grant, with its own life, so each step is the person's: +//! separate grant, with its own life, so each step is the person's: //! -//! - `mcp-apps-cli-helper signin ` says what that means, asks to -//! continue (default no), opens the person's browser at the server's -//! authorization page, takes the answer on a loopback address of its own, -//! and keeps the tokens (and the client the server registered) in a file -//! only the person can read (`folder`); +//! - `mcp-apps-cli-helper signin ` shows a short consent page in the +//! person's browser (served on a loopback address of its own, with a token +//! against forged requests, stopped after the answer or a delay): what it +//! means, where to keep the login (the macOS Keychain, or a file encrypted +//! with a passphrase; a plain file is an advanced option), Accept or +//! Refuse. Accept goes on to the server's own sign-in in the same tab and +//! keeps the tokens. Without a browser (`--no-browser`), a y/N question in +//! the terminal asks the same; `--yes` and `MCP_APPS_CLI_SIGNIN_YES=1` skip +//! it (vault.rs for the stores, consent.rs for the page); //! - `mcp-apps-cli-helper signout ` asks the server to revoke the -//! tokens where it offers that (RFC 7009) and deletes the file; +//! tokens where it offers that (RFC 7009) and deletes them; //! - the mod tells the helper, with each request that names a server, whether //! the person listed it; only then does the helper's connection carry the //! token (refreshed by rmcp when it ends). Nothing is written to Claude @@ -26,41 +30,27 @@ //! The helper uses it only for a server it may already use (config.rs), and //! only over `https` or to a loopback address. +use std::collections::HashMap; use std::io::{BufRead, IsTerminal, Write}; -use std::path::PathBuf; use std::time::Duration; use anyhow::{Context, Result, anyhow, bail}; use async_trait::async_trait; use rmcp::transport::auth::{AuthClient, AuthError, AuthorizationManager, AuthorizationRequest, AuthorizationSession, CredentialStore, StoredCredentials}; use tokio::io::{AsyncReadExt, AsyncWriteExt}; -use tokio::net::TcpListener; +use tokio::net::{TcpListener, TcpStream}; -/// How long `signin` waits for the person to answer in the browser. -const WAIT: Duration = Duration::from_secs(300); - -/// The one folder sign-ins are kept in: `$MCP_APPS_CLI_OAUTH_DIR` if it is -/// set (the tests use it), else `~/.cache/mcp-apps-cli/oauth`. -fn folder() -> Option { - if let Some(dir) = std::env::var_os("MCP_APPS_CLI_OAUTH_DIR").filter(|d| !d.is_empty()) { - return Some(PathBuf::from(dir)); - } - crate::tmp::home().map(|home| home.join(".cache").join("mcp-apps-cli").join("oauth")) -} +use crate::vault::{self, Kind, PASSPHRASE_ENV, Place}; -/// The file for one server at one url, so a token is never used for another url. -fn file(name: &str, url: &str) -> Option { - folder().map(|folder| folder.join(crate::store::file_name(name, url))) -} +/// How long `signin` waits for the person to answer, in the browser, at each step. +const WAIT: Duration = Duration::from_secs(300); -/// The file a sign-in to one server at one url was kept in, if there is one. -fn kept_file(name: &str, url: &str) -> Option { - file(name, url).filter(|path| path.is_file()) -} +/// Where the detail is. +pub const MORE: &str = "https://github.com/idosal/AgentPolyfill/tree/main/polyfills/apps/claude-code#limits"; -/// The tokens of one server, in a file only the person can read. -struct FileStore { - path: PathBuf, +/// The tokens of one server. +struct TokenStore { + place: Place, } fn failed(error: impl std::fmt::Display) -> AuthError { @@ -68,23 +58,20 @@ fn failed(error: impl std::fmt::Display) -> AuthError { } #[async_trait] -impl CredentialStore for FileStore { +impl CredentialStore for TokenStore { async fn load(&self) -> Result, AuthError> { - match crate::store::read(&self.path) { + match self.place.read().map_err(failed)? { Some(value) => serde_json::from_value(value).map(Some).map_err(failed), None => Ok(None), } } async fn save(&self, credentials: StoredCredentials) -> Result<(), AuthError> { - crate::store::write_json(&self.path, &serde_json::to_value(&credentials).map_err(failed)?).map_err(failed) + self.place.write(&serde_json::to_value(&credentials).map_err(failed)?).map_err(failed) } async fn clear(&self) -> Result<(), AuthError> { - match std::fs::remove_file(&self.path) { - Err(e) if e.kind() != std::io::ErrorKind::NotFound => Err(failed(e)), - _ => Ok(()), - } + self.place.delete().map_err(failed) } } @@ -110,9 +97,9 @@ pub async fn client(name: &str, url: &str) -> Result Result Result<()> { +/// Starts the flow with the server: its metadata, a client registered, and +/// the address the person opens. The tokens go to `place` when it is done. +async fn begin(name: &str, url: &str, place: Place, redirect: &str) -> Result { + let _ = name; + let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + manager.set_credential_store(TokenStore { place }); + let found = manager.resolve_metadata().await.map_err(|e| anyhow!("the server's sign-in page was not found: {e}"))?; + manager.set_metadata(found.metadata); + let request = AuthorizationRequest::new(redirect.to_string()).with_client_name("mcp-apps-cli"); + AuthorizationSession::new(manager, request).await.map_err(|(_, e)| anyhow!("{e}")) +} + +/// Makes the folder a file store needs. +fn prepare(place: &Place) -> Result<()> { + if let Place::File(path) | Place::Encrypted(path, _) = place { + crate::store::private_folder(path.parent().context("no folder to keep the sign-in in")?)?; + } + Ok(()) +} + +fn check_url(name: &str, url: &str) -> Result<()> { if !allowed(url) { bail!("\"{name}\" is at {url}: the helper signs in only to an https address, or one on this machine"); } - let path = file(name, url).context("no folder to keep the sign-in in")?; - crate::store::private_folder(path.parent().context("no folder to keep the sign-in in")?)?; + Ok(()) +} + +/// Signs in to `name` at `url` with the place already chosen: `show` is given +/// the address the person opens (the terminal path prints it and tries the +/// browser). Returns when the tokens are kept. +pub async fn signin(name: &str, url: &str, kind: Kind, show: impl FnOnce(&str)) -> Result<()> { + check_url(name, url)?; + let place = Place::of(kind, name, url, std::env::var(PASSPHRASE_ENV).ok()).context("no folder to keep the sign-in in")?; + prepare(&place)?; let listener = TcpListener::bind("127.0.0.1:0").await?; - let redirect = format!("http://127.0.0.1:{}/callback", listener.local_addr()?.port()); - let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; - manager.set_credential_store(FileStore { path }); - let found = manager.resolve_metadata().await.map_err(|e| anyhow!("the server's sign-in page was not found: {e}"))?; - manager.set_metadata(found.metadata); - let request = AuthorizationRequest::new(redirect.clone()).with_client_name("mcp-apps-cli"); - let session = AuthorizationSession::new(manager, request).await.map_err(|(_, e)| anyhow!("{e}"))?; + let port = listener.local_addr()?.port(); + let mut requests = listen(listener, port); + let session = begin(name, url, place, &format!("http://127.0.0.1:{port}/callback")).await?; show(&session.auth_url); - let callback = tokio::time::timeout(WAIT, wait_for_callback(&listener)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; - session.handle_callback_url(&format!("http://127.0.0.1:{}{callback}", listener.local_addr()?.port())).await.map_err(|e| anyhow!("{e}"))?; - Ok(()) + callback(&mut requests, port, session).await } -/// The request target (`/callback?code=…&state=…`) of the browser's return. -async fn wait_for_callback(listener: &TcpListener) -> Result { +/// The browser's return from the server's sign-in page. +async fn callback(requests: &mut Requests, port: u16, session: AuthorizationSession) -> Result<()> { + let target = tokio::time::timeout(WAIT, wait_for_callback(requests)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; + session.handle_callback_url(&format!("http://127.0.0.1:{port}{target}")).await.map(|_| ()).map_err(|e| anyhow!("{e}")) +} + +// ---- a small HTTP server, for the consent page and the sign-in's return ---- + +struct Http { + method: String, + target: String, + headers: HashMap, + body: String, +} + +impl Http { + fn path(&self) -> &str { + self.target.split('?').next().unwrap_or("") + } + fn query(&self, key: &str) -> Option { + let query = self.target.split_once('?')?.1; + url::form_urlencoded::parse(query.as_bytes()).find(|(k, _)| k == key).map(|(_, v)| v.into_owned()) + } + fn form(&self) -> HashMap { + url::form_urlencoded::parse(self.body.as_bytes()).map(|(k, v)| (k.into_owned(), v.into_owned())).collect() + } +} + +/// One request, read whole (headers and a body up to 64 KB), or none. +async fn read_http(stream: &mut TcpStream) -> Option { + let mut buf = Vec::new(); + let mut chunk = [0u8; 4096]; loop { - let (mut stream, peer) = listener.accept().await?; - if !peer.ip().is_loopback() { - continue; + let n = tokio::time::timeout(Duration::from_secs(5), stream.read(&mut chunk)).await.ok()?.ok()?; + if n == 0 || buf.len() > 65536 { + return None; + } + buf.extend_from_slice(&chunk[..n]); + let Some(end) = buf.windows(4).position(|w| w == b"\r\n\r\n") else { continue }; + let head = String::from_utf8_lossy(&buf[..end]).to_string(); + let mut lines = head.lines(); + let mut first = lines.next()?.split_whitespace(); + let (method, target) = (first.next()?.to_string(), first.next()?.to_string()); + let headers: HashMap = lines.filter_map(|l| l.split_once(':')).map(|(k, v)| (k.trim().to_ascii_lowercase(), v.trim().to_string())).collect(); + let length: usize = headers.get("content-length").and_then(|v| v.parse().ok()).unwrap_or(0); + if buf.len() >= end + 4 + length { + let body = String::from_utf8_lossy(&buf[end + 4..end + 4 + length]).to_string(); + return Some(Http { method, target, headers, body }); + } + } +} + +async fn respond(stream: &mut TcpStream, status: &str, extra: &str, body: &str) { + let head = format!( + "HTTP/1.1 {status}\r\ncontent-type: text/html; charset=utf-8\r\ncontent-length: {}\r\nconnection: close\r\ncache-control: no-store\r\n\ + content-security-policy: default-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'\r\nx-frame-options: DENY\r\nreferrer-policy: same-origin\r\n{extra}\r\n", + body.len() + ); + let _ = stream.write_all(head.as_bytes()).await; + let _ = stream.write_all(body.as_bytes()).await; +} + +/// The requests this server gets from this machine, to its own address (a +/// page on another site can't reach it by a name that points here). Each +/// connection is read on its own, so a browser's idle spare connection (they +/// open some ahead) never holds up the one that carries the request. +struct Requests { + rx: tokio::sync::mpsc::UnboundedReceiver<(TcpStream, Http)>, +} + +fn listen(listener: TcpListener, port: u16) -> Requests { + let (tx, rx) = tokio::sync::mpsc::unbounded_channel(); + tokio::spawn(async move { + while let Ok((mut stream, peer)) = listener.accept().await { + if !peer.ip().is_loopback() { + continue; + } + let tx = tx.clone(); + tokio::spawn(async move { + let Some(request) = read_http(&mut stream).await else { return }; + let host = request.headers.get("host").map(String::as_str).unwrap_or(""); + if host != format!("127.0.0.1:{port}") && host != format!("localhost:{port}") { + respond(&mut stream, "400 Bad Request", "", "").await; + return; + } + let _ = tx.send((stream, request)); + }); } - let mut head = vec![0u8; 8192]; - let n = tokio::time::timeout(Duration::from_secs(5), stream.read(&mut head)).await.ok().and_then(Result::ok).unwrap_or(0); - let text = String::from_utf8_lossy(&head[..n]).to_string(); - let target = text.lines().next().and_then(|l| l.strip_prefix("GET ")).and_then(|l| l.split_whitespace().next()).unwrap_or("").to_string(); - let ours = target.starts_with("/callback?"); - let body = if ours { "Signed in

Signed in. You can close this tab." } else { "" }; - let status = if ours { "200 OK" } else { "404 Not Found" }; - let _ = stream - .write_all(format!("HTTP/1.1 {status}\r\ncontent-type: text/html\r\ncontent-length: {}\r\nconnection: close\r\n\r\n{body}", body.len()).as_bytes()) - .await; + }); + Requests { rx } +} + +impl Requests { + async fn next(&mut self) -> Result<(TcpStream, Http)> { + self.rx.recv().await.context("the local server stopped") + } +} + +/// The request target (`/callback?code=…&state=…`) of the browser's return. +async fn wait_for_callback(requests: &mut Requests) -> Result { + loop { + let (mut stream, request) = requests.next().await?; + let ours = request.method == "GET" && request.path() == "/callback"; + let body = if ours { crate::consent::done_page() } else { String::new() }; + respond(&mut stream, if ours { "200 OK" } else { "404 Not Found" }, "", &body).await; if ours { - if target.contains("error=") { - bail!("the server refused the sign-in: {target}"); + if request.target.contains("error=") { + bail!("the server refused the sign-in: {}", request.target); } - return Ok(target); + return Ok(request.target); + } + } +} + +enum Answer { + Refused, + Accepted(Box, Place), +} + +/// The consent page: served until the person accepts or refuses. +async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: &str, url: &str) -> Result { + let mut problem: Option = None; + loop { + let (mut stream, request) = requests.next().await?; + let origin_ok = request.headers.get("origin").is_none_or(|o| o == &format!("http://127.0.0.1:{port}") || o == &format!("http://localhost:{port}")); + match (request.method.as_str(), request.path()) { + ("GET", "/consent") if request.query("t").as_deref() == Some(token) => { + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, token, problem.as_deref())).await; + } + ("POST", "/decision") if origin_ok && request.form().get("t").map(String::as_str) == Some(token) => { + let form = request.form(); + if form.get("decision").map(String::as_str) != Some("accept") { + respond(&mut stream, "200 OK", "", &crate::consent::refused_page(name)).await; + return Ok(Answer::Refused); + } + match accepted(&form, name, url, port).await { + Ok((session, place)) => { + let location = format!("location: {}\r\n", session.auth_url); + respond(&mut stream, "303 See Other", &location, "").await; + return Ok(Answer::Accepted(Box::new(session), place)); + } + Err(why) => { + problem = Some(format!("{why:#}")); + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, token, problem.as_deref())).await; + } + } + } + _ => respond(&mut stream, "404 Not Found", "", "").await, + } + } +} + +/// What the page's form chose, checked, and the flow begun with the server. +async fn accepted(form: &HashMap, name: &str, url: &str, port: u16) -> Result<(AuthorizationSession, Place)> { + let kind = Kind::parse(form.get("store").map(String::as_str).unwrap_or("keychain"))?; + let passphrase = if kind == Kind::Encrypted { + let first = form.get("passphrase").cloned().unwrap_or_default(); + vault::check_passphrase(&first)?; + if form.get("again") != Some(&first) { + bail!("the two passphrases differ"); + } + Some(first) + } else { + None + }; + vault::usable(kind)?; + let place = Place::of(kind, name, url, passphrase).context("no folder to keep the sign-in in")?; + prepare(&place)?; + let session = begin(name, url, place.clone(), &format!("http://127.0.0.1:{port}/callback")).await?; + Ok((session, place)) +} + +/// The browser path: consent page, then the server's own sign-in in the same +/// tab. `ready` is given the page's address. None: the person refused. +pub async fn signin_in_browser(name: &str, url: &str, ready: impl FnOnce(&str)) -> Result> { + check_url(name, url)?; + let listener = TcpListener::bind("127.0.0.1:0").await?; + let port = listener.local_addr()?.port(); + let token = crate::tmp::random_hex(16)?; + let mut requests = listen(listener, port); + ready(&format!("http://127.0.0.1:{port}/consent?t={token}")); + let answer = tokio::time::timeout(WAIT, wait_for_consent(&mut requests, port, &token, name, url)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; + match answer { + Answer::Refused => Ok(None), + Answer::Accepted(session, place) => { + callback(&mut requests, port, *session).await?; + Ok(Some(place)) } } } @@ -178,36 +350,95 @@ fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { Ok((name.clone(), url)) } -/// What `signin` says before it opens the browser. -fn notice(name: &str, url: &str, path: &str) -> String { +/// What the terminal says before its y/N question (the fallback to the +/// consent page): plain words, one idea a line. +fn notice(name: &str, url: &str, place: &Place) -> String { format!( - "This signs the helper in to \"{name}\" ({url}) on its own.\n\ - It is not Claude Code's sign-in, which the helper never reads.\n\ - \n\ - \x20 - A second grant. The server registers \"mcp-apps-cli\" as a new client and\n\ - \x20 shows its own consent screen. Claude Code's `/mcp` neither lists this\n\ - \x20 grant nor clears it, and your organisation's MCP sign-in settings don't\n\ - \x20 apply to it.\n\ - \x20 - Kept on this machine. The access and refresh tokens go in one file only\n\ - \x20 you can read, not encrypted:\n\ - \x20 {path}\n\ - \x20 The helper refreshes them until you sign out.\n\ - \x20 - To end it: `mcp-apps-cli-helper signout {name}` deletes the file and asks\n\ - \x20 the server to revoke the tokens where it offers that. You can also remove\n\ - \x20 \"mcp-apps-cli\" from the server's list of connected apps.\n" + "Sign in to \"{name}\" ({url}) for this helper only (Claude Code's own sign-in is not used).\n\ + \x20 - What it does: gives the helper its own login to \"{name}\", kept in {}.\n\ + \x20 - What to know: Claude Code's `/mcp` and your organisation's MCP rules can't see or cancel it.\n\ + \x20 - To undo it: `mcp-apps-cli-helper signout {name}`\n\ + More: {MORE}\n", + place.describe() ) } -/// `mcp-apps-cli-helper signin [--yes] [--mcp-config …] [--cwd …]` +fn flag(words: &[String], name: &str) -> bool { + words.iter().any(|w| w == name) +} + +/// The final lines of a sign-in that worked. +fn signed_in(name: &str, place: &Place) { + println!("\nSigned in to {name}. The login is kept in the {}.", place.short()); + if matches!(place, Place::Encrypted(..)) { + println!("When you start Claude Code, set {PASSPHRASE_ENV} in the environment: the helper can't ask for it."); + } + // From a terminal the helper can't read /config, so it can't know. + println!("If \"{name}\" isn't under \"Own sign-in (OAuth)\" in /config, add it."); +} + +/// `mcp-apps-cli-helper signin [--yes] [--no-browser] [--token-store keychain|encrypted|file]` pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { let (name, url) = target(&args, words)?; let name = name.as_str(); - let path = file(name, &url).context("no folder to keep the sign-in in")?; - let shown = path.display().to_string(); - println!("{}", notice(name, &url, &shown)); + let asked = vault::asked(words)?; // `--yes`, or `MCP_APPS_CLI_SIGNIN_YES=1` for someone who always wants it - // (a terminal can't read /config): the text above is still shown. - let assumed = words.iter().any(|w| w == "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); + // (a terminal can't read /config), and `--no-browser`: no consent page. + let assumed = flag(words, "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); + if !assumed && !flag(words, "--no-browser") { + let interactive = std::io::stdin().is_terminal(); + let place = signin_in_browser(name, &url, |page| { + if interactive { + println!("Press Enter to review and approve in your browser\n(or open: {page})"); + let page = page.to_string(); + // Not a task: a read of the terminal that never ends must not hold the process. + std::thread::spawn(move || { + let mut line = String::new(); + if std::io::stdin().lock().read_line(&mut line).is_ok() && std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + open_browser(&page); + } + }); + } else { + println!("Review and approve in your browser: {page}"); + if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + open_browser(page); + } + } + }) + .await?; + match place { + Some(place) => signed_in(name, &place), + None => println!("Not signed in to {name}."), + } + return Ok(()); + } + // The terminal: the same question, and the same choices. + let kind = match asked { + Some(kind) => kind, + None if !assumed && std::io::stdin().is_terminal() && Kind::Encrypted.available() => { + print!("Where to keep the login? [1] macOS Keychain (default) [2] file encrypted with a passphrase: "); + std::io::stdout().flush()?; + let mut choice = String::new(); + std::io::stdin().lock().read_line(&mut choice)?; + if choice.trim() == "2" { Kind::Encrypted } else { Kind::Keychain } + } + None => if Kind::Keychain.available() { Kind::Keychain } else { Kind::File }, + }; + vault::usable(kind)?; + let mut passphrase = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); + if kind == Kind::Encrypted && passphrase.is_none() { + if !std::io::stdin().is_terminal() { + bail!("a passphrase can't be asked for here: set {PASSPHRASE_ENV}"); + } + let first = vault::prompt_passphrase("Passphrase (at least 8 characters): ")?; + vault::check_passphrase(&first)?; + if vault::prompt_passphrase("Again: ")? != first { + bail!("the two passphrases differ"); + } + passphrase = Some(first); + } + let place = Place::of(kind, name, &url, passphrase.clone()).context("no folder to keep the sign-in in")?; + println!("{}", notice(name, &url, &place)); if !assumed { if !std::io::stdin().is_terminal() { bail!("signin asks a question: run it in a terminal, or pass --yes (or set MCP_APPS_CLI_SIGNIN_YES=1)"); @@ -217,28 +448,31 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { let mut answer = String::new(); std::io::stdin().lock().read_line(&mut answer)?; if !matches!(answer.trim().to_ascii_lowercase().as_str(), "y" | "yes") { - println!("Not signed in to {name}. Nothing was kept."); + println!("Not signed in to {name}."); return Ok(()); } } println!(); - signin(name, &url, |address| { + // The passphrase is read from the environment inside `signin`. + if let Some(p) = &passphrase { + // SAFETY: nothing else runs yet that reads the environment. + unsafe { std::env::set_var(PASSPHRASE_ENV, p) }; + } + signin(name, &url, kind, |address| { println!("Open this address to sign in to {name}:\n{address}"); if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { open_browser(address); } }) .await?; - println!("\nSigned in to {name}.\nTokens kept in {shown}\nSign out with: mcp-apps-cli-helper signout {name}"); - // From a terminal the helper can't read /config, so it can't know. - println!("If \"{name}\" isn't listed under \"Own sign-in (OAuth)\" in /config yet, add it there: the next tool call then shows the app."); + signed_in(name, &place); Ok(()) } /// Asks the server to revoke the tokens in `path` (RFC 7009): what to say about it. -async fn revoke(name: &str, url: &str, path: &std::path::Path) -> String { +async fn revoke(name: &str, url: &str, place: &Place) -> String { let none = format!("{name} offers no way to revoke from here: remove \"mcp-apps-cli\" in its connected apps."); - let Some(kept) = crate::store::read(path) else { return none }; + let Ok(Some(kept)) = place.read() else { return none }; let attempt = async { let manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; let found = manager.resolve_metadata().await.map_err(|e| anyhow!("{e}"))?; @@ -268,13 +502,16 @@ async fn revoke(name: &str, url: &str, path: &std::path::Path) -> String { /// `mcp-apps-cli-helper signout [--mcp-config …] [--cwd …]` pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { let (name, url) = target(&args, words)?; - let Some(path) = kept_file(&name, &url) else { - println!("The helper is not signed in to {name}: nothing to delete."); + let Some(place) = vault::kept(&name, &url) else { + println!("Not signed in to {name}: nothing to delete."); return Ok(()); }; - println!("{}", revoke(&name, &url, &path).await); - std::fs::remove_file(&path).with_context(|| format!("deleting {}", path.display()))?; - println!("Deleted {}", path.display()); + println!("{}", revoke(&name, &url, &place).await); + place.delete().map_err(|why| anyhow!("deleting the tokens from {}: {why}", place.describe()))?; + match &place { + Place::File(path) | Place::Encrypted(path, _) => println!("Deleted {}", path.display()), + Place::Keychain(_) => println!("Removed the tokens from the macOS Keychain."), + } Ok(()) } diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs new file mode 100644 index 00000000..84d9491f --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -0,0 +1,433 @@ +//! Where the helper's own sign-in keeps its tokens, for one server at one url: +//! the macOS Keychain (called directly), a file encrypted with a passphrase +//! (AES-256-GCM, a key from PBKDF2-HMAC-SHA256), or, only when asked, a file +//! only the person can read, not encrypted. macOS only for now: elsewhere only +//! the plain file is offered. There is no silent fall back from one to another. + +use std::path::PathBuf; + +use anyhow::{Result, bail}; +use serde_json::Value; + +/// The keychain item's service name; the account is one per server and url. +#[cfg_attr(not(target_os = "macos"), allow(dead_code))] +const SERVICE: &str = "mcp-apps-cli"; + +/// The environment variable the passphrase of an encrypted file is read from +/// where nobody can be asked (a session's helper). +pub const PASSPHRASE_ENV: &str = "MCP_APPS_CLI_PASSPHRASE"; + +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum Kind { + Keychain, + Encrypted, + File, +} + +impl Kind { + pub fn parse(word: &str) -> Result { + match word { + "keychain" => Ok(Kind::Keychain), + "encrypted" => Ok(Kind::Encrypted), + "file" => Ok(Kind::File), + other => bail!("--token-store is \"keychain\", \"encrypted\" or \"file\", not \"{other}\""), + } + } + + /// Whether this machine can keep tokens that way (the first two: macOS only for now). + pub fn available(self) -> bool { + self == Kind::File || cfg!(target_os = "macos") + } +} + +/// The store the person asked for, if they did: the flag wins over the environment. +pub fn asked(words: &[String]) -> Result> { + let flag = words.iter().position(|w| w == "--token-store").and_then(|i| words.get(i + 1)).cloned(); + flag.or_else(|| std::env::var("MCP_APPS_CLI_TOKEN_STORE").ok().filter(|v| !v.is_empty())).map(|v| Kind::parse(&v)).transpose() +} + +/// The folder for the files: `$MCP_APPS_CLI_OAUTH_DIR` if it is set (the +/// tests use it), else `~/.cache/mcp-apps-cli/oauth`. +fn folder() -> Option { + if let Some(dir) = std::env::var_os("MCP_APPS_CLI_OAUTH_DIR").filter(|d| !d.is_empty()) { + return Some(PathBuf::from(dir)); + } + crate::tmp::home().map(|home| home.join(".cache").join("mcp-apps-cli").join("oauth")) +} + +#[derive(Clone, Debug)] +pub enum Place { + Keychain(String), + Encrypted(PathBuf, String), + File(PathBuf), +} + +impl Place { + /// The place of `kind` for one server at one url; `passphrase` is for an encrypted file. + pub fn of(kind: Kind, name: &str, url: &str, passphrase: Option) -> Option { + let account = crate::store::file_name(name, url); + match kind { + Kind::Keychain => Some(Place::Keychain(account)), + Kind::Encrypted => folder().map(|f| Place::Encrypted(f.join(format!("{account}.enc")), passphrase.unwrap_or_default())), + Kind::File => folder().map(|f| Place::File(f.join(account))), + } + } + + /// Where the tokens are, in words the person reads. + pub fn describe(&self) -> String { + match self { + Place::Keychain(_) => "the macOS Keychain".to_string(), + Place::Encrypted(path, _) => format!("a file encrypted with your passphrase: {}", path.display()), + Place::File(path) => format!("a plain file, not encrypted: {}", path.display()), + } + } + + /// The same, short, for the line that says the sign-in is done. + pub fn short(&self) -> &'static str { + match self { + Place::Keychain(_) => "macOS Keychain", + Place::Encrypted(..) => "encrypted file", + Place::File(_) => "plain file", + } + } + + pub fn read(&self) -> Result> { + match self { + Place::File(path) => Ok(crate::store::read(path)), + Place::Keychain(account) => match keychain_get(account)? { + Some(text) => Ok(serde_json::from_str(&text).ok()), + None => Ok(None), + }, + Place::Encrypted(path, passphrase) => match crate::store::read(path) { + None => Ok(None), + Some(wrapped) => { + if passphrase.is_empty() { + bail!("this sign-in is in a file encrypted with a passphrase: set {PASSPHRASE_ENV} in the environment you start Claude Code from"); + } + Ok(Some(open(&wrapped, passphrase)?)) + } + }, + } + } + + pub fn write(&self, value: &Value) -> Result<()> { + match self { + Place::File(path) => crate::store::write_json(path, value), + Place::Keychain(account) => keychain_set(account, &value.to_string()), + Place::Encrypted(path, passphrase) => crate::store::write_json(path, &seal(value, passphrase)?), + } + } + + pub fn delete(&self) -> Result<()> { + match self { + Place::File(path) | Place::Encrypted(path, _) => match std::fs::remove_file(path) { + Err(e) if e.kind() != std::io::ErrorKind::NotFound => Err(e.into()), + _ => Ok(()), + }, + Place::Keychain(account) => keychain_delete(account), + } + } + + /// Whether tokens are kept here (an encrypted file counts without being opened). + pub fn exists(&self) -> bool { + match self { + Place::File(path) | Place::Encrypted(path, _) => path.is_file(), + Place::Keychain(_) => matches!(self.read(), Ok(Some(_))), + } + } +} + +/// Where a sign-in to one server at one url is kept, if there is one: the +/// Keychain, then an encrypted file, then a plain file (unless only the file +/// store was asked for, as the tests do). +pub fn kept(name: &str, url: &str) -> Option { + let passphrase = std::env::var(PASSPHRASE_ENV).ok(); + let file_only = std::env::var("MCP_APPS_CLI_TOKEN_STORE").is_ok_and(|v| v == "file"); + let kinds: &[Kind] = if file_only { &[Kind::File] } else { &[Kind::Keychain, Kind::Encrypted, Kind::File] }; + kinds.iter().filter(|k| k.available()).filter_map(|k| Place::of(*k, name, url, passphrase.clone())).find(Place::exists) +} + +/// Refuses early, and says what to do, if `kind` can't be used here. +pub fn usable(kind: Kind) -> Result<()> { + if !kind.available() { + bail!("keeping the login safely (Keychain, encrypted file) is only done on macOS for now; Linux and Windows may follow. To keep it in a plain file instead, add `--token-store file`."); + } + if kind == Kind::Keychain { + let probe = Place::Keychain(format!("probe-{}", std::process::id())); + probe.write(&serde_json::json!("probe")).and_then(|()| probe.delete()).map_err(|why| { + anyhow::anyhow!("the macOS Keychain isn't available here ({why}). Use `--token-store encrypted` (a file protected by a passphrase), or `--token-store file` (plain file, not encrypted).") + })?; + } + Ok(()) +} + +/// A passphrase worth having: not a few letters. +pub fn check_passphrase(passphrase: &str) -> Result<()> { + if passphrase.chars().count() < 8 { + bail!("the passphrase needs at least 8 characters"); + } + Ok(()) +} + +/// Reads a passphrase from the terminal without showing it. +#[cfg(unix)] +pub fn prompt_passphrase(text: &str) -> Result { + use std::io::{BufRead, Write}; + print!("{text}"); + std::io::stdout().flush()?; + // SAFETY: plain termios calls on stdin; the old settings are put back. + let saved = unsafe { + let mut t: libc::termios = std::mem::zeroed(); + if libc::tcgetattr(0, &mut t) == 0 { + let mut quiet = t; + quiet.c_lflag &= !libc::ECHO; + libc::tcsetattr(0, libc::TCSANOW, &quiet); + Some(t) + } else { + None + } + }; + let mut line = String::new(); + let read = std::io::stdin().lock().read_line(&mut line); + if let Some(t) = saved { + // SAFETY: restores what tcgetattr gave. + unsafe { libc::tcsetattr(0, libc::TCSANOW, &t) }; + println!(); + } + read?; + Ok(line.trim_end_matches(['\r', '\n']).to_string()) +} + +#[cfg(not(unix))] +pub fn prompt_passphrase(_text: &str) -> Result { + bail!("a passphrase can't be typed here: set {PASSPHRASE_ENV}") +} + +// ---- the encrypted file ---- + +#[cfg(target_os = "macos")] +const ROUNDS: u32 = 600_000; + +#[cfg(target_os = "macos")] +fn random(n: usize) -> Result> { + Ok(hex::decode(crate::tmp::random_hex(n)?)?) +} + +#[cfg(target_os = "macos")] +fn derive(passphrase: &str, salt: &[u8]) -> [u8; 32] { + pbkdf2::pbkdf2_hmac_array::(passphrase.as_bytes(), salt, ROUNDS) +} + +/// The tokens, encrypted: `{"v":1,"salt","nonce","data"}`, each in base64. +#[cfg(target_os = "macos")] +fn seal(value: &Value, passphrase: &str) -> Result { + use aes_gcm::aead::{Aead, KeyInit}; + use base64::Engine; + let (salt, nonce) = (random(16)?, random(12)?); + let cipher = aes_gcm::Aes256Gcm::new_from_slice(&derive(passphrase, &salt)).map_err(|e| anyhow::anyhow!("{e}"))?; + let nonce_value = aes_gcm::Nonce::try_from(nonce.as_slice()).map_err(|_| anyhow::anyhow!("nonce"))?; + let data = cipher.encrypt(&nonce_value, value.to_string().as_bytes()).map_err(|_| anyhow::anyhow!("encrypting the tokens failed"))?; + let b64 = base64::engine::general_purpose::STANDARD; + Ok(serde_json::json!({"v": 1, "salt": b64.encode(salt), "nonce": b64.encode(nonce), "data": b64.encode(data)})) +} + +#[cfg(target_os = "macos")] +fn open(wrapped: &Value, passphrase: &str) -> Result { + use aes_gcm::aead::{Aead, KeyInit}; + use base64::Engine; + let b64 = base64::engine::general_purpose::STANDARD; + let field = |name: &str| -> Result> { Ok(b64.decode(wrapped[name].as_str().unwrap_or_default())?) }; + let (salt, nonce, data) = (field("salt")?, field("nonce")?, field("data")?); + let cipher = aes_gcm::Aes256Gcm::new_from_slice(&derive(passphrase, &salt)).map_err(|e| anyhow::anyhow!("{e}"))?; + let nonce_value = aes_gcm::Nonce::try_from(nonce.as_slice()).map_err(|_| anyhow::anyhow!("the encrypted sign-in is damaged"))?; + let plain = cipher.decrypt(&nonce_value, data.as_slice()).map_err(|_| anyhow::anyhow!("wrong passphrase (or the file is damaged)"))?; + Ok(serde_json::from_slice(&plain)?) +} + +#[cfg(not(target_os = "macos"))] +fn seal(_: &Value, _: &str) -> Result { + bail!("encrypted files are only done on macOS for now") +} + +#[cfg(not(target_os = "macos"))] +fn open(_: &Value, _: &str) -> Result { + bail!("encrypted files are only done on macOS for now") +} + +// ---- the macOS Keychain, called directly (Security.framework) ---- + +#[cfg(target_os = "macos")] +mod mac { + use std::ffi::c_void; + use std::os::raw::c_char; + + pub const NOT_FOUND: i32 = -25300; + pub const DUPLICATE: i32 = -25299; + + #[link(name = "Security", kind = "framework")] + unsafe extern "C" { + pub fn SecKeychainAddGenericPassword(keychain: *const c_void, service_len: u32, service: *const c_char, account_len: u32, account: *const c_char, password_len: u32, password: *const c_void, item: *mut *const c_void) -> i32; + pub fn SecKeychainFindGenericPassword(keychain: *const c_void, service_len: u32, service: *const c_char, account_len: u32, account: *const c_char, password_len: *mut u32, password: *mut *mut c_void, item: *mut *const c_void) -> i32; + pub fn SecKeychainItemModifyAttributesAndData(item: *const c_void, attributes: *const c_void, length: u32, data: *const c_void) -> i32; + pub fn SecKeychainItemDelete(item: *const c_void) -> i32; + pub fn SecKeychainItemFreeContent(attributes: *const c_void, data: *mut c_void) -> i32; + } + + #[link(name = "CoreFoundation", kind = "framework")] + unsafe extern "C" { + pub fn CFRelease(item: *const c_void); + } +} + +#[cfg(target_os = "macos")] +fn status(what: &str, code: i32) -> Result<()> { + if code == 0 { Ok(()) } else { bail!("the Keychain refused to {what} (error {code})") } +} + +/// The item for `account`: its password (if asked) and a reference to release. +#[cfg(target_os = "macos")] +#[allow(deprecated)] +fn keychain_find(account: &str, want_password: bool) -> Result, *const std::ffi::c_void)>> { + use std::ffi::c_void; + let (mut length, mut data, mut item): (u32, *mut c_void, *const c_void) = (0, std::ptr::null_mut(), std::ptr::null()); + // SAFETY: lengths match the buffers; outputs are released below. + let code = unsafe { + mac::SecKeychainFindGenericPassword(std::ptr::null(), SERVICE.len() as u32, SERVICE.as_ptr().cast(), account.len() as u32, account.as_ptr().cast(), &mut length, &mut data, &mut item) + }; + if code == mac::NOT_FOUND { + return Ok(None); + } + status("read the tokens", code)?; + let password = want_password.then(|| { + // SAFETY: the Keychain returned `length` bytes at `data`. + String::from_utf8_lossy(unsafe { std::slice::from_raw_parts(data.cast::(), length as usize) }).to_string() + }); + // SAFETY: frees what the find call allocated. + unsafe { mac::SecKeychainItemFreeContent(std::ptr::null(), data) }; + Ok(Some((password, item))) +} + +#[cfg(target_os = "macos")] +fn keychain_get(account: &str) -> Result> { + match keychain_find(account, true)? { + Some((password, item)) => { + // SAFETY: the item reference is ours to release. + unsafe { mac::CFRelease(item) }; + Ok(password) + } + None => Ok(None), + } +} + +#[cfg(target_os = "macos")] +#[allow(deprecated)] +fn keychain_set(account: &str, secret: &str) -> Result<()> { + // SAFETY: lengths match the buffers. + let code = unsafe { + mac::SecKeychainAddGenericPassword(std::ptr::null(), SERVICE.len() as u32, SERVICE.as_ptr().cast(), account.len() as u32, account.as_ptr().cast(), secret.len() as u32, secret.as_ptr().cast(), std::ptr::null_mut()) + }; + if code != mac::DUPLICATE { + return status("keep the tokens", code); + } + let Some((_, item)) = keychain_find(account, false)? else { bail!("the Keychain item went away") }; + // SAFETY: `item` is a live reference; released after. + let code = unsafe { mac::SecKeychainItemModifyAttributesAndData(item, std::ptr::null(), secret.len() as u32, secret.as_ptr().cast()) }; + unsafe { mac::CFRelease(item) }; + status("update the tokens", code) +} + +#[cfg(target_os = "macos")] +#[allow(deprecated)] +fn keychain_delete(account: &str) -> Result<()> { + let Some((_, item)) = keychain_find(account, false)? else { return Ok(()) }; + // SAFETY: `item` is a live reference; released after. + let code = unsafe { mac::SecKeychainItemDelete(item) }; + unsafe { mac::CFRelease(item) }; + status("delete the tokens", code) +} + +#[cfg(not(target_os = "macos"))] +fn keychain_get(_: &str) -> Result> { + bail!("the Keychain is only used on macOS") +} +#[cfg(not(target_os = "macos"))] +fn keychain_set(_: &str, _: &str) -> Result<()> { + bail!("the Keychain is only used on macOS") +} +#[cfg(not(target_os = "macos"))] +fn keychain_delete(_: &str) -> Result<()> { + bail!("the Keychain is only used on macOS") +} + +#[cfg(test)] +mod tests { + use super::*; + + // The store the person asked for: nothing unless they say; the flag wins; anything else is refused. + #[test] + fn the_token_store_is_asked_for_by_flag_or_environment() { + let words = |text: &str| text.split_whitespace().map(str::to_string).collect::>(); + // SAFETY: the only test that sets it. + unsafe { std::env::remove_var("MCP_APPS_CLI_TOKEN_STORE") }; + assert_eq!(asked(&words("h signin demo")).unwrap(), None); + assert_eq!(asked(&words("h signin demo --token-store keychain")).unwrap(), Some(Kind::Keychain)); + assert_eq!(asked(&words("h signin demo --token-store encrypted")).unwrap(), Some(Kind::Encrypted)); + assert_eq!(asked(&words("h signin demo --token-store file")).unwrap(), Some(Kind::File)); + assert!(asked(&words("h signin demo --token-store usb")).is_err()); + unsafe { std::env::set_var("MCP_APPS_CLI_TOKEN_STORE", "file") }; + assert_eq!(asked(&words("h signin demo")).unwrap(), Some(Kind::File)); + assert_eq!(asked(&words("h signin demo --token-store keychain")).unwrap(), Some(Kind::Keychain)); + unsafe { std::env::remove_var("MCP_APPS_CLI_TOKEN_STORE") }; + } + + #[test] + fn a_short_passphrase_is_refused() { + assert!(check_passphrase("short").is_err()); + assert!(check_passphrase("long enough").is_ok()); + } + + // The encrypted file: round trip, a wrong passphrase, and nothing readable in the file. + #[cfg(target_os = "macos")] + #[test] + fn an_encrypted_file_opens_only_with_its_passphrase() { + let dir = std::env::temp_dir().join(format!("mcp-apps-vault-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + crate::store::private_folder(&dir).unwrap(); + let path = dir.join("one.enc"); + let value = serde_json::json!({"client_id": "c", "token_response": {"access_token": "SECRET-TOKEN-VALUE", "refresh_token": "r"}}); + let place = Place::Encrypted(path.clone(), "correct horse".to_string()); + place.write(&value).unwrap(); + let on_disk = std::fs::read_to_string(&path).unwrap(); + assert!(!on_disk.contains("SECRET-TOKEN-VALUE") && !on_disk.contains("client_id"), "{on_disk}"); + assert_eq!(place.read().unwrap(), Some(value.clone())); + let wrong = Place::Encrypted(path.clone(), "battery staple".to_string()).read().unwrap_err().to_string(); + assert!(wrong.contains("wrong passphrase"), "{wrong}"); + let none = Place::Encrypted(path.clone(), String::new()).read().unwrap_err().to_string(); + assert!(none.contains(PASSPHRASE_ENV), "{none}"); + // Two writes of the same tokens don't give the same file (fresh salt and nonce). + place.write(&value).unwrap(); + assert_ne!(std::fs::read_to_string(&path).unwrap(), on_disk); + place.delete().unwrap(); + assert!(!place.exists()); + let _ = std::fs::remove_dir_all(&dir); + } + + // Uses the login Keychain of the machine it runs on, so it only runs when asked: `cargo test -- --ignored`. + #[cfg(target_os = "macos")] + #[test] + #[ignore = "uses the macOS Keychain"] + fn tokens_round_trip_through_the_macos_keychain() { + let place = Place::of(Kind::Keychain, "demo", &format!("https://example.com/{}", std::process::id()), None).unwrap(); + assert!(!place.exists()); + let value = serde_json::json!({"client_id": "c", "token_response": {"access_token": "a".repeat(3000), "refresh_token": "r"}}); + place.write(&value).expect("the Keychain keeps the tokens"); + assert_eq!(place.read().unwrap(), Some(value)); + // Written again: updated, not refused as a duplicate. + let again = serde_json::json!({"client_id": "d"}); + place.write(&again).unwrap(); + assert_eq!(place.read().unwrap(), Some(again)); + place.delete().unwrap(); + assert!(!place.exists()); + place.delete().expect("deleting what is gone is not an error"); + } +} diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 60e95199..83d03970 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -116,7 +116,10 @@ impl World { } /// The same, the mod saying whether the person listed each server under "Own sign-in (OAuth)". fn discover_listed(&self, names: &[&str], listed: bool) -> Vec<(String, Value)> { - let helper = Helper::start(self); + self.discover_with(names, listed, &[("MCP_APPS_CLI_TOKEN_STORE", "file")]) + } + fn discover_with(&self, names: &[&str], listed: bool, vars: &[(&str, &str)]) -> Vec<(String, Value)> { + let helper = Helper::start_with(self, vars); let answers = names.iter().map(|n| (n.to_string(), helper.post("/discover", &json!({"server": n, "ownSignIn": listed})))).collect(); // A started server's marker is written at once; let any that would be, be. std::thread::sleep(Duration::from_millis(300)); @@ -199,6 +202,10 @@ fn exchange(mut stream: impl Timed, request: &str) -> String { impl Helper { fn start(world: &World) -> Self { + Self::start_with(world, &[("MCP_APPS_CLI_TOKEN_STORE", "file")]) + } + /// With these variables of its own in the environment. + fn start_with(world: &World, vars: &[(&str, &str)]) -> Self { let mut command = Command::new(env!("CARGO_BIN_EXE_mcp-apps-cli-helper")); command .args(["--cwd", world.project.to_str().unwrap(), "--socket", world.socket.to_str().unwrap()]) @@ -211,8 +218,9 @@ impl Helper { .env("TMP", world.root.join("tmp")) .env("TEMP", world.root.join("tmp")) .env("MCP_APPS_CLI_STORAGE_DIR", "off") - // Where sign-ins are kept. - .env("MCP_APPS_CLI_OAUTH_DIR", world.root.join("tokens")); + // Where sign-ins are kept: a file, so no test touches the person's keychain. + .env("MCP_APPS_CLI_OAUTH_DIR", world.root.join("tokens")) + .envs(vars.iter().copied()); // What Windows itself needs to start programs and open sockets (node // among them), and the transport a run asks for. for name in ["SystemRoot", "SYSTEMROOT", "windir", "PATHEXT", "ComSpec", "MCP_APPS_CLI_TRANSPORT"] { @@ -645,6 +653,11 @@ impl Drop for OAuthServer { /// `mcp-apps-cli-helper docs …`, run as from a terminal: no plugin /// folder named, nothing on stdin. fn terminal(w: &World, args: &[&str]) -> Command { + terminal_with(w, args, true) +} + +/// The same; `file_store` says whether the environment asks for the file store (no one's keychain is touched). +fn terminal_with(w: &World, args: &[&str], file_store: bool) -> Command { let mut command = Command::new(env!("CARGO_BIN_EXE_mcp-apps-cli-helper")); command .args(args) @@ -657,6 +670,9 @@ fn terminal(w: &World, args: &[&str]) -> Command { .env("MCP_APPS_CLI_OAUTH_DIR", w.root.join("tokens")) .env("MCP_APPS_CLI_NO_BROWSER", "1") .stdin(Stdio::null()); + if file_store { + command.env("MCP_APPS_CLI_TOKEN_STORE", "file"); + } for name in ["SystemRoot", "SYSTEMROOT", "windir", "PATHEXT", "ComSpec"] { if let Some(value) = std::env::var_os(name) { command.env(name, value); @@ -690,8 +706,11 @@ fn the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_e let why = refused(&w.discover_listed(&["docs"], true), "docs"); assert!(why.contains("signed out or expired: run `mcp-apps-cli-helper signin docs`"), "{serves}: {why}"); - // Without a terminal, `signin` asks nothing and keeps nothing. - let silent = terminal(&w, &["signin", "docs"]).output().unwrap(); + // A store that isn't one: refused before anything else. + let wrong = terminal(&w, &["signin", "docs", "--token-store", "usb"]).output().unwrap(); + assert!(!wrong.status.success() && String::from_utf8_lossy(&wrong.stderr).contains("--token-store is \"keychain\", \"encrypted\" or \"file\""), "{serves}: {}", String::from_utf8_lossy(&wrong.stderr)); + // Without a browser (`--no-browser`) and without a terminal, `signin` asks nothing and keeps nothing. + let silent = terminal(&w, &["signin", "docs", "--no-browser"]).output().unwrap(); assert!(!silent.status.success(), "{serves}: signin went on without a terminal"); assert!(String::from_utf8_lossy(&silent.stderr).contains("signin asks a question: run it in a terminal, or pass --yes"), "{serves}: {}", String::from_utf8_lossy(&silent.stderr)); assert!(!w.root.join("tokens").exists(), "{serves}: the refused signin kept something"); @@ -706,8 +725,8 @@ fn the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_e } shown.push_str(&line); }; - assert!(shown.contains("a second grant") || shown.contains("A second grant"), "{serves}: {shown}"); - assert!(shown.contains("not encrypted") && shown.contains("signout docs"), "{serves}: {shown}"); + assert!(shown.contains("its own login") && shown.contains("plain file") && shown.contains("signout docs") && shown.contains("More: https://"), "{serves}: {shown}"); + assert!(shown.lines().filter(|l| !l.trim().is_empty()).count() <= 5, "{serves}: the warning is longer than five lines: {shown}"); assert!(address.starts_with(&server.url.replace("/mcp", "/authorize?")), "{serves}: {address}"); let browsed = Command::new("node").arg(oauth_script()).args(["browse", &address]).output().unwrap(); assert!(browsed.status.success(), "{serves}: {}", String::from_utf8_lossy(&browsed.stdout)); @@ -771,7 +790,94 @@ fn signout_says_when_the_server_cannot_revoke() { assert!(std::fs::read_dir(w.root.join("tokens")).unwrap().next().is_none()); // Nothing left to sign out of. let again = String::from_utf8_lossy(&terminal(&w, &["signout", "docs"]).output().unwrap().stdout).to_string(); - assert!(again.contains("not signed in to docs") || again.contains("The helper is not signed in to docs"), "{again}"); + assert!(again.contains("Not signed in to docs: nothing to delete."), "{again}"); let _ = child.kill(); let _ = child.wait(); } + +/// `signin docs` in its browser mode: the consent page's address from its output, and its process. +fn browser_signin(w: &World, file_store: bool) -> (std::process::Child, String, std::io::Lines>) { + let mut child = terminal_with(w, &["signin", "docs"], file_store).stdout(Stdio::piped()).spawn().unwrap(); + let mut lines = BufReader::new(child.stdout.take().unwrap()).lines(); + let page = loop { + let line = lines.next().expect("signin shows the consent page's address").unwrap(); + if let Some(address) = line.strip_prefix("Review and approve in your browser: ") { + break address.to_string(); + } + }; + (child, page, lines) +} + +fn browser_plays(page: &str, args: &[&str]) -> (bool, String) { + let played = Command::new("node").arg(oauth_script()).args(["consent", page]).args(args).output().unwrap(); + (played.status.success(), String::from_utf8_lossy(&played.stdout).to_string()) +} + +// The consent page, whole, with the real binary: it says what it means and +// offers the stores; a forged answer (wrong token, another site's origin) is +// not heard; Accept goes through the server's own sign-in in the same tab +// and keeps the tokens where the person chose; Refuse keeps nothing and says so. +#[test] +fn the_consent_page_is_answered_in_the_browser_and_a_refusal_keeps_nothing() { + let w = World::new("consent"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + + // Forged answers first: neither is heard, and the page still works after them. + let (mut child, page, mut lines) = browser_signin(&w, true); + let (ok, said) = browser_plays(&page, &["forge"]); + assert!(ok && said.contains("forged 404 404") && said.contains("csp"), "{said}"); + // Refuse: nothing kept. + let (ok, said) = browser_plays(&page, &["refuse"]); + assert!(ok && said.contains("answered 200 refused"), "{said}"); + assert!(child.wait().unwrap().success()); + let out: Vec = lines.by_ref().map_while(Result::ok).collect(); + assert!(out.iter().any(|l| l == "Not signed in to docs."), "{out:?}"); + assert!(!w.root.join("tokens").exists(), "a refusal kept something"); + + // Accept, the plain file chosen in the page's advanced options. + let (mut child, page, mut lines) = browser_signin(&w, true); + let (ok, said) = browser_plays(&page, &["accept", "file"]); + assert!(ok && said.contains("answered 200 signed-in"), "{said}"); + assert!(child.wait().unwrap().success()); + let out: Vec = lines.by_ref().map_while(Result::ok).collect(); + assert!(out.iter().any(|l| l.contains("Signed in to docs. The login is kept in the plain file.")), "{out:?}"); + assert_eq!(std::fs::read_dir(w.root.join("tokens")).unwrap().count(), 1); + // The page is gone with the answer. + assert!(Command::new("node").arg(oauth_script()).args(["consent", &page, "refuse"]).output().map_or(true, |o| !o.status.success())); +} + +// The encrypted file, from the page to a session's helper: the passphrase is +// set in the page, nothing readable is on disk, a helper without the +// passphrase says what to set, one with it discovers the app, and `signout` +// revokes and deletes. macOS only, as the encrypted file is for now. +#[cfg(target_os = "macos")] +#[test] +fn an_encrypted_sign_in_is_made_in_the_page_and_read_with_the_passphrase() { + let w = World::new("encrypted"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let (mut child, page, _lines) = browser_signin(&w, false); + let (ok, said) = browser_plays(&page, &["accept", "encrypted", "correct horse battery"]); + assert!(ok && said.contains("keychain-offered") && said.contains("answered 200 signed-in"), "{said}"); + assert!(child.wait().unwrap().success()); + let files: Vec<_> = std::fs::read_dir(w.root.join("tokens")).unwrap().flatten().collect(); + assert_eq!(files.len(), 1); + let on_disk = std::fs::read_to_string(files[0].path()).unwrap(); + assert!(files[0].file_name().to_string_lossy().ends_with(".enc") && !on_disk.contains("access_token") && !on_disk.contains("client_id"), "{on_disk}"); + + // Without the passphrase: said, not guessed. + let without = w.discover_with(&["docs"], true, &[]); + assert!(refused(&without, "docs").contains("MCP_APPS_CLI_PASSPHRASE"), "{without:?}"); + let wrong = w.discover_with(&["docs"], true, &[("MCP_APPS_CLI_PASSPHRASE", "not the one")]); + assert!(refused(&wrong, "docs").contains("wrong passphrase"), "{wrong:?}"); + let right = w.discover_with(&["docs"], true, &[("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")]); + let (_, docs) = right.iter().find(|(n, _)| n == "docs").unwrap(); + assert_eq!(docs["ok"], true, "{docs}"); + assert_eq!(docs["tools"]["show"]["resourceUri"], "ui://demo/view.html", "{docs}"); + + let out = terminal_with(&w, &["signout", "docs"], false).env("MCP_APPS_CLI_PASSPHRASE", "correct horse battery").output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(said.contains("Asked docs to revoke the tokens.") && said.contains("Deleted "), "{said}"); + assert_eq!(std::fs::read_dir(w.root.join("tokens")).unwrap().count(), 0); +} diff --git a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs index 95e4123a..5cf24226 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs +++ b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs @@ -36,6 +36,36 @@ if (process.argv[2] === "browse") { process.exit(answer.ok ? 0 : 1); } +if (process.argv[2] === "consent") { + // The person's browser at the consent page: reads it, then answers it, and + // follows the redirects through the server's sign-in back to the helper. + // node oauth-server.mjs consent accept|refuse|forge [keychain|encrypted|file] [passphrase] + const [, , , pageUrl, action, store = "file", passphrase = ""] = process.argv; + const page = await fetch(pageUrl); + const html = await page.text(); + for (const needle of ["its own login", "can\u2019t see or cancel", "mcp-apps-cli-helper signout", "Accept", "Refuse", "Where to keep the login"]) { + if (!html.includes(needle)) { + console.log(`the page lacks "${needle}"`); + process.exit(2); + } + } + console.log(`page ${page.status} ${page.headers.get("content-security-policy")?.includes("default-src 'none'") ? "csp" : "no-csp"} ${/macOS Keychain/.test(html) ? "keychain-offered" : "no-keychain"}`); + const token = /name="t" value="([^"]+)"/.exec(html)[1]; + const t = token; + const post = (fields, headers = {}) => + fetch(new URL("/decision", pageUrl), { method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", ...headers }, body: new URLSearchParams(fields) }); + if (action === "forge") { + const wrong = await post({ t: "not-the-token", decision: "accept", store: "file" }); + const foreign = await post({ t, decision: "accept", store: "file" }, { origin: "https://evil.example" }); + console.log(`forged ${wrong.status} ${foreign.status}`); + process.exit(wrong.status === 404 && foreign.status === 404 ? 0 : 1); + } + const answered = await post({ t: token, decision: action, store, passphrase, again: passphrase }); + const text = await answered.text(); + console.log(`answered ${answered.status} ${text.includes("Not signed in") ? "refused" : text.includes("Signed in") ? "signed-in" : text.slice(0, 200)}`); + process.exit(0); +} + const [log, lasts = "3600", serves = "dual"] = process.argv.slice(2); const MODERN = "2026-07-28"; const LEGACY = ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"]; diff --git a/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json b/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json index 51d43214..db4cc8c6 100644 --- a/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json +++ b/polyfills/apps/claude-code/mod/.claude-plugin/plugin.json @@ -60,7 +60,7 @@ "ownSignIn": { "type": "string", "title": "Own sign-in (OAuth)", - "description": "Off unless you list servers here: MCP server names, separated by commas, as Claude Code names them. Claude Code doesn't share its MCP sign-in with plugins, so for a server behind OAuth the helper can't read the app's UI. For a server listed here, the helper uses a sign-in of its own, which you start from a terminal with `mcp-apps-cli-helper signin `. That is a second grant, separate from Claude Code's: its own client registration and consent screen, its own refresh token kept in a file on this machine, and it is not seen or revoked by `/mcp` or by your organisation's MCP sign-in settings. Claude Code's own sign-in stays the recommended way; this goes away when Claude Code lets plugins use its connection.", + "description": "Off unless you list servers here: MCP server names, separated by commas. For each one the helper signs in on its own (run `mcp-apps-cli-helper signin `) to read the app's UI. That is a separate grant: `/mcp` and your organisation's MCP settings don't see it. The login is kept in the macOS Keychain or a passphrase-encrypted file. macOS only for now; Linux and Windows will follow if the idea is kept. Claude Code's own sign-in stays the recommended way.", "default": "" } } From 062665876e8e277fa5f200d6151e228265a608fd Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:56:14 +0100 Subject: [PATCH 05/21] mcp-apps-cli: document the consent page and the token stores (macOS) --- polyfills/apps/claude-code/README.md | 64 ++++++++++++------- polyfills/apps/claude-code/SECURITY.md | 35 ++++++---- polyfills/apps/claude-code/docs/COMPLIANCE.md | 2 +- 3 files changed, 63 insertions(+), 38 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index 8d9af109..fe2a2560 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -169,39 +169,55 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. doesn't give plugins the UI metadata of a tool or of a resource. So the helper opens its own connection to each server, from your MCP config, and that connection can't sign in. -- **Own sign-in (opt-in, one server at a time).** If you need a server's apps - before Claude Code shares its connection, the helper can sign in to that - server itself. It is off unless you list the server under **Own sign-in - (OAuth)** in `/config` and run `mcp-apps-cli-helper signin ` once - (the helper binary the plugin carries, in its `helper/bin//` - folder, from a terminal in your project's folder). Know what that means - before you do: - - **It is a second grant, with its own life.** The server registers +- **Own sign-in (opt-in, one server at a time, macOS only for now).** If you + need a server's apps before Claude Code shares its connection, the helper + can sign in to that server itself. It is off unless you list the server + under **Own sign-in (OAuth)** in `/config` and run + `mcp-apps-cli-helper signin ` once (the helper binary the plugin + carries, in its `helper/bin//` folder, from a terminal in your + project's folder). Linux and Windows will follow if the idea is kept. Know + what that means before you do: + - **It is a separate grant, with its own life.** The server registers `mcp-apps-cli` as a client of its own and asks for your consent again. Signing out of the server in `/mcp` doesn't end it, and signing out here doesn't touch Claude Code's. - - **The tokens are on your machine, in a file.** One file per server and - address under `~/.cache/mcp-apps-cli/oauth/` (`MCP_APPS_CLI_OAUTH_DIR` - puts them elsewhere), readable only by you, not encrypted and not in the - system keychain. A token is sent only to the address it was issued for, - over `https` or to this machine itself, and no redirect is followed. + - **The tokens are kept on your Mac, where you choose.** The macOS Keychain + (the default), or a file encrypted with a passphrase (AES-256-GCM, key + from PBKDF2-HMAC-SHA256) under `~/.cache/mcp-apps-cli/oauth/` + (`MCP_APPS_CLI_OAUTH_DIR` puts it elsewhere). A plain file, not + encrypted, exists only as an explicit option (`--token-store file`, or + "Advanced" in the page) for a machine with no Keychain. A token is sent + only to the address it was issued for, over `https` or to this machine + itself, and no redirect is followed. - **Your organisation's controls for MCP sign-in don't see it.** With a managed MCP policy, or an allow or deny list for MCP servers, the helper uses no server at all, so this is off there too. The server's administrators see a client named `mcp-apps-cli`. - - **To end it:** `mcp-apps-cli-helper signout ` deletes the file and - asks the server to revoke the tokens where it offers that; removing the + - **To end it:** `mcp-apps-cli-helper signout ` deletes the tokens + and asks the server to revoke them where it offers that; removing the server from the setting stops their use at once. - `signin` says all this before it opens the browser and asks to continue - (the answer is no by default; without a terminal it refuses). To skip the - question, pass `--yes`, or set `MCP_APPS_CLI_SIGNIN_YES=1` in your - environment to skip it every time (a terminal can't read `/config`); the - text is still printed. Only do that for servers you have already decided to - sign in to: the question is the one place the second grant is spelled out - before a token exists. It works with a server of MCP 2026-07-28 and with one of the 2025 - revisions, only for `streamable-http` servers (not the older `sse` ones), - only servers that register clients themselves (dynamic client + `signin` prints one line ("Press Enter to review and approve in your + browser"), then serves a small consent page on a loopback address of its own + (a random port, a token against forged requests, closed after your answer + or after five minutes). The page says what the above means in three lines, + asks where to keep the login, and has Accept and Refuse; Accept goes on to + the server's own sign-in in the same tab, Refuse keeps nothing. Without a + browser, `--no-browser` asks the same in the terminal (`Continue? [y/N]`, + no by default; without a terminal it refuses). To skip the question and the + page, pass `--yes`, or set `MCP_APPS_CLI_SIGNIN_YES=1` in your environment + to skip them every time (a terminal can't read `/config`); only do that for + servers you have already decided to sign in to. `--token-store + keychain|encrypted|file` (or `MCP_APPS_CLI_TOKEN_STORE`) chooses the store + without the page. There is no silent fall back: if the Keychain isn't + available, `signin` says so and what to use instead. + + A file encrypted with a passphrase can't be opened by a session's helper + unless it has the passphrase: set `MCP_APPS_CLI_PASSPHRASE` in the + environment you start Claude Code from (the helper can't ask). The Keychain + needs nothing. It works with a server of MCP 2026-07-28 and with one of the + 2025 revisions, only for `streamable-http` servers (not the older `sse` + ones), only servers that register clients themselves (dynamic client registration), and not a server whose config already sets an `Authorization` header. The helper still uses a server only while Claude Code itself is connected to it in the session, and never reads Claude diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 2288c967..56bd9c7b 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -96,21 +96,30 @@ server's headers never reach another host that way. The plugin never reads Claude Code's stored credentials (the keychain, OAuth tokens). It reads the same MCP configuration files Claude Code reads. -Off by default, per server (the **Own sign-in (OAuth)** setting), the person -can have the helper sign in to a server itself (`signin `, after it -says what that means and asks to continue): authorization code with PKCE, to a -loopback address of the helper's own, for a server it may already use and only -over `https` or to the person's own machine. It is a second grant, which -Claude Code's `/mcp` and an organisation's MCP sign-in settings don't see. The -tokens, and the client the server registered, are kept in a file only the -person can read, in a folder only they can open -(`~/.cache/mcp-apps-cli/oauth/`), one file for each server and address, so a -token is sent only to the address it was issued for. They are not encrypted -there: the file's mode is what protects them, as for the view stores. A +Off by default, per server (the **Own sign-in (OAuth)** setting), and only on +macOS for now, the person can have the helper sign in to a server itself +(`signin `): authorization code with PKCE, to a loopback address of the +helper's own, for a server it may already use and only over `https` or to the +person's own machine. It is a separate grant, which Claude Code's `/mcp` and an +organisation's MCP sign-in settings don't see. Before anything is kept, the +person answers a consent page the helper serves on a loopback address of its +own (a random port, a token against forged requests, a check of the `Host` and +`Origin` headers, closed after the answer or after five minutes), or, with +`--no-browser`, a `y/N` question in the terminal. The tokens, and the client +the server registered, are kept where the person chose: the macOS Keychain +(called directly through Security.framework; the default), or a file encrypted +with a passphrase (AES-256-GCM, key from PBKDF2-HMAC-SHA256 with 600,000 +rounds, a fresh salt and nonce for each write) in a folder only they can open +(`~/.cache/mcp-apps-cli/oauth/`). A plain file, not encrypted, is an explicit +option only (`--token-store file`), where the file's mode is what protects it, +as for the view stores. One entry for each server and address, so a token is +sent only to the address it was issued for. There is no silent fall back from +one store to another. A session's helper opens an encrypted file with the +passphrase in `MCP_APPS_CLI_PASSPHRASE`, which it reads and doesn't keep. A connection that carries a token follows no redirect, and says once a session, in the debug log, that it is using its own sign-in. `signout ` asks the -server to revoke the tokens where it offers that (RFC 7009) and deletes the -file; taking the server off the setting stops their use at once. These are the +server to revoke the tokens where it offers that (RFC 7009) and deletes them; +taking the server off the setting stops their use at once. These are the helper's own tokens, issued to it by the server: Claude Code's are still never read. diff --git a/polyfills/apps/claude-code/docs/COMPLIANCE.md b/polyfills/apps/claude-code/docs/COMPLIANCE.md index 75a64627..c88d056b 100644 --- a/polyfills/apps/claude-code/docs/COMPLIANCE.md +++ b/polyfills/apps/claude-code/docs/COMPLIANCE.md @@ -118,7 +118,7 @@ R12 is the one MUST that is neither met nor a limit of the host; see the row. | CSP from `_meta.ui.csp`, `prefersBorder`, `domain` | yes (see R11-R14, R26, R72-R75) | | `permissions` | `clipboardWrite` yes; camera, microphone, geolocation not granted (no devices in headless Chrome, no indicator) | | Display modes `inline`, `fullscreen`, `pip` | yes, as a terminal allows: fullscreen fills the terminal, pip is a pane | -| Sign-in (OAuth) for servers that need it | no by default: the helper's own connection can't use Claude Code's sign-in (a host limit, host change 1). Opt-in per server, under "Own sign-in (OAuth)" in `/config`: the helper's own sign-in (`signin ` after a confirmation, `signout `; authorization code with PKCE, dynamic client registration, refresh), a second grant of its own that the helper never mixes with Claude Code's, which it never reads; both forms of the helper's connection (2026-07-28 and the 2025 handshake); streamable HTTP only; `https` or loopback. Tests: `a_server_that_needs_sign_in_is_read_after_signin_and_refreshed_in_each_revision` and `the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_each_revision` (helper) against a stand-in server; not checked against a public server or in a Claude Code session. Host change that would remove it: `$.mcp.request` over Claude Code's connection ([host-changes](../../../../docs/host-changes.md), change 1) | +| Sign-in (OAuth) for servers that need it | no by default: the helper's own connection can't use Claude Code's sign-in (a host limit, host change 1). Opt-in per server, under "Own sign-in (OAuth)" in `/config`: the helper's own sign-in, macOS only for now (`signin ` after a consent page or a terminal question, `signout `; tokens in the macOS Keychain or a passphrase-encrypted file, a plain file only when asked; authorization code with PKCE, dynamic client registration, refresh), a second grant of its own that the helper never mixes with Claude Code's, which it never reads; both forms of the helper's connection (2026-07-28 and the 2025 handshake); streamable HTTP only; `https` or loopback. Tests: `a_server_that_needs_sign_in_is_read_after_signin_and_refreshed_in_each_revision` and `the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_each_revision` (helper) against a stand-in server; not checked against a public server or in a Claude Code session. Host change that would remove it: `$.mcp.request` over Claude Code's connection ([host-changes](../../../../docs/host-changes.md), change 1) | | `_meta` and `structuredContent` of a tool's result | the model's call: neither, only `content` as the model reads it (a host limit), unless the person lists the server under "Structured results from text", which takes `structuredContent` back from that text where it fits the tool's `outputSchema` (up to 0.1.4 that was done for every server, unchecked). A view's own call of a tool the model sees: `structuredContent` yes, `_meta` no (`$.mcp.call`). An app-only tool: both (the helper's connection). Host change 4 would give the first two whole | | The MCP revision of the helper's connection | 2026-07-28 where the server serves it (`server/discover`, no `initialize`), else the 2025 handshake at 2025-11-25 (from 0.1.5; see below) | | `tools/list_changed`, resource updates | no: Claude Code delivers no server notifications to plugins (host change 3) | From 80f20b059fb674b726f2add84b9ec058cbe682c6 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 14:56:14 +0100 Subject: [PATCH 06/21] mcp-apps-cli: Cargo.lock and third-party licenses (aes-gcm, pbkdf2) --- .../apps/claude-code/THIRD_PARTY_LICENSES.txt | 6394 +++++++++++++---- .../apps/claude-code/helper-rs/Cargo.lock | 139 + 2 files changed, 5234 insertions(+), 1299 deletions(-) diff --git a/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt b/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt index 1deec58e..226bbaa9 100644 --- a/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt +++ b/polyfills/apps/claude-code/THIRD_PARTY_LICENSES.txt @@ -255,9 +255,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -anyhow 1.0.104 (Rust crate) +aead 0.6.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/anyhow +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -438,8 +438,36 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + --- LICENSE-MIT --- +Copyright (c) 2019-2026 The RustCrypto Project Developers +Copyright (c) 2019 MobileCoin, LLC + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -465,9 +493,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -async-trait 0.1.92 (Rust crate) +aes 0.9.4 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/dtolnay/async-trait +Source: https://github.com/RustCrypto/block-ciphers --- LICENSE-APACHE --- @@ -648,8 +676,36 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION END OF TERMS AND CONDITIONS +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + --- LICENSE-MIT --- +Copyright (c) 2018-2024 The RustCrypto Project Developers +Copyright (c) 2018 Artyom Pavlov + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -675,9 +731,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -atomic-waker 1.1.2 (Rust crate) +aes-gcm 0.11.1 (Rust crate) License: Apache-2.0 OR MIT -Source: https://github.com/smol-rs/atomic-waker +Source: https://github.com/RustCrypto/AEADs --- LICENSE-APACHE --- @@ -875,7 +931,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -885,6 +941,8 @@ limitations under the License. --- LICENSE-MIT --- +Copyright (c) 2019-2026 The RustCrypto Project Developers + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -909,29 +967,684 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---- LICENSE-THIRD-PARTY --- +============================================================================== +anyhow 1.0.104 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/anyhow -=============================================================================== +--- LICENSE-APACHE --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - http://www.apache.org/licenses/LICENSE-2.0 +1. Definitions. -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -=============================================================================== + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +async-trait 0.1.92 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/dtolnay/async-trait + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +atomic-waker 1.1.2 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/smol-rs/atomic-waker + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +--- LICENSE-THIRD-PARTY --- + +=============================================================================== + +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +=============================================================================== + +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -962,449 +1675,1939 @@ aws-lc-rs 1.19.0 (Rust crate) License: ISC AND (Apache-2.0 OR ISC) Source: https://github.com/aws/aws-lc-rs ---- LICENSE --- +--- LICENSE --- + +SPDX-License-Identifier: ISC AND (Apache-2.0 OR ISC) + + +Apache 2.0 license +------------------------------------- + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + +ISC license +------------------------------------- + + +Copyright Amazon.com, Inc. or its affiliates. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +============================================================================== +aws-lc-sys 0.47.0 (Rust crate) +License: ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0) +Source: https://github.com/aws/aws-lc-rs + +--- LICENSE --- + +AWS Libcrypto (AWS-LC) + +AWS-LC is a fork of BoringSSL, which is itself a fork of OpenSSL. +Content from these and other sources retains their original licensing, +as described below. New files from AWS-LC are made available under the Apache-2.0 license OR the ISC +license. These licenses are reproduced at the bottom of this file. + +``` +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +SPDX-License-Identifier: Apache-2.0 OR ISC +``` + + +================================================================================ +BoringSSL +================================================================================ + +BoringSSL is a Google-maintained fork of OpenSSL. Historically, code +authored by Google for BoringSSL was licensed under the ISC License. +BoringSSL has since relicensed upstream to Apache License 2.0. Existing +AWS-LC code originating from BoringSSL retains its ISC license, while +newer code taken from BoringSSL is licensed under Apache License 2.0. + +``` +Copyright (c) 2014-2024 Google Inc. +SPDX-License-Identifier: ISC +``` + +Additional individual contributions to BoringSSL-derived code are +covered under the ISC license: + + - Brian Smith (Copyright 2016) + - Robert Nagy (Copyright 2022) + - Arm Ltd (Copyright 2020) + +``` +Copyright (c) 2025-2026 Google Inc. +SPDX-License-Identifier: Apache-2.0 +``` + +================================================================================ +OpenSSL +================================================================================ + +Code derived from the OpenSSL project is licensed under the +Apache License, Version 2.0. + +``` +Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. +SPDX-License-Identifier: Apache-2.0 +``` + +Some OpenSSL-derived files also carry the original SSLeay copyright: + +``` +Copyright (c) 1995-1998 Eric Young (eay@cryptsoft.com). All rights reserved. +SPDX-License-Identifier: Apache-2.0 +``` + +Portions of OpenSSL-derived code include contributions from: + + - Sun Microsystems, Inc. (Copyright 2002) + - Nokia (Copyright 2005) + - Intel Corporation (Copyright 2012-2021) + +These contributions are covered under the Apache-2.0 license. + +================================================================================ +mlkem-native +================================================================================ + +Code from the mlkem-native project is licensed under Apache License 2.0 or MIT or ISC. + +``` +Copyright (c) The mlkem-native project authors. +SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT +``` + +================================================================================ +mldsa-native +================================================================================ + +Code from the mldsa-native project is licensed under Apache License 2.0 or MIT or ISC + +``` +Copyright (c) The mldsa-native project authors. +SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT +``` + +================================================================================ +Third-Party Libraries (compiled into libcrypto/libssl) +================================================================================ + +Fiat Cryptography +----------------- +Synthesizing Correct-by-Construction Code for Cryptographic Primitives. +See third_party/fiat/LICENSE. + +``` +Copyright (c) 2015-2020 the fiat-crypto authors. +SPDX-License-Identifier: MIT +``` + +s2n-bignum +---------- +Integer arithmetic routines for cryptography. +See third_party/s2n-bignum/s2n-bignum-imported/LICENSE. + +``` +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0 +``` + +Note: ML-KEM/SHA3 code within s2n-bignum is licensed as +Apache-2.0 OR ISC OR MIT (with attribution), sourced from the +mlkem-native project. + +Jitter Entropy RNG +------------------- +CPU Jitter Random Number Generator Library. +See third_party/jitterentropy/jitterentropy-library/LICENSE. + +The Jitter Entropy library is dual-licensed under a BSD-style license +and the GNU General Public License Version 2. Amazon expressly elects +to distribute the package under the 3-Clause BSD License and NOT under +GNU General Public License Version 2. + +``` +Copyright (C) 2017 - 2025, Stephan Mueller . +SPDX-License-Identifier: BSD-3-Clause +``` + +Keccak / AES Reference Implementations +--------------------------------------- +Public domain (CC0) contributions. +https://creativecommons.org/public-domain/cc0 + +Code from sources and by authors listed in comments on top of the respective files. + + +================================================================================ +Third-Party Libraries (NOT compiled into libcrypto/libssl) +================================================================================ + +The following are used for testing and build tooling only. Distributing +code linked against AWS-LC (libcrypto/libssl) does NOT trigger these +license obligations. + +Google Test +----------- +See third_party/googletest/LICENSE. + +``` +Copyright 2008 Google Inc. +SPDX-License-Identifier: BSD-3-Clause +``` + +Go Standard Library +------------------- +Code in ssl/test/runner/ is derived from the Go standard library. + +``` +Copyright (c) The Go Authors. All rights reserved. +SPDX-License-Identifier: BSD-3-Clause +``` + +Wycheproof Test Vectors +------------------------ +Project Wycheproof is a community managed repository of test vectors that can be used by cryptography library +developers to test against known attacks, specification inconsistencies, and other various implementation bugs. + +See third_party/wycheproof_testvectors/LICENSE. + +``` +SPDX-License-Identifier: Apache-2.0 +``` + + +================================================================================ +Full License Texts +================================================================================ + +Apache License 2.0 +------------------ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + + "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +ISC License +----------- +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +MIT License +----------- +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +BSD 3-Clause License +-------------------- +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +MIT No Attribution (MIT-0) +-------------------------- +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +============================================================================== +base64 0.22.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/marshallpierce/rust-base64 + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +The MIT License (MIT) + +Copyright (c) 2015 Alice Maz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +base64 0.23.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/marshallpierce/rust-base64 + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +The MIT License (MIT) + +Copyright (c) 2025 Alice Maz, Marshall Pierce + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +bitflags 2.13.2 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/bitflags/bitflags + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +block-buffer 0.10.4 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/utils + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. -SPDX-License-Identifier: ISC AND (Apache-2.0 OR ISC) + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. -Apache 2.0 license -------------------------------------- + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." - 1. Definitions. + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +END OF TERMS AND CONDITIONS - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +APPENDIX: How to apply the Apache License to your work. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +--- LICENSE-MIT --- - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Copyright (c) 2018-2019 The RustCrypto Project Developers - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +============================================================================== +block-buffer 0.12.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/utils - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +--- LICENSE-APACHE --- - END OF TERMS AND CONDITIONS +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -ISC license -------------------------------------- +1. Definitions. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -Copyright Amazon.com, Inc. or its affiliates. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. -============================================================================== -aws-lc-sys 0.47.0 (Rust crate) -License: ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0) -Source: https://github.com/aws/aws-lc-rs + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. ---- LICENSE --- + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. -AWS Libcrypto (AWS-LC) + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). -AWS-LC is a fork of BoringSSL, which is itself a fork of OpenSSL. -Content from these and other sources retains their original licensing, -as described below. New files from AWS-LC are made available under the Apache-2.0 license OR the ISC -license. These licenses are reproduced at the bottom of this file. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. -``` -Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -SPDX-License-Identifier: Apache-2.0 OR ISC -``` + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -================================================================================ -BoringSSL -================================================================================ +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. -BoringSSL is a Google-maintained fork of OpenSSL. Historically, code -authored by Google for BoringSSL was licensed under the ISC License. -BoringSSL has since relicensed upstream to Apache License 2.0. Existing -AWS-LC code originating from BoringSSL retains its ISC license, while -newer code taken from BoringSSL is licensed under Apache License 2.0. +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. -``` -Copyright (c) 2014-2024 Google Inc. -SPDX-License-Identifier: ISC -``` +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: -Additional individual contributions to BoringSSL-derived code are -covered under the ISC license: + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - - Brian Smith (Copyright 2016) - - Robert Nagy (Copyright 2022) - - Arm Ltd (Copyright 2020) + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and -``` -Copyright (c) 2025-2026 Google Inc. -SPDX-License-Identifier: Apache-2.0 -``` + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and -================================================================================ -OpenSSL -================================================================================ + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -Code derived from the OpenSSL project is licensed under the -Apache License, Version 2.0. +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. -``` -Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. -SPDX-License-Identifier: Apache-2.0 -``` +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -Some OpenSSL-derived files also carry the original SSLeay copyright: +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -``` -Copyright (c) 1995-1998 Eric Young (eay@cryptsoft.com). All rights reserved. -SPDX-License-Identifier: Apache-2.0 -``` +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -Portions of OpenSSL-derived code include contributions from: +END OF TERMS AND CONDITIONS - - Sun Microsystems, Inc. (Copyright 2002) - - Nokia (Copyright 2005) - - Intel Corporation (Copyright 2012-2021) +APPENDIX: How to apply the Apache License to your work. -These contributions are covered under the Apache-2.0 license. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. -================================================================================ -mlkem-native -================================================================================ +Copyright [yyyy] [name of copyright owner] -Code from the mlkem-native project is licensed under Apache License 2.0 or MIT or ISC. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at -``` -Copyright (c) The mlkem-native project authors. -SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT -``` + http://www.apache.org/licenses/LICENSE-2.0 -================================================================================ -mldsa-native -================================================================================ +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. -Code from the mldsa-native project is licensed under Apache License 2.0 or MIT or ISC +--- LICENSE-MIT --- -``` -Copyright (c) The mldsa-native project authors. -SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT -``` +Copyright (c) 2018-2025 The RustCrypto Project Developers -================================================================================ -Third-Party Libraries (compiled into libcrypto/libssl) -================================================================================ +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -Fiat Cryptography ------------------ -Synthesizing Correct-by-Construction Code for Cryptographic Primitives. -See third_party/fiat/LICENSE. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -``` -Copyright (c) 2015-2020 the fiat-crypto authors. -SPDX-License-Identifier: MIT -``` +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. -s2n-bignum ----------- -Integer arithmetic routines for cryptography. -See third_party/s2n-bignum/s2n-bignum-imported/LICENSE. +============================================================================== +bytes 1.12.2 (Rust crate) +License: MIT +Source: https://github.com/tokio-rs/bytes -``` -Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0 -``` +--- LICENSE --- -Note: ML-KEM/SHA3 code within s2n-bignum is licensed as -Apache-2.0 OR ISC OR MIT (with attribution), sourced from the -mlkem-native project. +Copyright (c) 2018 Carl Lerche -Jitter Entropy RNG -------------------- -CPU Jitter Random Number Generator Library. -See third_party/jitterentropy/jitterentropy-library/LICENSE. +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The Jitter Entropy library is dual-licensed under a BSD-style license -and the GNU General Public License Version 2. Amazon expressly elects -to distribute the package under the 3-Clause BSD License and NOT under -GNU General Public License Version 2. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -``` -Copyright (C) 2017 - 2025, Stephan Mueller . -SPDX-License-Identifier: BSD-3-Clause -``` +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. -Keccak / AES Reference Implementations ---------------------------------------- -Public domain (CC0) contributions. -https://creativecommons.org/public-domain/cc0 +============================================================================== +cfg-if 1.0.5 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/cfg-if -Code from sources and by authors listed in comments on top of the respective files. +--- LICENSE-APACHE --- +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -================================================================================ -Third-Party Libraries (NOT compiled into libcrypto/libssl) -================================================================================ +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -The following are used for testing and build tooling only. Distributing -code linked against AWS-LC (libcrypto/libssl) does NOT trigger these -license obligations. +1. Definitions. -Google Test ------------ -See third_party/googletest/LICENSE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -``` -Copyright 2008 Google Inc. -SPDX-License-Identifier: BSD-3-Clause -``` + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. -Go Standard Library -------------------- -Code in ssl/test/runner/ is derived from the Go standard library. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. -``` -Copyright (c) The Go Authors. All rights reserved. -SPDX-License-Identifier: BSD-3-Clause -``` + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. -Wycheproof Test Vectors ------------------------- -Project Wycheproof is a community managed repository of test vectors that can be used by cryptography library -developers to test against known attacks, specification inconsistencies, and other various implementation bugs. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. -See third_party/wycheproof_testvectors/LICENSE. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. -``` -SPDX-License-Identifier: Apache-2.0 -``` + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. -================================================================================ -Full License Texts -================================================================================ + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." -Apache License 2.0 ------------------- -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. - 1. Definitions. +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. - "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: - "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and - "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and - "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. - "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. - "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. - "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. - "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. - "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and - (b) You must cause any modified files to carry prominent notices stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. -To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. Copyright [yyyy] [name of copyright owner] @@ -1412,7 +3615,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -1420,85 +3623,79 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -ISC License ------------ -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all copies. +--- LICENSE-MIT --- -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. +Copyright (c) 2014 Alex Crichton -MIT License ------------ -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. -BSD 3-Clause License --------------------- -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: +============================================================================== +chrono 0.4.45 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/chronotope/chrono -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. +--- LICENSE.txt --- -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. +Rust-chrono is dual-licensed under The MIT License [1] and +Apache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and +contributors. -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. +Nota Bene: This is same as the Rust Project's own license. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -MIT No Attribution (MIT-0) --------------------------- -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. +[1]: , which is reproduced below: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +~~~~ +The MIT License (MIT) + +Copyright (c) 2014, Kang Seonghoon. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +~~~~ -============================================================================== -base64 0.22.1 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/marshallpierce/rust-base64 ---- LICENSE-APACHE --- +[2]: , which is reproduced below: -Apache License +~~~~ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -1699,35 +3896,12 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - ---- LICENSE-MIT --- - -The MIT License (MIT) - -Copyright (c) 2015 Alice Maz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +~~~~ ============================================================================== -base64 0.23.1 (Rust crate) +cipher 0.5.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/marshallpierce/rust-base64 +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -1853,114 +4027,355 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION that such additional attribution notices cannot be construed as modifying the License. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2016-2025 RustCrypto Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +cmov 0.5.4 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/utils + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -END OF TERMS AND CONDITIONS + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -APPENDIX: How to apply the Apache License to your work. + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. + END OF TERMS AND CONDITIONS -Copyright [yyyy] [name of copyright owner] + APPENDIX: How to apply the Apache License to your work. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. - http://www.apache.org/licenses/LICENSE-2.0 + Copyright [yyyy] [name of copyright owner] -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at ---- LICENSE-MIT --- + http://www.apache.org/licenses/LICENSE-2.0 -The MIT License (MIT) + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. -Copyright (c) 2025 Alice Maz, Marshall Pierce +--- LICENSE-MIT --- -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Copyright (c) 2022-2026 The RustCrypto Project Developers -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -bitflags 2.13.2 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/bitflags/bitflags +const-oid 0.10.3 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/formats --- LICENSE-APACHE --- @@ -2158,7 +4573,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -2168,7 +4583,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 The Rust Project Developers +Copyright (c) 2020-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2195,9 +4610,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -block-buffer 0.10.4 (Rust crate) +core-foundation 0.10.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/utils +Source: https://github.com/servo/core-foundation-rs --- LICENSE-APACHE --- @@ -2395,7 +4810,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -2405,7 +4820,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2018-2019 The RustCrypto Project Developers +Copyright (c) 2012-2013 Mozilla Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2432,9 +4847,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -block-buffer 0.12.1 (Rust crate) +core-foundation-sys 0.8.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/utils +Source: https://github.com/servo/core-foundation-rs --- LICENSE-APACHE --- @@ -2632,50 +5047,17 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2018-2025 The RustCrypto Project Developers - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -bytes 1.12.2 (Rust crate) -License: MIT -Source: https://github.com/tokio-rs/bytes + http://www.apache.org/licenses/LICENSE-2.0 ---- LICENSE --- +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. -Copyright (c) 2018 Carl Lerche +--- LICENSE-MIT --- + +Copyright (c) 2012-2013 Mozilla Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2702,9 +5084,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -cfg-if 1.0.5 (Rust crate) +cpubits 0.1.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/cfg-if +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -2902,7 +5284,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -2912,7 +5294,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton +Copyright (c) 2023-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -2939,50 +5321,13 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -chrono 0.4.45 (Rust crate) +cpufeatures 0.2.17 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/chronotope/chrono - ---- LICENSE.txt --- - -Rust-chrono is dual-licensed under The MIT License [1] and -Apache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and -contributors. - -Nota Bene: This is same as the Rust Project's own license. - - -[1]: , which is reproduced below: - -~~~~ -The MIT License (MIT) - -Copyright (c) 2014, Kang Seonghoon. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -~~~~ - +Source: https://github.com/RustCrypto/utils -[2]: , which is reproduced below: +--- LICENSE-APACHE --- -~~~~ - Apache License +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -3176,19 +5521,46 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -~~~~ + +--- LICENSE-MIT --- + +Copyright (c) 2020-2025 The RustCrypto Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -const-oid 0.10.3 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/RustCrypto/formats +cpufeatures 0.3.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -3423,246 +5795,242 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -core-foundation 0.10.1 (Rust crate) +crc32fast 1.5.5 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/core-foundation-rs +Source: https://github.com/srijs/rust-crc32fast --- LICENSE-APACHE --- Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + Version 2.0, January 2004 + http://www.apache.org/licenses/ -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -1. Definitions. + 1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS -APPENDIX: How to apply the Apache License to your work. + APPENDIX: How to apply the Apache License to your work. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. -Copyright [yyyy] [name of copyright owner] + Copyright {yyyy} {name of copyright owner} -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2012-2013 Mozilla Foundation +MIT License -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: +Copyright (c) 2018 Sam Rijs, Alex Crichton and contributors -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ============================================================================== -core-foundation-sys 0.8.7 (Rust crate) +crypto-common 0.1.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/core-foundation-rs +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -3860,7 +6228,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -3870,7 +6238,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2012-2013 Mozilla Foundation +Copyright (c) 2021 RustCrypto Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -3897,9 +6265,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -cpufeatures 0.2.17 (Rust crate) +crypto-common 0.2.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/utils +Source: https://github.com/RustCrypto/traits --- LICENSE-APACHE --- @@ -4107,7 +6475,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2020-2025 The RustCrypto Project Developers +Copyright (c) 2021-2026 RustCrypto Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4134,9 +6502,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -cpufeatures 0.3.1 (Rust crate) +ctr 0.10.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/utils +Source: https://github.com/RustCrypto/block-modes --- LICENSE-APACHE --- @@ -4344,7 +6712,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2020-2026 The RustCrypto Project Developers +Copyright (c) 2018-2022 RustCrypto Developers +Copyright (c) 2018 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4371,9 +6740,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -crc32fast 1.5.5 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/srijs/rust-crc32fast +ctutils 0.4.8 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -4557,7 +6926,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -4565,7 +6934,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {yyyy} {name of copyright owner} + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -4581,30 +6950,34 @@ Apache License --- LICENSE-MIT --- -MIT License - -Copyright (c) 2018 Sam Rijs, Alex Crichton and contributors +Copyright (c) 2025-2026 The RustCrypto Project Developers -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -crypto-common 0.1.7 (Rust crate) +digest 0.10.7 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/RustCrypto/traits @@ -4814,7 +7187,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2021 RustCrypto Developers +Copyright (c) 2017 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -4841,7 +7214,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -crypto-common 0.2.2 (Rust crate) +digest 0.11.3 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/RustCrypto/traits @@ -5051,7 +7424,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2021-2026 RustCrypto Developers +Copyright (c) 2017-2025 RustCrypto Developers +Copyright (c) 2017 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -5078,9 +7452,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -digest 0.10.7 (Rust crate) +displaydoc 0.2.7 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/traits +Source: https://github.com/yaahc/displaydoc --- LICENSE-APACHE --- @@ -5278,7 +7652,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -5288,8 +7662,6 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2017 Artyom Pavlov - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -5315,9 +7687,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -digest 0.11.3 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/RustCrypto/traits +equivalent 1.0.3 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/indexmap-rs/equivalent --- LICENSE-APACHE --- @@ -5515,7 +7887,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -5525,8 +7897,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2017-2025 RustCrypto Developers -Copyright (c) 2017 Artyom Pavlov +Copyright (c) 2016--2023 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -5553,9 +7924,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -displaydoc 0.2.7 (Rust crate) +errno 0.3.15 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/yaahc/displaydoc +Source: https://github.com/lambda-fairy/rust-errno --- LICENSE-APACHE --- @@ -5747,22 +8118,236 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 Chris Wong + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +fdeflate 0.3.7 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/image-rs/fdeflate + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - http://www.apache.org/licenses/LICENSE-2.0 + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. + END OF TERMS AND CONDITIONS --- LICENSE-MIT --- +MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -5788,9 +8373,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -equivalent 1.0.3 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/indexmap-rs/equivalent +flate2 1.1.11 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-lang/flate2-rs --- LICENSE-APACHE --- @@ -5998,7 +8583,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016--2023 +Copyright (c) 2014-2026 Alex Crichton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6025,9 +8610,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -errno 0.3.15 (Rust crate) +form_urlencoded 1.2.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/lambda-fairy/rust-errno +Source: https://github.com/servo/rust-url --- LICENSE-APACHE --- @@ -6162,292 +8747,80 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---- LICENSE-MIT --- - -Copyright (c) 2014 Chris Wong - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -fdeflate 0.3.7 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/image-rs/fdeflate - ---- LICENSE-APACHE --- - -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +END OF TERMS AND CONDITIONS - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +APPENDIX: How to apply the Apache License to your work. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +Copyright [yyyy] [name of copyright owner] - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. + http://www.apache.org/licenses/LICENSE-2.0 - END OF TERMS AND CONDITIONS +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. --- LICENSE-MIT --- -MIT License +Copyright (c) 2013-2016 The rust-url developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6474,9 +8847,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -flate2 1.1.11 (Rust crate) +futures 0.3.34 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/flate2-rs +Source: https://github.com/rust-lang/futures-rs --- LICENSE-APACHE --- @@ -6668,7 +9041,8 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6684,7 +9058,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014-2026 Alex Crichton +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6711,9 +9086,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -form_urlencoded 1.2.2 (Rust crate) +futures-channel 0.3.34 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/servo/rust-url +Source: https://github.com/rust-lang/futures-rs --- LICENSE-APACHE --- @@ -6905,7 +9280,8 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -6921,7 +9297,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2013-2016 The rust-url developers +Copyright (c) 2016 Alex Crichton +Copyright (c) 2017 The Tokio Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -6948,7 +9325,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures 0.3.34 (Rust crate) +futures-core 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7187,7 +9564,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-channel 0.3.34 (Rust crate) +futures-executor 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7426,7 +9803,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-core 0.3.34 (Rust crate) +futures-io 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7665,7 +10042,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-executor 0.3.34 (Rust crate) +futures-macro 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -7904,7 +10281,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-io 0.3.34 (Rust crate) +futures-sink 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -8143,7 +10520,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-macro 0.3.34 (Rust crate) +futures-task 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -8382,7 +10759,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-sink 0.3.34 (Rust crate) +futures-util 0.3.34 (Rust crate) License: MIT OR Apache-2.0 Source: https://github.com/rust-lang/futures-rs @@ -8621,15 +10998,44 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-task 0.3.34 (Rust crate) +generic-array 0.14.7 (Rust crate) +License: MIT +Source: https://github.com/fizyk20/generic-array.git + +--- LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Bartłomiej Kamiński + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +getrandom 0.2.17 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +Source: https://github.com/rust-random/getrandom --- LICENSE-APACHE --- Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -8815,14 +11221,13 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -8832,8 +11237,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2018-2024 The rust-random Project Developers +Copyright (c) 2014 The Rust Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -8860,15 +11265,15 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -futures-util 0.3.34 (Rust crate) +getrandom 0.4.3 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-lang/futures-rs +Source: https://github.com/rust-random/getrandom --- LICENSE-APACHE --- Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -9054,14 +11459,13 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -9071,8 +11475,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016 Alex Crichton -Copyright (c) 2017 The Tokio Authors +Copyright (c) 2018-2026 The rust-random Project Developers +Copyright (c) 2014 The Rust Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -9088,55 +11492,26 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - -============================================================================== -generic-array 0.14.7 (Rust crate) -License: MIT -Source: https://github.com/fizyk20/generic-array.git - ---- LICENSE --- - -The MIT License (MIT) - -Copyright (c) 2015 Bartłomiej Kamiński - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== -getrandom 0.2.17 (Rust crate) -License: MIT OR Apache-2.0 -Source: https://github.com/rust-random/getrandom +ghash 0.6.0 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/universal-hashes --- LICENSE-APACHE --- Apache License Version 2.0, January 2004 - https://www.apache.org/licenses/ + http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -9328,7 +11703,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - https://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -9338,8 +11713,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2018-2024 The rust-random Project Developers -Copyright (c) 2014 The Rust Project Developers +Copyright (c) 2019-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -9823,16 +12197,253 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +============================================================================== +hmac 0.13.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/MACs + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2017 Artyom Pavlov + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. ============================================================================== http 1.5.0 (Rust crate) @@ -11971,7 +14582,244 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2013-2025 The rust-url developers +Copyright (c) 2013-2025 The rust-url developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +idna_adapter 1.2.2 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/hsivonen/idna_adapter + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) The rust-url developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -11998,9 +14846,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -idna_adapter 1.2.2 (Rust crate) +indexmap 2.14.2 (Rust crate) License: Apache-2.0 OR MIT -Source: https://github.com/hsivonen/idna_adapter +Source: https://github.com/indexmap-rs/indexmap --- LICENSE-APACHE --- @@ -12208,7 +15056,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) The rust-url developers +Copyright (c) 2016--2017 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -12235,9 +15083,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -indexmap 2.14.2 (Rust crate) -License: Apache-2.0 OR MIT -Source: https://github.com/indexmap-rs/indexmap +inout 0.2.6 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/utils --- LICENSE-APACHE --- @@ -12435,7 +15283,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -12445,7 +15293,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2016--2017 +Copyright (c) 2022-2025 The RustCrypto Project Developers +Copyright (c) 2022 Artyom Pavlov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -14475,7 +17324,244 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 The Rust Project Developers +Copyright (c) 2014 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +oauth2 5.0.0 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/ramosbugs/oauth2-rs + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2014 Alex Crichton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -14502,9 +17588,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -oauth2 5.0.0 (Rust crate) +once_cell 1.21.4 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/ramosbugs/oauth2-rs +Source: https://github.com/matklad/once_cell --- LICENSE-APACHE --- @@ -14712,8 +17798,6 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -14739,9 +17823,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -once_cell 1.21.4 (Rust crate) +openssl-probe 0.2.2 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/matklad/once_cell +Source: https://github.com/rustls/openssl-probe --- LICENSE-APACHE --- @@ -14949,6 +18033,8 @@ limitations under the License. --- LICENSE-MIT --- +Copyright (c) 2014 Alex Crichton + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the @@ -14974,9 +18060,9 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -openssl-probe 0.2.2 (Rust crate) +pbkdf2 0.13.0 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rustls/openssl-probe +Source: https://github.com/RustCrypto/password-hashes --- LICENSE-APACHE --- @@ -15174,7 +18260,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -15184,7 +18270,8 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2014 Alex Crichton +Copyright (c) 2017 Artyom Pavlov +Copyright (c) 2018-2023 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -15858,7 +18945,244 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2015 nwin + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +polyval 0.7.3 (Rust crate) +License: Apache-2.0 OR MIT +Source: https://github.com/RustCrypto/universal-hashes + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -15868,7 +19192,7 @@ limitations under the License. --- LICENSE-MIT --- -Copyright (c) 2015 nwin +Copyright (c) 2019-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -17076,9 +20400,262 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================== -rand_chacha 0.3.1 (Rust crate) +rand_chacha 0.3.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/rust-random/rand + +--- COPYRIGHT --- + +Copyrights in the Rand project are retained by their contributors. No +copyright assignment is required to contribute to the Rand project. + +For full authorship information, see the version control history. + +Except as otherwise noted (below and/or in individual files), Rand is +licensed under the Apache License, Version 2.0 or + or the MIT license + or , at your option. + +The Rand project includes code from the Rust project +published under these same licenses. + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright 2018 Developers of the Rand project +Copyright (c) 2014 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +============================================================================== +rand_core 0.10.1 (Rust crate) License: MIT OR Apache-2.0 -Source: https://github.com/rust-random/rand +Source: https://github.com/rust-random/rand_core --- COPYRIGHT --- @@ -17092,9 +20669,6 @@ licensed under the Apache License, Version 2.0 or or the MIT license or , at your option. -The Rand project includes code from the Rust project -published under these same licenses. - --- LICENSE-APACHE --- Apache License @@ -17285,24 +20859,9 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - --- LICENSE-MIT --- -Copyright 2018 Developers of the Rand project -Copyright (c) 2014 The Rust Project Developers +Copyright (c) 2018-2026 The Rand Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -25706,6 +29265,243 @@ not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder. +============================================================================== +universal-hash 0.6.1 (Rust crate) +License: MIT OR Apache-2.0 +Source: https://github.com/RustCrypto/traits + +--- LICENSE-APACHE --- + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--- LICENSE-MIT --- + +Copyright (c) 2019-2025 RustCrypto Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + ============================================================================== untrusted 0.9.0 (Rust crate) License: ISC diff --git a/polyfills/apps/claude-code/helper-rs/Cargo.lock b/polyfills/apps/claude-code/helper-rs/Cargo.lock index 7f326347..6f7db139 100644 --- a/polyfills/apps/claude-code/helper-rs/Cargo.lock +++ b/polyfills/apps/claude-code/helper-rs/Cargo.lock @@ -8,6 +8,41 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "aead" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1973cfbc1a2daf9cf550e74e1f088c28e7f7d8c1e1418fb6c9dc5184b7e84c99" +dependencies = [ + "crypto-common 0.2.2", + "inout", +] + +[[package]] +name = "aes" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fc36d7440d015b45468ba08a21e80e056ebbd014c611c6298bb7503e04bd1" +dependencies = [ + "cipher", + "cpubits", + "cpufeatures 0.3.1", +] + +[[package]] +name = "aes-gcm" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f2b8006a0c83f52b62ba44a97b58bf76fe2f70a329e588f67f89691d93d498f" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "ctutils", + "ghash", +] + [[package]] name = "android_system_properties" version = "0.1.6" @@ -166,6 +201,17 @@ dependencies = [ "windows-link", ] +[[package]] +name = "cipher" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c" +dependencies = [ + "block-buffer 0.12.1", + "crypto-common 0.2.2", + "inout", +] + [[package]] name = "cmake" version = "0.1.58" @@ -175,6 +221,12 @@ dependencies = [ "cc", ] +[[package]] +name = "cmov" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" + [[package]] name = "combine" version = "4.6.9" @@ -207,6 +259,12 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "cpubits" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae" + [[package]] name = "cpufeatures" version = "0.2.17" @@ -250,7 +308,27 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" dependencies = [ + "getrandom 0.4.3", "hybrid-array", + "rand_core 0.10.1", +] + +[[package]] +name = "ctr" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baaca1c4b237092596f64d571e9db6ce4109c4ef9742e27590f1709594461f21" +dependencies = [ + "cipher", +] + +[[package]] +name = "ctutils" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f" +dependencies = [ + "cmov", ] [[package]] @@ -272,6 +350,7 @@ dependencies = [ "block-buffer 0.12.1", "const-oid", "crypto-common 0.2.2", + "ctutils", ] [[package]] @@ -494,6 +573,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "ghash" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eecf2d5dc9b66b732b97707a0210906b1d30523eb773193ab777c0c84b3e8d5" +dependencies = [ + "polyval", +] + [[package]] name = "hashbrown" version = "0.17.1" @@ -506,6 +594,15 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hmac" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" +dependencies = [ + "digest 0.11.3", +] + [[package]] name = "http" version = "1.5.0" @@ -768,6 +865,15 @@ dependencies = [ "serde_core", ] +[[package]] +name = "inout" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a580c13f0ffc335ef42dd3f6b1a41b726051c5e1656d9a3aa6fddb3c5dfbbf9" +dependencies = [ + "hybrid-array", +] + [[package]] name = "ipnet" version = "2.12.2" @@ -884,6 +990,7 @@ checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" name = "mcp-apps-cli-helper" version = "0.1.0" dependencies = [ + "aes-gcm", "anyhow", "async-trait", "base64 0.23.1", @@ -892,6 +999,7 @@ dependencies = [ "libc", "mcp-apps-pictures", "mcp-apps-render", + "pbkdf2", "reqwest", "rmcp", "serde", @@ -1066,6 +1174,16 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "pbkdf2" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112d82ceb8c5bf524d9af484d4e4970c9fd5a0cc15ba14ad93dccd28873b0629" +dependencies = [ + "digest 0.11.3", + "hmac", +] + [[package]] name = "percent-encoding" version = "2.3.2" @@ -1097,6 +1215,17 @@ dependencies = [ "miniz_oxide 0.8.9", ] +[[package]] +name = "polyval" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0fa31d631f2b2cb2a544d0aa321ce847a94764d701ca2becc411138b93d49cd" +dependencies = [ + "cpubits", + "cpufeatures 0.3.1", + "universal-hash", +] + [[package]] name = "potential_utf" version = "0.1.6" @@ -1965,6 +2094,16 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "universal-hash" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4987bdc12753382e0bec4a65c50738ffaabc998b9cdd1f952fb5f39b0048a96" +dependencies = [ + "crypto-common 0.2.2", + "ctutils", +] + [[package]] name = "untrusted" version = "0.9.0" From 19813b258b65db6d36a386bfa2ae21120b0e83e4 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 18:41:42 +0100 Subject: [PATCH 07/21] mcp-apps-cli helper: the consent page shows who the server says it is (serverInfo, RFC 9728 metadata) --- polyfills/apps/claude-code/README.md | 9 +- .../apps/claude-code/helper-rs/src/about.rs | 237 ++++++++++++++++++ .../apps/claude-code/helper-rs/src/consent.rs | 100 +++++++- .../apps/claude-code/helper-rs/src/main.rs | 1 + .../apps/claude-code/helper-rs/src/oauth.rs | 12 +- .../apps/claude-code/helper-rs/tests/gate.rs | 27 +- .../helper-rs/tests/oauth-server.mjs | 23 +- 7 files changed, 394 insertions(+), 15 deletions(-) create mode 100644 polyfills/apps/claude-code/helper-rs/src/about.rs diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index fe2a2560..a2d8ac28 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -200,8 +200,13 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. `signin` prints one line ("Press Enter to review and approve in your browser"), then serves a small consent page on a loopback address of its own (a random port, a token against forged requests, closed after your answer - or after five minutes). The page says what the above means in three lines, - asks where to keep the login, and has Accept and Refuse; Accept goes on to + or after five minutes). The page shows who the server says it is, read from + what the server publishes without signing in (its name, icon, website, + description and permissions, from the MCP `serverInfo` and the OAuth + protected resource metadata, RFC 9728, with links to its policy and terms + when it gives them; what it does not publish is left out, and the icon is + downloaded by the helper, never loaded by the page). It says what the above + means in three lines, asks where to keep the login, and has Accept and Refuse; Accept goes on to the server's own sign-in in the same tab, Refuse keeps nothing. Without a browser, `--no-browser` asks the same in the terminal (`Continue? [y/N]`, no by default; without a terminal it refuses). To skip the question and the diff --git a/polyfills/apps/claude-code/helper-rs/src/about.rs b/polyfills/apps/claude-code/helper-rs/src/about.rs new file mode 100644 index 00000000..0b68b2c4 --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/src/about.rs @@ -0,0 +1,237 @@ +//! What a server says about itself, for the consent page: read from what the +//! server publishes, with no guessing. Three places, each optional: +//! +//! - the answer to an unauthenticated `initialize`: when the server replies +//! (many OAuth servers answer 401 until sign-in), its `serverInfo` (MCP's +//! Implementation: `title`, `description`, `websiteUrl`, `icons`); +//! - the OAuth protected resource metadata (RFC 9728), found from the 401's +//! `WWW-Authenticate` header or the well-known address: `resource_name`, +//! `resource_documentation`, `resource_policy_uri`, `resource_tos_uri`, +//! `scopes_supported`; +//! - the authorization server's metadata (RFC 8414), only for its +//! `scopes_supported` when the resource names none. +//! +//! A field the server does not publish stays empty and the page leaves it +//! out. An icon is downloaded here (https or this machine, small, an image +//! type) and embedded as a `data:` URL, so the page itself loads nothing +//! from elsewhere. Every request is short, follows no redirect, sends no +//! credential, and a failure only means less is shown. + +use std::time::Duration; + +use base64::{Engine, engine::general_purpose::STANDARD as B64}; +use serde_json::{Value, json}; + +/// The most an answer or an icon may weigh. +const LIMIT: usize = 256 * 1024; +/// How long the whole lookup may take before the page is shown with what it has. +pub const BUDGET: Duration = Duration::from_secs(8); + +#[derive(Debug, Default, Clone, PartialEq)] +pub struct About { + pub title: Option, + pub description: Option, + /// http(s) only. + pub website: Option, + /// A `data:` URL of an image type the page can show. + pub icon: Option, + pub docs: Option, + pub policy: Option, + pub terms: Option, + pub scopes: Vec, +} + +fn text(value: &Value, key: &str) -> Option { + let s = value.get(key)?.as_str()?.trim(); + (!s.is_empty() && s.len() <= 600 && !s.chars().any(char::is_control)).then(|| s.to_string()) +} + +/// A link to show: http(s) only (never `javascript:` or `data:`). +fn link(value: &Value, key: &str) -> Option { + let s = text(value, key)?; + url::Url::parse(&s).ok().filter(|u| matches!(u.scheme(), "http" | "https")).map(|u| u.to_string()) +} + +fn scope_list(value: &Value) -> Vec { + let all = value.get("scopes_supported").and_then(Value::as_array).into_iter().flatten().filter_map(Value::as_str); + all.filter(|s| !s.is_empty() && s.len() <= 80 && !s.chars().any(|c| c.is_control() || c.is_whitespace())).take(30).map(str::to_string).collect() +} + +fn client() -> Option { + reqwest::Client::builder().timeout(Duration::from_secs(4)).redirect(reqwest::redirect::Policy::none()).pool_max_idle_per_host(0).build().ok() +} + +/// A body of at most `LIMIT` bytes; None when it is larger. +async fn body(mut response: reqwest::Response) -> Option> { + let mut out = Vec::new(); + while let Some(chunk) = response.chunk().await.ok()? { + out.extend_from_slice(&chunk); + if out.len() > LIMIT { + return None; + } + } + Some(out) +} + +async fn get_json(http: &reqwest::Client, address: &str) -> Option { + if !crate::oauth::allowed(address) { + return None; + } + let response = http.get(address).header("accept", "application/json").send().await.ok()?; + if !response.status().is_success() { + return None; + } + serde_json::from_slice(&body(response).await?).ok() +} + +/// The `resource_metadata` address a 401 names, if it does. +fn named_metadata(header: &str) -> Option { + let at = header.find("resource_metadata=\"")? + "resource_metadata=\"".len(); + header[at..].split('"').next().map(str::to_string) +} + +/// A `serverInfo` out of a JSON answer or an event stream's first `data:` line. +fn server_info(answer: &[u8]) -> Option { + let text = std::str::from_utf8(answer).ok()?; + let json = if text.trim_start().starts_with('{') { text.to_string() } else { text.lines().find_map(|l| l.strip_prefix("data:"))?.trim().to_string() }; + let value: Value = serde_json::from_str(&json).ok()?; + value.get("result")?.get("serverInfo").cloned() +} + +/// The icon to show out of `serverInfo.icons`: not made for a dark background, +/// as the page is light; embedded as a `data:` URL. +async fn icon(http: &reqwest::Client, icons: &Value) -> Option { + let list: Vec<&Value> = icons.as_array()?.iter().filter(|i| i.get("theme").and_then(Value::as_str) != Some("dark")).collect(); + for entry in list.into_iter().take(4) { + let Some(src) = entry.get("src").and_then(Value::as_str) else { continue }; + if let Some(rest) = src.strip_prefix("data:") { + let (kind, data) = rest.split_once(";base64,")?; + if shown(kind) && data.len() <= LIMIT * 4 / 3 && B64.decode(data).is_ok() { + return Some(src.to_string()); + } + continue; + } + if !crate::oauth::allowed(src) { + continue; + } + let Ok(response) = http.get(src).send().await else { continue }; + let kind = response.headers().get("content-type").and_then(|v| v.to_str().ok()).unwrap_or("").split(';').next().unwrap_or("").trim().to_ascii_lowercase(); + if response.status().is_success() + && shown(&kind) + && let Some(bytes) = body(response).await + { + return Some(format!("data:{kind};base64,{}", B64.encode(bytes))); + } + } + None +} + +/// The image types the page embeds (an SVG in an `` runs no script). +fn shown(kind: &str) -> bool { + matches!(kind, "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/svg+xml") +} + +/// The well-known address of the resource metadata for `url` (RFC 9728, 3.1). +fn well_known(url: &url::Url, with_path: bool) -> String { + let mut base = url.clone(); + let path = if with_path { url.path().trim_end_matches('/').to_string() } else { String::new() }; + base.set_path(&format!("/.well-known/oauth-protected-resource{path}")); + base.set_query(None); + base.to_string() +} + +/// What the server at `url` publishes about itself. Never fails: what could +/// not be read is left out. +pub async fn fetch(url: &str) -> About { + let (Some(http), Ok(parsed)) = (client(), url::Url::parse(url)) else { return About::default() }; + let mut about = About::default(); + + // An unauthenticated `initialize`: serverInfo if it answers, else the 401's pointer to the metadata. + let mut pointer = None; + let hello = json!({"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-11-25", "capabilities": {}, "clientInfo": {"name": "mcp-apps-cli", "version": "0"}}}); + if let Ok(response) = http.post(url).header("accept", "application/json, text/event-stream").json(&hello).send().await { + pointer = response.headers().get("www-authenticate").and_then(|v| v.to_str().ok()).and_then(named_metadata); + if response.status().is_success() + && let Some(info) = body(response).await.and_then(|b| server_info(&b)) + { + about.title = text(&info, "title"); + about.description = text(&info, "description"); + about.website = link(&info, "websiteUrl"); + if let Some(icons) = info.get("icons") { + about.icon = icon(&http, icons).await; + } + } + } + + // The protected resource metadata: the address the 401 names, else the well-known ones. + let mut resource = None; + let mut candidates: Vec = pointer.into_iter().collect(); + candidates.push(well_known(&parsed, true)); + candidates.push(well_known(&parsed, false)); + for address in candidates { + if let Some(found) = get_json(&http, &address).await.filter(Value::is_object) { + resource = Some(found); + break; + } + } + if let Some(resource) = &resource { + if about.title.is_none() { + about.title = text(resource, "resource_name"); + } + about.docs = link(resource, "resource_documentation"); + about.policy = link(resource, "resource_policy_uri"); + about.terms = link(resource, "resource_tos_uri"); + about.scopes = scope_list(resource); + if about.scopes.is_empty() { + // The authorization server's list (RFC 8414), when the resource names none. + let issuer = resource.get("authorization_servers").and_then(Value::as_array).and_then(|a| a.first()).and_then(Value::as_str).and_then(|s| url::Url::parse(s).ok()); + if let Some(mut issuer) = issuer { + let path = issuer.path().trim_end_matches('/').to_string(); + issuer.set_path(&format!("/.well-known/oauth-authorization-server{path}")); + if let Some(meta) = get_json(&http, issuer.as_str()).await { + about.scopes = scope_list(&meta); + } + } + } + } + about +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn what_a_server_publishes_is_read_without_trusting_it() { + let v = json!({"resource_name": " Docs \u{7}", "resource_documentation": "https://d.example/docs", "resource_policy_uri": "javascript:alert(1)", "resource_tos_uri": 5, "scopes_supported": ["read", "bad scope", "", "write"]}); + assert_eq!(text(&v, "resource_name"), None, "a control character is refused"); + assert_eq!(text(&json!({"a": " Docs "}), "a").as_deref(), Some("Docs")); + assert_eq!(link(&v, "resource_documentation").as_deref(), Some("https://d.example/docs")); + assert_eq!(link(&v, "resource_policy_uri"), None); + assert_eq!(link(&v, "resource_tos_uri"), None); + assert_eq!(scope_list(&v), ["read", "write"]); + } + + #[test] + fn the_metadata_address_comes_from_the_401_or_the_well_known_paths() { + assert_eq!(named_metadata(r#"Bearer realm="OAuth", resource_metadata="https://m.example/.well-known/oauth-protected-resource/mcp", scope="a b""#).as_deref(), Some("https://m.example/.well-known/oauth-protected-resource/mcp")); + assert_eq!(named_metadata("Bearer"), None); + let u = url::Url::parse("https://m.example/v2/mcp?x=1").unwrap(); + assert_eq!(well_known(&u, true), "https://m.example/.well-known/oauth-protected-resource/v2/mcp"); + assert_eq!(well_known(&u, false), "https://m.example/.well-known/oauth-protected-resource"); + } + + #[test] + fn server_info_is_read_from_json_or_an_event_stream() { + let body = br#"{"jsonrpc":"2.0","id":1,"result":{"serverInfo":{"name":"n","title":"T"}}}"#; + assert_eq!(server_info(body).unwrap()["title"], "T"); + let sse = b"event: message\ndata: {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"serverInfo\":{\"name\":\"n\"}}}\n\n"; + assert_eq!(server_info(sse).unwrap()["name"], "n"); + assert!(server_info(b"{\"error\":1}").is_none()); + } + + #[test] + fn only_image_types_are_embedded() { + assert!(shown("image/png") && shown("image/svg+xml") && !shown("text/html") && !shown("")); + } +} diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 75e85757..2587cd2e 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -1,6 +1,9 @@ //! The pages `signin` shows in the person's browser (served by oauth.rs on a //! loopback address of its own): the consent page, and the two that end it. -//! Plain HTML and CSS, no script, nothing loaded from elsewhere. +//! Plain HTML and CSS, no script, nothing loaded from elsewhere (the server's +//! icon, when it has one, was downloaded by about.rs and is embedded). + +use crate::about::About; /// Text safe to put in HTML. fn escape(text: &str) -> String { @@ -19,15 +22,70 @@ input:checked + label.opt{border-color:#2563eb;background:#eff4ff}label.opt smal details{margin:0 0 20px}summary{cursor:pointer;color:#4b5563;font-size:14px}\ .row{display:flex;gap:10px;margin-top:20px}button{font:600 15px inherit;border-radius:9px;padding:10px 20px;border:1px solid #c4c8cf;background:#fff;cursor:pointer}\ button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fdecea;border:1px solid #f5b5af;color:#8a1c14;border-radius:8px;padding:8px 12px;margin:0 0 16px}\ +.who{display:flex;align-items:center;gap:12px;margin:0 0 14px}.who strong{display:block;font-size:15px}.who small{color:#6b7280;font-size:13px}\ +.icon{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#f4f5f7;border:1px solid #e5e7eb}.letter{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#4b5563}\ +.about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.scopes code{font-size:13px;color:#4b5563}\ .more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; fn shell(title: &str, body: &str) -> String { format!("{}

{body}
", escape(title)) } +/// The icon (or, without one, the first letter), the name the person gave it +/// and the links the server published. +fn identity(name: &str, url: &str, about: &About) -> String { + let badge = match &about.icon { + Some(icon) => format!("\"\"", escape(icon)), + None => format!("{}", escape(&name.chars().next().map(|c| c.to_uppercase().to_string()).unwrap_or_default())), + }; + let host = url::Url::parse(url).ok().and_then(|u| u.host_str().map(str::to_string)).unwrap_or_default(); + let mut links = Vec::new(); + for (label, target) in [("Website", &about.website), ("Documentation", &about.docs), ("Privacy policy", &about.policy), ("Terms of service", &about.terms)] { + if let Some(target) = target { + links.push(format!("{label}", escape(target))); + } + } + let links = if links.is_empty() { String::new() } else { format!("

{}

", links.join(" · ")) }; + let about_text = about.description.as_ref().map(|d| format!("

{}

", escape(d))).unwrap_or_default(); + format!("
{badge}
{}{}
{about_text}{links}", escape(name), escape(&host)) +} + +/// What the server lists as the permissions it asks for, as the server wrote +/// them; only the standard OpenID Connect words get a plain sentence. Without +/// a list, the page says so instead of guessing. +fn permissions(about: &About) -> String { + if about.scopes.is_empty() { + return "

Permissions

This server does not say which permissions it asks for. Its own sign-in page, next, shows them.

".to_string(); + } + let items: String = about + .scopes + .iter() + .map(|scope| match plain(scope) { + Some(sentence) => format!("
  • {sentence} {}
  • ", escape(scope)), + None => format!("
  • {}
  • ", escape(scope)), + }) + .collect(); + format!("

    Permissions the server lists

      {items}

    As the server words them; the helper can’t say more than the server does.

    ") +} + +/// The standard OpenID Connect scopes in plain words. +fn plain(scope: &str) -> Option<&'static str> { + Some(match scope { + "openid" => "Confirm who you are.", + "email" => "See your email address.", + "profile" => "See your name and profile.", + "offline_access" => "Stay signed in without asking you again.", + _ => return None, + }) +} + /// The consent page for `name` at `url`; `token` guards the form; `problem` /// is what went wrong with the last answer, if anything. -pub fn page(name: &str, url: &str, token: &str, problem: Option<&str>) -> String { +pub fn page(name: &str, url: &str, about: &About, token: &str, problem: Option<&str>) -> String { + let title = about.title.as_deref().unwrap_or(name); + let heading = escape(title); + let identity = identity(name, url, about); + let asks = permissions(about); let (name, url, token) = (escape(name), escape(url), escape(token)); let error = problem.map(|p| format!("

    {}

    ", escape(p))).unwrap_or_default(); let mac = cfg!(target_os = "macos"); @@ -45,8 +103,8 @@ pub fn page(name: &str, url: &str, token: &str, problem: Option<&str>) -> String // The radio inputs are hidden and chosen through their labels; the checked // one decides which fields show (CSS only, see `.pass`). let body = format!( - "{error}

    Sign in to “{name}”?

    {url}

    \ -
    • The helper gets its own login to {name}. Claude Code’s sign-in is not used.
    • \ + "{error}{identity}

      Sign in to “{heading}”?

      {url}

      {asks}\ +

      What this means

      • The helper gets its own login to {name}. Claude Code’s sign-in is not used.
      • \
      • Claude Code’s /mcp and your organisation’s MCP rules can’t see or cancel it.
      • \
      • It stays until you run mcp-apps-cli-helper signout {name}.
      \

      Where to keep the login

      {stores}\ @@ -54,7 +112,7 @@ pub fn page(name: &str, url: &str, token: &str, problem: Option<&str>) -> String

      More: README, “Own sign-in”

      ", more = crate::oauth::MORE ); - shell(&format!("Sign in to {name}?"), &body) + shell(&format!("Sign in to {title}?"), &body) } pub fn refused_page(name: &str) -> String { @@ -72,7 +130,7 @@ mod tests { // What the person is shown: the server, three points, the stores, both buttons, nothing injected. #[test] fn the_consent_page_says_what_it_means_and_escapes_what_it_shows() { - let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", "tok", Some("two different")); + let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", &About::default(), "tok", Some("two different")); for needle in ["its own login", "can’t see or cancel", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Plain file, not encrypted", "a=1&b=2"] { assert!(html.contains(needle), "{needle}"); } @@ -81,4 +139,34 @@ mod tests { assert!(html.contains("macOS Keychain") && html.contains("File encrypted with a passphrase")); } } + + // With nothing published: no icon, no links, and the page says it does not know the permissions. + #[test] + fn without_metadata_the_page_falls_back_to_what_the_person_configured() { + let html = page("docs", "https://m.example/mcp", &About::default(), "t", None); + for needle in ["Sign in to “docs”?", "class=\"icon letter\">D<", "m.example", "does not say which permissions"] { + assert!(html.contains(needle), "{needle}"); + } + assert!(!html.contains("".into()), + description: Some("Search \"docs\"".into()), + website: Some("https://docs.example/".into()), + icon: Some("data:image/png;base64,AAAA".into()), + policy: Some("https://docs.example/privacy?a=1&b=2".into()), + terms: Some("https://docs.example/terms".into()), + scopes: vec!["read".into(), "openid".into(), "xread", "Confirm who you are.", "x<y", "signout docs"] { + assert!(html.contains(needle), "{needle}\n{html}"); + } + assert!(!html.contains("") && !html.contains(" Option { async fn respond(stream: &mut TcpStream, status: &str, extra: &str, body: &str) { let head = format!( "HTTP/1.1 {status}\r\ncontent-type: text/html; charset=utf-8\r\ncontent-length: {}\r\nconnection: close\r\ncache-control: no-store\r\n\ - content-security-policy: default-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'\r\nx-frame-options: DENY\r\nreferrer-policy: same-origin\r\n{extra}\r\n", + content-security-policy: default-src 'none'; style-src 'unsafe-inline'; img-src data:; frame-ancestors 'none'\r\nx-frame-options: DENY\r\nreferrer-policy: same-origin\r\n{extra}\r\n", body.len() ); let _ = stream.write_all(head.as_bytes()).await; @@ -270,14 +270,14 @@ enum Answer { } /// The consent page: served until the person accepts or refuses. -async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: &str, url: &str) -> Result { +async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: &str, url: &str, about: &crate::about::About) -> Result { let mut problem: Option = None; loop { let (mut stream, request) = requests.next().await?; let origin_ok = request.headers.get("origin").is_none_or(|o| o == &format!("http://127.0.0.1:{port}") || o == &format!("http://localhost:{port}")); match (request.method.as_str(), request.path()) { ("GET", "/consent") if request.query("t").as_deref() == Some(token) => { - respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, token, problem.as_deref())).await; + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, token, problem.as_deref())).await; } ("POST", "/decision") if origin_ok && request.form().get("t").map(String::as_str) == Some(token) => { let form = request.form(); @@ -293,7 +293,7 @@ async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: } Err(why) => { problem = Some(format!("{why:#}")); - respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, token, problem.as_deref())).await; + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, token, problem.as_deref())).await; } } } @@ -330,8 +330,10 @@ pub async fn signin_in_browser(name: &str, url: &str, ready: impl FnOnce(&str)) let port = listener.local_addr()?.port(); let token = crate::tmp::random_hex(16)?; let mut requests = listen(listener, port); + // What the server publishes about itself, for the page (what is missing is left out). + let about = tokio::time::timeout(crate::about::BUDGET, crate::about::fetch(url)).await.unwrap_or_default(); ready(&format!("http://127.0.0.1:{port}/consent?t={token}")); - let answer = tokio::time::timeout(WAIT, wait_for_consent(&mut requests, port, &token, name, url)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; + let answer = tokio::time::timeout(WAIT, wait_for_consent(&mut requests, port, &token, name, url, &about)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; match answer { Answer::Refused => Ok(None), Answer::Accepted(session, place) => { diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 83d03970..08dcb521 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -635,7 +635,17 @@ fn oauth_script() -> PathBuf { impl OAuthServer { /// One that serves `serves`: `modern` (2026-07-28 only) or `legacy` (the 2025 revisions only). fn start(w: &World, serves: &str) -> Self { - let mut child = Command::new("node").arg(oauth_script()).arg(w.marker("oauth-requests")).args(["3600", serves]).stdout(Stdio::piped()).spawn().unwrap(); + Self::start_with(w, serves, false) + } + + /// The same; `about` makes it publish who it is (name, icon, links, scopes). + fn start_with(w: &World, serves: &str, about: bool) -> Self { + let mut command = Command::new("node"); + command.arg(oauth_script()).arg(w.marker("oauth-requests")).args(["3600", serves]).stdout(Stdio::piped()); + if about { + command.env("OAUTH_ABOUT", "1"); + } + let mut child = command.spawn().unwrap(); let mut line = String::new(); BufReader::new(child.stdout.take().unwrap()).read_line(&mut line).unwrap(); let port = line.trim().strip_prefix("listening ").expect("the stand-in server names its port").to_string(); @@ -847,6 +857,21 @@ fn the_consent_page_is_answered_in_the_browser_and_a_refusal_keeps_nothing() { assert!(Command::new("node").arg(oauth_script()).args(["consent", &page, "refuse"]).output().map_or(true, |o| !o.status.success())); } +// The page says who the server is from what it publishes (name, icon, links, +// permissions), and falls back to the configured name when it publishes nothing. +#[test] +fn the_consent_page_shows_what_the_server_publishes_and_falls_back_without_it() { + for (about, expected) in [(true, "about scopes icon title links"), (false, "about no-scopes no-icon no-title no-links")] { + let w = World::new(if about { "about" } else { "no-about" }); + let server = OAuthServer::start_with(&w, "modern", about); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let (mut child, page, _lines) = browser_signin(&w, true); + let (ok, said) = browser_plays(&page, &["refuse"]); + assert!(ok && said.contains(expected), "{said}"); + assert!(child.wait().unwrap().success()); + } +} + // The encrypted file, from the page to a session's helper: the passphrase is // set in the page, nothing readable is on disk, a helper without the // passphrase says what to set, one with it discovers the app, and `signout` diff --git a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs index 5cf24226..16ae43d6 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs +++ b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs @@ -24,6 +24,10 @@ // sent: yes|no> ", and one to /mcp with the // revision its `_meta` names after that, or "-" for none. // With OAUTH_NO_REVOKE set in the environment, it publishes no revocation endpoint. +// With OAUTH_ABOUT set, it describes itself: resource metadata with a name, +// documentation, policy and terms links and scopes, and an `initialize` that +// answers without a token with a serverInfo (title, description, website, +// an icon served at /icon.png). // Second form: opens the way a browser does (follows redirects). import { createHash, randomUUID } from "node:crypto"; @@ -50,6 +54,7 @@ if (process.argv[2] === "consent") { } } console.log(`page ${page.status} ${page.headers.get("content-security-policy")?.includes("default-src 'none'") ? "csp" : "no-csp"} ${/macOS Keychain/.test(html) ? "keychain-offered" : "no-keychain"}`); + console.log(`about ${/Permissions the server lists/.test(html) ? "scopes" : "no-scopes"} ${/ @@ -77,6 +82,8 @@ const codes = new Map(); // code -> { challenge, redirect } const refresh = new Set(); const tokens = new Map(); // access token -> end (ms) const registered = new Set(); +const about = Boolean(process.env.OAUTH_ABOUT); +const ICON = Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAkUExURQ92bhJ4cP///1igmmSmoYO4tCOBeqfNyjSLhNHl40mXkRF3b2M41LsAAAABYktHRAJmC3xkAAAAB3RJTUUH6gsbESc7/enhzQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNi0xMS0yN1QxNzozOTo1OSswMDowML3eDowAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjYtMTEtMjdUMTc6Mzk6NTkrMDA6MDDMg7YwAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI2LTExLTI3VDE3OjM5OjU5KzAwOjAwm5aX7wAAAZFJREFUaN7t1tuOgzAMBFDAufP//7ssbVmwk1CSsbQP8WM8dDiqonaaxowZM2bMmOczL7NuAS2kDFh0CbQVaBJ+AaoE2gv0CC+AIoHeBVqED0CNQEeBDuEPoESgU4EG4QxQIdClAE+4AhQIxArQBA6AE0gUYAkSACZQpgBJyAGgBMoW4Ah5AJBAhQIUoQSAEahYgCGUASACVQoQhBoAQmAAgyaI3wE0gQHsZLEE/sJuclgCA/jtyCMJHBC2s4AkMEDcDyOOwAFpP004Ar/E6366wq4zB5j3uUERqPBBM4jAP8ceG4shcIA7Ng5C4AB/2nkEgQPCaRcABA6Il23sJ3BAumxTN0H8kK2XNb9szwkcYNjedBLmuze8DTwEWJGwXQTxfk5EXBeBA3wm4zsIAhAyodBB4ICYTcVmggCkbCw1E8S/0TUbE5ftW4IAmELQNBLo2+fmNoJ4zBajtokgAK4YdS0EAfCVsG8gCECohMNzggDEajw+JghAqsbTYwJ/oHDJPiMu23L/JYwZM2bMmP83Pxi2Ds5FxdiuAAAAAElFTkSuQmCC", "base64"); const issue = (res) => { const access = `at-${randomUUID()}`; @@ -102,7 +109,16 @@ const server = createServer((req, res) => { res.end(JSON.stringify(value)); }; if (url.pathname === "/.well-known/oauth-protected-resource" || url.pathname === "/.well-known/oauth-protected-resource/mcp") { - return json(200, { resource: `${origin}/mcp`, authorization_servers: [origin] }); + return json(200, { + resource: `${origin}/mcp`, + authorization_servers: [origin], + ...(about ? { resource_name: "Acme Docs", resource_documentation: "https://docs.acme.example/mcp", resource_policy_uri: "https://acme.example/privacy", resource_tos_uri: "https://acme.example/terms", scopes_supported: ["docs:read", "docs:write", "openid"] } : {}), + }); + } + if (about && url.pathname === "/icon.png") { + note(200); + res.writeHead(200, { "content-type": "image/png" }); + return res.end(ICON); } if (url.pathname.startsWith("/.well-known/oauth-authorization-server")) { return json(200, { @@ -173,6 +189,11 @@ const server = createServer((req, res) => { const meta = message?.params?._meta ?? {}; const envelope = meta["io.modelcontextprotocol/protocolVersion"] ?? null; if (message) what = `${message.method} ${envelope ?? "-"}`; + if (about && message?.method === "initialize" && !bearer) { + note(200); + res.writeHead(200, { "content-type": "application/json" }); + return res.end(JSON.stringify({ jsonrpc: "2.0", id: message.id, result: { protocolVersion: LEGACY[0], capabilities: {}, serverInfo: { name: "acme-docs", title: "Acme Docs", version: "1", description: "Search the Acme documentation.", websiteUrl: "https://acme.example/", icons: [{ src: `${origin}/icon.png`, mimeType: "image/png", sizes: ["96x96"] }] } } })); + } const live = tokens.has(bearer) && tokens.get(bearer) > Date.now(); if (!live && !(serves === "open" && message?.method === "server/discover")) { note(401); From d161527534fabc9936e691bd542a1d3dbb08bbd3 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:25:28 +0100 Subject: [PATCH 08/21] mcp-apps-cli helper: the consent page's explanations sit behind a "?"; where logins are kept becomes one global setting The page no longer asks where to keep the login: that is MCP_APPS_CLI_TOKEN_STORE (or --token-store), keychain by default, the same for every server. The page says what is set. The terminal question loses its store choice the same way. --- polyfills/apps/claude-code/README.md | 29 ++--- polyfills/apps/claude-code/SECURITY.md | 2 +- .../apps/claude-code/helper-rs/src/consent.rs | 100 ++++++++++++------ .../apps/claude-code/helper-rs/src/oauth.rs | 68 +++++------- .../apps/claude-code/helper-rs/src/vault.rs | 15 +++ .../apps/claude-code/helper-rs/tests/gate.rs | 31 ++++-- .../helper-rs/tests/oauth-server.mjs | 14 +-- 7 files changed, 158 insertions(+), 101 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index a2d8ac28..69d74d98 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -181,12 +181,12 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. `mcp-apps-cli` as a client of its own and asks for your consent again. Signing out of the server in `/mcp` doesn't end it, and signing out here doesn't touch Claude Code's. - - **The tokens are kept on your Mac, where you choose.** The macOS Keychain - (the default), or a file encrypted with a passphrase (AES-256-GCM, key + - **The tokens are kept on your Mac, where you set once for every server.** + The macOS Keychain (the default), or a file encrypted with a passphrase (AES-256-GCM, key from PBKDF2-HMAC-SHA256) under `~/.cache/mcp-apps-cli/oauth/` (`MCP_APPS_CLI_OAUTH_DIR` puts it elsewhere). A plain file, not - encrypted, exists only as an explicit option (`--token-store file`, or - "Advanced" in the page) for a machine with no Keychain. A token is sent + encrypted, exists only as an explicit setting (`MCP_APPS_CLI_TOKEN_STORE=file`, or + `--token-store file`) for a machine with no Keychain. A token is sent only to the address it was issued for, over `https` or to this machine itself, and no redirect is followed. - **Your organisation's controls for MCP sign-in don't see it.** With a @@ -205,20 +205,25 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. description and permissions, from the MCP `serverInfo` and the OAuth protected resource metadata, RFC 9728, with links to its policy and terms when it gives them; what it does not publish is left out, and the icon is - downloaded by the helper, never loaded by the page). It says what the above - means in three lines, asks where to keep the login, and has Accept and Refuse; Accept goes on to - the server's own sign-in in the same tab, Refuse keeps nothing. Without a + downloaded by the helper, never loaded by the page). It says where the login + will be saved (the global setting below, not a choice made per server), has a + "?" that explains the rest (a separate sign-in that Claude Code doesn't list + or cancel, kept on this computer, removed with `signout`), and has Accept and + Refuse; Accept goes on to the server's own sign-in in the same tab, Refuse + keeps nothing. Without a browser, `--no-browser` asks the same in the terminal (`Continue? [y/N]`, no by default; without a terminal it refuses). To skip the question and the page, pass `--yes`, or set `MCP_APPS_CLI_SIGNIN_YES=1` in your environment to skip them every time (a terminal can't read `/config`); only do that for - servers you have already decided to sign in to. `--token-store - keychain|encrypted|file` (or `MCP_APPS_CLI_TOKEN_STORE`) chooses the store - without the page. There is no silent fall back: if the Keychain isn't + servers you have already decided to sign in to. Where logins are + kept is one setting for every server: `MCP_APPS_CLI_TOKEN_STORE` + (`keychain`, the default, `encrypted` or `file`), or `--token-store` for one + run. The page only says what is set. There is no silent fall back: if the Keychain isn't available, `signin` says so and what to use instead. - A file encrypted with a passphrase can't be opened by a session's helper - unless it has the passphrase: set `MCP_APPS_CLI_PASSPHRASE` in the + With `encrypted`, `signin` needs the passphrase too (the page can't take + one): set `MCP_APPS_CLI_PASSPHRASE`. A file encrypted with a passphrase can't + be opened by a session's helper unless it has the passphrase: set it in the environment you start Claude Code from (the helper can't ask). The Keychain needs nothing. It works with a server of MCP 2026-07-28 and with one of the 2025 revisions, only for `streamable-http` servers (not the older `sse` diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 56bd9c7b..c48c6ce3 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -106,7 +106,7 @@ person answers a consent page the helper serves on a loopback address of its own (a random port, a token against forged requests, a check of the `Host` and `Origin` headers, closed after the answer or after five minutes), or, with `--no-browser`, a `y/N` question in the terminal. The tokens, and the client -the server registered, are kept where the person chose: the macOS Keychain +the server registered, are kept where the person set (one global setting, `MCP_APPS_CLI_TOKEN_STORE`): the macOS Keychain (called directly through Security.framework; the default), or a file encrypted with a passphrase (AES-256-GCM, key from PBKDF2-HMAC-SHA256 with 600,000 rounds, a fresh salt and nonce for each write) in a folder only they can open diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 2587cd2e..df3f84ee 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -4,6 +4,7 @@ //! icon, when it has one, was downloaded by about.rs and is embedded). use crate::about::About; +use crate::vault::Kind; /// Text safe to put in HTML. fn escape(text: &str) -> String { @@ -20,12 +21,17 @@ input:checked + label.opt{border-color:#2563eb;background:#eff4ff}label.opt smal .pass{display:none;margin:0 0 8px 28px}input#enc:checked ~ .pass{display:block}\ .pass input{display:block;width:100%;box-sizing:border-box;padding:8px;margin:4px 0;border:1px solid #c4c8cf;border-radius:8px;font-size:15px}\ details{margin:0 0 20px}summary{cursor:pointer;color:#4b5563;font-size:14px}\ -.row{display:flex;gap:10px;margin-top:20px}button{font:600 15px inherit;border-radius:9px;padding:10px 20px;border:1px solid #c4c8cf;background:#fff;cursor:pointer}\ +.row{display:flex;gap:10px;margin-top:6px}button{font:600 15px inherit;border-radius:9px;padding:10px 20px;border:1px solid #c4c8cf;background:#fff;cursor:pointer}\ button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fdecea;border:1px solid #f5b5af;color:#8a1c14;border-radius:8px;padding:8px 12px;margin:0 0 16px}\ .who{display:flex;align-items:center;gap:12px;margin:0 0 14px}.who strong{display:block;font-size:15px}.who small{color:#6b7280;font-size:13px}\ .icon{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#f4f5f7;border:1px solid #e5e7eb}.letter{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#4b5563}\ .about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.scopes code{font-size:13px;color:#4b5563}\ -.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; +.tog{position:absolute;opacity:0;width:1px;height:1px}.extra{display:none;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}\ +#info:checked ~ .extra{display:block}\ +.help{margin-left:auto;align-self:center;width:34px;height:34px;box-sizing:border-box;border-radius:50%;border:1px solid #c4c8cf;color:#4b5563;display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer}\ +#info:checked ~ .row .help{background:#eff4ff;border-color:#2563eb;color:#2563eb}\ +.tog:focus-visible ~ .row .help{outline:2px solid #2563eb}\ +.q{margin:0 0 10px}.plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; fn shell(title: &str, body: &str) -> String { format!("{}
      {body}
      ", escape(title)) @@ -65,7 +71,7 @@ fn permissions(about: &About) -> String { None => format!("
    • {}
    • ", escape(scope)), }) .collect(); - format!("

      Permissions the server lists

        {items}

      As the server words them; the helper can’t say more than the server does.

      ") + format!("

      Permissions the server lists

        {items}

      These are the server’s own words.

      ") } /// The standard OpenID Connect scopes in plain words. @@ -79,38 +85,42 @@ fn plain(scope: &str) -> Option<&'static str> { }) } -/// The consent page for `name` at `url`; `token` guards the form; `problem` -/// is what went wrong with the last answer, if anything. -pub fn page(name: &str, url: &str, about: &About, token: &str, problem: Option<&str>) -> String { +/// The consent page for `name` at `url`; `kind` is where the login will be +/// kept (a global setting, so the page only says it); `token` guards the +/// form; `problem` is what went wrong with the last answer, if anything. +/// The explanations open with a “?” (a hidden checkbox and its label, no script). +pub fn page(name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { + render(false, name, url, about, kind, token, problem) +} + +/// The page; `open` shows the explanations (the previews use it). +pub fn render(open: bool, name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { let title = about.title.as_deref().unwrap_or(name); let heading = escape(title); let identity = identity(name, url, about); let asks = permissions(about); let (name, url, token) = (escape(name), escape(url), escape(token)); let error = problem.map(|p| format!("

      {}

      ", escape(p))).unwrap_or_default(); - let mac = cfg!(target_os = "macos"); - let stores = if mac { - "\ - \ - \ - \ -
      \ -
      Advanced
      " - } else { - "

      Only a plain file is available on this system for now (macOS gets the Keychain and encrypted files first).

      \ - " + let checked = if open || problem.is_some() { " checked" } else { "" }; + let (keeps, saved) = match kind { + Kind::Keychain => ("Saved in the macOS Keychain.", "in the macOS Keychain, the safe place where your Mac keeps passwords"), + Kind::Encrypted => ("Saved in a file protected by your passphrase.", "in a file protected by your passphrase"), + Kind::File => ("Saved in a plain file, not encrypted.", "in a plain file, which is not encrypted"), }; - // The radio inputs are hidden and chosen through their labels; the checked - // one decides which fields show (CSS only, see `.pass`). + let good = format!( + "

      Good to know

      • Its own sign-in. It is separate from the one Claude Code uses: Claude Code doesn’t list it and can’t cancel it.
      • \ +
      • Kept on this computer, {saved}.
      • \ +
      • Remove it any time. Type mcp-apps-cli-helper signout {name} in a terminal and it is gone.
      \ +

      To change where logins are saved (for every server), set MCP_APPS_CLI_TOKEN_STORE to keychain, encrypted or file before signing in.

      " + ); + let buttons = ""; + let help = ""; + let more = format!("

      More: README, “Own sign-in”

      ", crate::oauth::MORE); let body = format!( "{error}{identity}

      Sign in to “{heading}”?

      {url}

      {asks}\ -

      What this means

      • The helper gets its own login to {name}. Claude Code’s sign-in is not used.
      • \ -
      • Claude Code’s /mcp and your organisation’s MCP rules can’t see or cancel it.
      • \ -
      • It stays until you run mcp-apps-cli-helper signout {name}.
      \ -

      Where to keep the login

      {stores}\ -
      \ -

      More: README, “Own sign-in”

      ", - more = crate::oauth::MORE +

      Next, you sign in on the server’s own page. {keeps}

      \ +
      \ +
      {buttons}{help}
      {good}
      {more}" ); shell(&format!("Sign in to {title}?"), &body) } @@ -127,23 +137,24 @@ pub fn done_page() -> String { mod tests { use super::*; - // What the person is shown: the server, three points, the stores, both buttons, nothing injected. + // What the person is shown: the server, the explanations, where the login goes, both buttons, nothing injected. #[test] fn the_consent_page_says_what_it_means_and_escapes_what_it_shows() { - let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", &About::default(), "tok", Some("two different")); - for needle in ["its own login", "can’t see or cancel", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Plain file, not encrypted", "a=1&b=2"] { + let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", &About::default(), Kind::Keychain, "tok", Some("two different")); + for needle in ["separate", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "MCP_APPS_CLI_TOKEN_STORE", "Saved in the macOS Keychain.", "a=1&b=2"] { assert!(html.contains(needle), "{needle}"); } assert!(!html.contains("de") && !html.contains("different") && !html.contains("D<", "m.example", "does not say which permissions"] { assert!(html.contains(needle), "{needle}"); } @@ -163,10 +174,31 @@ mod tests { scopes: vec!["read".into(), "openid".into(), "xread", "Confirm who you are.", "x<y", "signout docs"] { assert!(html.contains(needle), "{needle}\n{html}"); } assert!(!html.contains("") && !html.contains(" Result { +async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: &str, url: &str, about: &crate::about::About, place: &Place) -> Result { let mut problem: Option = None; loop { let (mut stream, request) = requests.next().await?; let origin_ok = request.headers.get("origin").is_none_or(|o| o == &format!("http://127.0.0.1:{port}") || o == &format!("http://localhost:{port}")); match (request.method.as_str(), request.path()) { ("GET", "/consent") if request.query("t").as_deref() == Some(token) => { - respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, token, problem.as_deref())).await; + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, place.kind(), token, problem.as_deref())).await; } ("POST", "/decision") if origin_ok && request.form().get("t").map(String::as_str) == Some(token) => { let form = request.form(); @@ -285,15 +285,15 @@ async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: respond(&mut stream, "200 OK", "", &crate::consent::refused_page(name)).await; return Ok(Answer::Refused); } - match accepted(&form, name, url, port).await { - Ok((session, place)) => { + match begin_prepared(name, url, place, port).await { + Ok(session) => { let location = format!("location: {}\r\n", session.auth_url); respond(&mut stream, "303 See Other", &location, "").await; - return Ok(Answer::Accepted(Box::new(session), place)); + return Ok(Answer::Accepted(Box::new(session), place.clone())); } Err(why) => { problem = Some(format!("{why:#}")); - respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, token, problem.as_deref())).await; + respond(&mut stream, "200 OK", "", &crate::consent::page(name, url, about, place.kind(), token, problem.as_deref())).await; } } } @@ -302,30 +302,27 @@ async fn wait_for_consent(requests: &mut Requests, port: u16, token: &str, name: } } -/// What the page's form chose, checked, and the flow begun with the server. -async fn accepted(form: &HashMap, name: &str, url: &str, port: u16) -> Result<(AuthorizationSession, Place)> { - let kind = Kind::parse(form.get("store").map(String::as_str).unwrap_or("keychain"))?; - let passphrase = if kind == Kind::Encrypted { - let first = form.get("passphrase").cloned().unwrap_or_default(); - vault::check_passphrase(&first)?; - if form.get("again") != Some(&first) { - bail!("the two passphrases differ"); - } - Some(first) - } else { - None - }; - vault::usable(kind)?; - let place = Place::of(kind, name, url, passphrase).context("no folder to keep the sign-in in")?; - prepare(&place)?; - let session = begin(name, url, place.clone(), &format!("http://127.0.0.1:{port}/callback")).await?; - Ok((session, place)) +/// The folder made, and the flow begun with the server. +async fn begin_prepared(name: &str, url: &str, place: &Place, port: u16) -> Result { + prepare(place)?; + begin(name, url, place.clone(), &format!("http://127.0.0.1:{port}/callback")).await } /// The browser path: consent page, then the server's own sign-in in the same -/// tab. `ready` is given the page's address. None: the person refused. -pub async fn signin_in_browser(name: &str, url: &str, ready: impl FnOnce(&str)) -> Result> { +/// tab. `kind` is where the login is kept (the global setting, vault.rs); +/// `ready` is given the page's address. None: the person refused. +pub async fn signin_in_browser(name: &str, url: &str, kind: Kind, ready: impl FnOnce(&str)) -> Result> { check_url(name, url)?; + vault::usable(kind)?; + // A page can't take a passphrase: an encrypted file's comes from the environment. + let passphrase = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); + if kind == Kind::Encrypted { + match &passphrase { + Some(p) => vault::check_passphrase(p)?, + None => bail!("the logins are set to be kept in a file encrypted with a passphrase: set {PASSPHRASE_ENV} in the environment, or use another store (MCP_APPS_CLI_TOKEN_STORE)"), + } + } + let place = Place::of(kind, name, url, passphrase).context("no folder to keep the sign-in in")?; let listener = TcpListener::bind("127.0.0.1:0").await?; let port = listener.local_addr()?.port(); let token = crate::tmp::random_hex(16)?; @@ -333,7 +330,7 @@ pub async fn signin_in_browser(name: &str, url: &str, ready: impl FnOnce(&str)) // What the server publishes about itself, for the page (what is missing is left out). let about = tokio::time::timeout(crate::about::BUDGET, crate::about::fetch(url)).await.unwrap_or_default(); ready(&format!("http://127.0.0.1:{port}/consent?t={token}")); - let answer = tokio::time::timeout(WAIT, wait_for_consent(&mut requests, port, &token, name, url, &about)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; + let answer = tokio::time::timeout(WAIT, wait_for_consent(&mut requests, port, &token, name, url, &about, &place)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; match answer { Answer::Refused => Ok(None), Answer::Accepted(session, place) => { @@ -383,13 +380,13 @@ fn signed_in(name: &str, place: &Place) { pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { let (name, url) = target(&args, words)?; let name = name.as_str(); - let asked = vault::asked(words)?; + let kind = vault::chosen(words)?; // `--yes`, or `MCP_APPS_CLI_SIGNIN_YES=1` for someone who always wants it // (a terminal can't read /config), and `--no-browser`: no consent page. let assumed = flag(words, "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); if !assumed && !flag(words, "--no-browser") { let interactive = std::io::stdin().is_terminal(); - let place = signin_in_browser(name, &url, |page| { + let place = signin_in_browser(name, &url, kind, |page| { if interactive { println!("Press Enter to review and approve in your browser\n(or open: {page})"); let page = page.to_string(); @@ -414,18 +411,7 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { } return Ok(()); } - // The terminal: the same question, and the same choices. - let kind = match asked { - Some(kind) => kind, - None if !assumed && std::io::stdin().is_terminal() && Kind::Encrypted.available() => { - print!("Where to keep the login? [1] macOS Keychain (default) [2] file encrypted with a passphrase: "); - std::io::stdout().flush()?; - let mut choice = String::new(); - std::io::stdin().lock().read_line(&mut choice)?; - if choice.trim() == "2" { Kind::Encrypted } else { Kind::Keychain } - } - None => if Kind::Keychain.available() { Kind::Keychain } else { Kind::File }, - }; + // The terminal: the same question; the store is the global setting. vault::usable(kind)?; let mut passphrase = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); if kind == Kind::Encrypted && passphrase.is_none() { diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index 84d9491f..3e90e7fc 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -46,6 +46,12 @@ pub fn asked(words: &[String]) -> Result> { flag.or_else(|| std::env::var("MCP_APPS_CLI_TOKEN_STORE").ok().filter(|v| !v.is_empty())).map(|v| Kind::parse(&v)).transpose() } +/// Where logins are kept: the same for every server, set once with `--token-store` +/// or `MCP_APPS_CLI_TOKEN_STORE`; else the Keychain where there is one, else a file. +pub fn chosen(words: &[String]) -> Result { + Ok(asked(words)?.unwrap_or(if Kind::Keychain.available() { Kind::Keychain } else { Kind::File })) +} + /// The folder for the files: `$MCP_APPS_CLI_OAUTH_DIR` if it is set (the /// tests use it), else `~/.cache/mcp-apps-cli/oauth`. fn folder() -> Option { @@ -63,6 +69,15 @@ pub enum Place { } impl Place { + /// How this place keeps the login. + pub fn kind(&self) -> Kind { + match self { + Place::Keychain(_) => Kind::Keychain, + Place::Encrypted(..) => Kind::Encrypted, + Place::File(_) => Kind::File, + } + } + /// The place of `kind` for one server at one url; `passphrase` is for an encrypted file. pub fn of(kind: Kind, name: &str, url: &str, passphrase: Option) -> Option { let account = crate::store::file_name(name, url); diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 08dcb521..02c07bcd 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -807,7 +807,12 @@ fn signout_says_when_the_server_cannot_revoke() { /// `signin docs` in its browser mode: the consent page's address from its output, and its process. fn browser_signin(w: &World, file_store: bool) -> (std::process::Child, String, std::io::Lines>) { - let mut child = terminal_with(w, &["signin", "docs"], file_store).stdout(Stdio::piped()).spawn().unwrap(); + browser_signin_with(w, file_store, &[]) +} + +/// The same, with more environment (the global store setting, the passphrase). +fn browser_signin_with(w: &World, file_store: bool, env: &[(&str, &str)]) -> (std::process::Child, String, std::io::Lines>) { + let mut child = terminal_with(w, &["signin", "docs"], file_store).envs(env.iter().copied()).stdout(Stdio::piped()).spawn().unwrap(); let mut lines = BufReader::new(child.stdout.take().unwrap()).lines(); let page = loop { let line = lines.next().expect("signin shows the consent page's address").unwrap(); @@ -847,8 +852,8 @@ fn the_consent_page_is_answered_in_the_browser_and_a_refusal_keeps_nothing() { // Accept, the plain file chosen in the page's advanced options. let (mut child, page, mut lines) = browser_signin(&w, true); - let (ok, said) = browser_plays(&page, &["accept", "file"]); - assert!(ok && said.contains("answered 200 signed-in"), "{said}"); + let (ok, said) = browser_plays(&page, &["accept"]); + assert!(ok && said.contains("answered 200 signed-in") && said.contains("saved:file no-store-choice"), "{said}"); assert!(child.wait().unwrap().success()); let out: Vec = lines.by_ref().map_while(Result::ok).collect(); assert!(out.iter().any(|l| l.contains("Signed in to docs. The login is kept in the plain file.")), "{out:?}"); @@ -872,6 +877,19 @@ fn the_consent_page_shows_what_the_server_publishes_and_falls_back_without_it() } } +// An encrypted store set globally without the passphrase: `signin` says what +// to set before it shows any page. +#[cfg(target_os = "macos")] +#[test] +fn an_encrypted_store_without_its_passphrase_is_refused_before_the_page() { + let w = World::new("encrypted-no-passphrase"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let out = terminal_with(&w, &["signin", "docs"], false).env("MCP_APPS_CLI_TOKEN_STORE", "encrypted").output().unwrap(); + let said = String::from_utf8_lossy(&out.stderr).to_string() + &String::from_utf8_lossy(&out.stdout); + assert!(!out.status.success() && said.contains("MCP_APPS_CLI_PASSPHRASE") && !said.contains("/consent"), "{said}"); +} + // The encrypted file, from the page to a session's helper: the passphrase is // set in the page, nothing readable is on disk, a helper without the // passphrase says what to set, one with it discovers the app, and `signout` @@ -882,9 +900,10 @@ fn an_encrypted_sign_in_is_made_in_the_page_and_read_with_the_passphrase() { let w = World::new("encrypted"); let server = OAuthServer::start(&w, "modern"); w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); - let (mut child, page, _lines) = browser_signin(&w, false); - let (ok, said) = browser_plays(&page, &["accept", "encrypted", "correct horse battery"]); - assert!(ok && said.contains("keychain-offered") && said.contains("answered 200 signed-in"), "{said}"); + // The store is the global setting: the page only says it, and asks for no passphrase. + let (mut child, page, _lines) = browser_signin_with(&w, false, &[("MCP_APPS_CLI_TOKEN_STORE", "encrypted"), ("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")]); + let (ok, said) = browser_plays(&page, &["accept"]); + assert!(ok && said.contains("saved:encrypted no-store-choice") && said.contains("answered 200 signed-in"), "{said}"); assert!(child.wait().unwrap().success()); let files: Vec<_> = std::fs::read_dir(w.root.join("tokens")).unwrap().flatten().collect(); assert_eq!(files.len(), 1); diff --git a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs index 16ae43d6..07bd762a 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs +++ b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs @@ -43,29 +43,29 @@ if (process.argv[2] === "browse") { if (process.argv[2] === "consent") { // The person's browser at the consent page: reads it, then answers it, and // follows the redirects through the server's sign-in back to the helper. - // node oauth-server.mjs consent accept|refuse|forge [keychain|encrypted|file] [passphrase] - const [, , , pageUrl, action, store = "file", passphrase = ""] = process.argv; + // node oauth-server.mjs consent accept|refuse|forge + const [, , , pageUrl, action] = process.argv; const page = await fetch(pageUrl); const html = await page.text(); - for (const needle of ["its own login", "can\u2019t see or cancel", "mcp-apps-cli-helper signout", "Accept", "Refuse", "Where to keep the login"]) { + for (const needle of ["separate", "mcp-apps-cli-helper signout", "Accept", "Refuse", "MCP_APPS_CLI_TOKEN_STORE"]) { if (!html.includes(needle)) { console.log(`the page lacks "${needle}"`); process.exit(2); } } - console.log(`page ${page.status} ${page.headers.get("content-security-policy")?.includes("default-src 'none'") ? "csp" : "no-csp"} ${/macOS Keychain/.test(html) ? "keychain-offered" : "no-keychain"}`); + console.log(`page ${page.status} ${page.headers.get("content-security-policy")?.includes("default-src 'none'") ? "csp" : "no-csp"} saved:${/Saved in the macOS Keychain/.test(html) ? "keychain" : /Saved in a file protected/.test(html) ? "encrypted" : /Saved in a plain file/.test(html) ? "file" : "unsaid"} ${/name="store"|name="passphrase"/.test(html) ? "has-store-choice" : "no-store-choice"}`); console.log(`about ${/Permissions the server lists/.test(html) ? "scopes" : "no-scopes"} ${/ fetch(new URL("/decision", pageUrl), { method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", ...headers }, body: new URLSearchParams(fields) }); if (action === "forge") { - const wrong = await post({ t: "not-the-token", decision: "accept", store: "file" }); - const foreign = await post({ t, decision: "accept", store: "file" }, { origin: "https://evil.example" }); + const wrong = await post({ t: "not-the-token", decision: "accept" }); + const foreign = await post({ t, decision: "accept" }, { origin: "https://evil.example" }); console.log(`forged ${wrong.status} ${foreign.status}`); process.exit(wrong.status === 404 && foreign.status === 404 ? 0 : 1); } - const answered = await post({ t: token, decision: action, store, passphrase, again: passphrase }); + const answered = await post({ t: token, decision: action }); const text = await answered.text(); console.log(`answered ${answered.status} ${text.includes("Not signed in") ? "refused" : text.includes("Signed in") ? "signed-in" : text.slice(0, 200)}`); process.exit(0); From 39a80ead4ed147c95062b9c490ef75e9b91093ad Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:25:28 +0100 Subject: [PATCH 09/21] mcp-apps-cli helper: the consent page in everyday words Rewritten as short interface text: who asks, what for, what it will be able to do (permissions in plain words, the server's own names in small print), where the login is kept, and buttons that say what happens. The technical details stay behind the "?". --- polyfills/apps/claude-code/README.md | 12 +- .../apps/claude-code/helper-rs/src/consent.rs | 310 ++++++++++++------ .../helper-rs/tests/oauth-server.mjs | 8 +- 3 files changed, 221 insertions(+), 109 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index 69d74d98..ae11c44f 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -205,11 +205,13 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. description and permissions, from the MCP `serverInfo` and the OAuth protected resource metadata, RFC 9728, with links to its policy and terms when it gives them; what it does not publish is left out, and the icon is - downloaded by the helper, never loaded by the page). It says where the login - will be saved (the global setting below, not a choice made per server), has a - "?" that explains the rest (a separate sign-in that Claude Code doesn't list - or cancel, kept on this computer, removed with `signout`), and has Accept and - Refuse; Accept goes on to the server's own sign-in in the same tab, Refuse + downloaded by the helper, never loaded by the page). It shows what the add-on will be able to do + in everyday words (with the server's own permission names in small print), + where the login is saved (a green check for the Keychain or a passphrase-locked + file, a warning for a plain file; "Edit" tells how to change it), and has a + "?" for the details (it is separate from Claude Code's own login, how to + disconnect, the server's links). The buttons say what happens + ("Continue to ", "Cancel"); Accept goes on to the server's own sign-in in the same tab, Refuse keeps nothing. Without a browser, `--no-browser` asks the same in the terminal (`Continue? [y/N]`, no by default; without a terminal it refuses). To skip the question and the diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index df3f84ee..5d3e1895 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -14,177 +14,276 @@ fn escape(text: &str) -> String { const STYLE: &str = "\ body{margin:0;background:#f4f5f7;color:#1c1e21;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:flex;justify-content:center;padding:48px 16px}\ main{width:100%;max-width:560px;background:#fff;border:1px solid #d9dce1;border-radius:14px;padding:28px 30px;box-shadow:0 2px 10px rgba(0,0,0,.05)}\ -h1{font-size:22px;margin:0 0 2px}.url{font:13px ui-monospace,Menlo,monospace;color:#6b7280;margin:0 0 18px;word-break:break-all}\ +h1{font-size:22px;line-height:1.3;margin:0 0 8px}.url{font:13px ui-monospace,Menlo,monospace;color:#6b7280;margin:0 0 18px;word-break:break-all}\ ul{margin:0 0 20px;padding-left:20px}li{margin:6px 0}h2{font-size:15px;margin:0 0 8px}\ -label.opt{display:block;border:1px solid #d9dce1;border-radius:10px;padding:10px 12px;margin:0 0 8px;cursor:pointer}\ -input:checked + label.opt{border-color:#2563eb;background:#eff4ff}label.opt small{display:block;color:#6b7280}input[type=radio]{margin-right:8px}\ -.pass{display:none;margin:0 0 8px 28px}input#enc:checked ~ .pass{display:block}\ -.pass input{display:block;width:100%;box-sizing:border-box;padding:8px;margin:4px 0;border:1px solid #c4c8cf;border-radius:8px;font-size:15px}\ -details{margin:0 0 20px}summary{cursor:pointer;color:#4b5563;font-size:14px}\ .row{display:flex;gap:10px;margin-top:6px}button{font:600 15px inherit;border-radius:9px;padding:10px 20px;border:1px solid #c4c8cf;background:#fff;cursor:pointer}\ button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fdecea;border:1px solid #f5b5af;color:#8a1c14;border-radius:8px;padding:8px 12px;margin:0 0 16px}\ .who{display:flex;align-items:center;gap:12px;margin:0 0 14px}.who strong{display:block;font-size:15px}.who small{color:#6b7280;font-size:13px}\ .icon{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#f4f5f7;border:1px solid #e5e7eb}.letter{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#4b5563}\ -.about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.scopes code{font-size:13px;color:#4b5563}\ +.about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.perms{list-style:none;padding:0;margin:0 0 6px}.perms li{padding:8px 0 8px 26px;position:relative;border-bottom:1px solid #f0f1f3}.perms li:before{content:'\\2713';position:absolute;left:4px;color:#2563eb;font-weight:700}.perms small{color:#9ca3af;font-size:12px;margin-left:6px}.also{color:#6b7280;font-size:13px;margin:0 0 6px}.lead{margin:0 0 14px;color:#374151}.status{display:flex;gap:10px;align-items:center;margin:14px 0 8px;min-height:30px}.status b{font-size:14px;font-weight:500}.dot{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700}.dot.ok{background:#16a34a}.dot.warn{background:#d97706}\ +.edit{margin-left:4px;font-size:13px;color:#2563eb;cursor:pointer;border:1px solid #c4c8cf;border-radius:7px;padding:2px 9px;opacity:0;transition:opacity .15s}.status:hover .edit,#store:focus-visible ~ .status .edit,#store:checked ~ .status .edit{opacity:1}@media (hover:none){.edit{opacity:1}}\ +.how{display:none;margin:0 0 8px;font-size:13px;color:#6b7280}#store:checked ~ .how{display:block}.how a{color:#2563eb}.small a{color:#6b7280}\ .tog{position:absolute;opacity:0;width:1px;height:1px}.extra{display:none;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}\ #info:checked ~ .extra{display:block}\ .help{margin-left:auto;align-self:center;width:34px;height:34px;box-sizing:border-box;border-radius:50%;border:1px solid #c4c8cf;color:#4b5563;display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer}\ #info:checked ~ .row .help{background:#eff4ff;border-color:#2563eb;color:#2563eb}\ .tog:focus-visible ~ .row .help{outline:2px solid #2563eb}\ -.q{margin:0 0 10px}.plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; +.plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; fn shell(title: &str, body: &str) -> String { format!("{}
      {body}
      ", escape(title)) } -/// The icon (or, without one, the first letter), the name the person gave it -/// and the links the server published. -fn identity(name: &str, url: &str, about: &About) -> String { +/// What the page calls the thing that asks: the tool's own name, said to be a +/// Claude Code add-on. +const APP: &str = "mcp-apps-cli"; + +/// The words of the page. Three candidates, until one is chosen. +// Only one is used until the choice is made. +#[allow(dead_code)] +#[derive(Clone, Copy, PartialEq, Debug)] +pub enum Version { + /// “Authorize”-style: who wants to use what, then what it can do. + One, + /// “Connect”-style: the question first, then the list. + Two, + /// Short and calm: log in, then the list. + Three, +} + +struct Words { + heading: String, + lead: String, + /// Above the list of permissions; empty when there is no list. + list_heading: String, + /// In place of the list, when the server names no permissions. + no_list: String, + go: String, + cancel: &'static str, +} + +fn words(version: Version, title: &str, with_list: bool) -> Words { + let t = title; + match version { + Version::One => Words { + heading: format!("{APP} wants to use your {t} account"), + lead: "A Claude Code add-on.".into(), + list_heading: "It will be able to:".into(), + no_list: format!("{t} lists what it can access on the next page."), + go: format!("Continue to {t}"), + cancel: "Cancel", + }, + Version::Two => Words { + heading: format!("Connect {t}?"), + lead: if with_list { format!("{APP}, a Claude Code add-on, wants to:") } else { format!("{APP}, a Claude Code add-on, wants to use your account.") }, + list_heading: String::new(), + no_list: format!("{t} lists what it can access on the next page."), + go: format!("Connect {t}"), + cancel: "Not now", + }, + Version::Three => Words { + heading: format!("Log in to {t}"), + lead: String::new(), + list_heading: format!("{APP}, a Claude Code add-on, will be able to:"), + no_list: format!("{APP}, a Claude Code add-on, will use your account."), + go: format!("Log in to {t}"), + cancel: "Cancel", + }, + } +} + +/// The icon (or, without one, the first letter) with the name and the web +/// address of the server, its description and the links it published. +fn identity(title: &str, url: &str, about: &About) -> String { let badge = match &about.icon { Some(icon) => format!("\"\"", escape(icon)), - None => format!("{}", escape(&name.chars().next().map(|c| c.to_uppercase().to_string()).unwrap_or_default())), + None => format!("{}", escape(&title.chars().next().map(|c| c.to_uppercase().to_string()).unwrap_or_default())), }; let host = url::Url::parse(url).ok().and_then(|u| u.host_str().map(str::to_string)).unwrap_or_default(); - let mut links = Vec::new(); - for (label, target) in [("Website", &about.website), ("Documentation", &about.docs), ("Privacy policy", &about.policy), ("Terms of service", &about.terms)] { - if let Some(target) = target { - links.push(format!("{label}", escape(target))); - } - } - let links = if links.is_empty() { String::new() } else { format!("

      {}

      ", links.join(" · ")) }; - let about_text = about.description.as_ref().map(|d| format!("

      {}

      ", escape(d))).unwrap_or_default(); - format!("
      {badge}
      {}{}
      {about_text}{links}", escape(name), escape(&host)) + format!("
      {badge}
      {}{}
      ", escape(title), escape(&host)) } -/// What the server lists as the permissions it asks for, as the server wrote -/// them; only the standard OpenID Connect words get a plain sentence. Without -/// a list, the page says so instead of guessing. -fn permissions(about: &About) -> String { - if about.scopes.is_empty() { - return "

      Permissions

      This server does not say which permissions it asks for. Its own sign-in page, next, shows them.

      ".to_string(); +/// A permission in everyday words, when its name says it: the standard +/// OpenID Connect ones, and the common `thing:read`, `write`, `thing.delete` +/// forms. None: the server's word is shown as it is. +fn plain(scope: &str, title: &str) -> Option { + match scope { + "openid" => return Some("Confirm who you are".into()), + "email" => return Some("See your email address".into()), + "profile" => return Some("See your name and profile".into()), + "offline_access" => return Some("Stay logged in".into()), + _ => {} + } + let parts: Vec<&str> = scope.split([':', '.', '/', '_', '-']).filter(|p| !p.is_empty()).collect(); + let (verb, object) = parts.split_last()?; + let verb = match *verb { + "read" | "view" | "get" | "list" => "Read", + "write" | "edit" | "update" | "create" => "Edit", + "delete" => "Delete", + "admin" | "manage" => "Manage", + _ => return None, + }; + if object.iter().any(|o| !o.chars().all(|c| c.is_ascii_lowercase())) { + return None; } - let items: String = about - .scopes - .iter() - .map(|scope| match plain(scope) { - Some(sentence) => format!("
    • {sentence} {}
    • ", escape(scope)), - None => format!("
    • {}
    • ", escape(scope)), - }) - .collect(); - format!("

      Permissions the server lists

        {items}

      These are the server’s own words.

      ") + Some(if object.is_empty() { format!("{verb} your data in {title}") } else { format!("{verb} your {}", object.join(" ")) }) } -/// The standard OpenID Connect scopes in plain words. -fn plain(scope: &str) -> Option<&'static str> { - Some(match scope { - "openid" => "Confirm who you are.", - "email" => "See your email address.", - "profile" => "See your name and profile.", - "offline_access" => "Stay signed in without asking you again.", - _ => return None, - }) +/// The permissions as a list in everyday words, each with the server's own +/// word in small print; the ones that can't be put in words go on one line. +fn permissions(about: &About, title: &str, w: &Words) -> String { + if about.scopes.is_empty() { + return format!("

      {}

      ", escape(&w.no_list)); + } + let mut items = String::new(); + let mut raw = Vec::new(); + for scope in &about.scopes { + match plain(scope, title) { + Some(sentence) => items.push_str(&format!("
    • {}{}
    • ", escape(&sentence), escape(scope))), + None => raw.push(format!("{}", escape(scope))), + } + } + let heading = if w.list_heading.is_empty() { String::new() } else { format!("

      {}

      ", escape(&w.list_heading)) }; + let list = if items.is_empty() { String::new() } else { format!("
        {items}
      ") }; + let also = if raw.is_empty() { String::new() } else { format!("

      {} {}

      ", if items.is_empty() { "Access named" } else { "And" }, raw.join(", ")) }; + format!("{heading}{list}{also}") } /// The consent page for `name` at `url`; `kind` is where the login will be /// kept (a global setting, so the page only says it); `token` guards the /// form; `problem` is what went wrong with the last answer, if anything. -/// The explanations open with a “?” (a hidden checkbox and its label, no script). +/// The technical details open with a “?” (a hidden checkbox and its label, no script). pub fn page(name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { - render(false, name, url, about, kind, token, problem) + render(Version::One, false, name, url, about, kind, token, problem) } -/// The page; `open` shows the explanations (the previews use it). -pub fn render(open: bool, name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { +/// The page in `version`; `open` shows the details (the previews use it). +// The version argument goes once one is chosen. +#[allow(clippy::too_many_arguments)] +pub fn render(version: Version, open: bool, name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { let title = about.title.as_deref().unwrap_or(name); - let heading = escape(title); - let identity = identity(name, url, about); - let asks = permissions(about); - let (name, url, token) = (escape(name), escape(url), escape(token)); + let w = words(version, title, !about.scopes.is_empty()); + let identity = identity(title, url, about); + let perms = permissions(about, title, &w); + let (url, name_html, token) = (escape(url), escape(name), escape(token)); let error = problem.map(|p| format!("

      {}

      ", escape(p))).unwrap_or_default(); let checked = if open || problem.is_some() { " checked" } else { "" }; - let (keeps, saved) = match kind { - Kind::Keychain => ("Saved in the macOS Keychain.", "in the macOS Keychain, the safe place where your Mac keeps passwords"), - Kind::Encrypted => ("Saved in a file protected by your passphrase.", "in a file protected by your passphrase"), - Kind::File => ("Saved in a plain file, not encrypted.", "in a plain file, which is not encrypted"), + // A passphrase-locked file is as safe as the Keychain (the same strong encryption), so it is + // green too; only the plain file is a warning. + let (good, headline) = match kind { + Kind::Keychain => (true, "Saved securely on this Mac"), + Kind::Encrypted => (true, "Locked with your passphrase"), + Kind::File => (false, "Not encrypted"), }; - let good = format!( - "

      Good to know

      • Its own sign-in. It is separate from the one Claude Code uses: Claude Code doesn’t list it and can’t cancel it.
      • \ -
      • Kept on this computer, {saved}.
      • \ -
      • Remove it any time. Type mcp-apps-cli-helper signout {name} in a terminal and it is gone.
      \ -

      To change where logins are saved (for every server), set MCP_APPS_CLI_TOKEN_STORE to keychain, encrypted or file before signing in.

      " + let status = format!( + "
      {}{headline}
      ", + if good { "ok" } else { "warn" }, + if good { "\u{2713}" } else { "!" } ); - let buttons = ""; - let help = ""; - let more = format!("

      More: README, “Own sign-in”

      ", crate::oauth::MORE); + let mut links = Vec::new(); + for (label, target) in [("Website", &about.website), ("Documentation", &about.docs), ("Privacy policy", &about.policy), ("Terms of service", &about.terms)] { + if let Some(target) = target { + links.push(format!("{label}", escape(target))); + } + } + let links = if links.is_empty() { String::new() } else { format!("
    • {}
    • ", links.join(" · ")) }; + let lead = if w.lead.is_empty() { String::new() } else { format!("

      {}

      ", escape(&w.lead)) }; + let about_text = about.description.as_ref().map(|d| format!("
    • {}
    • ", escape(d))).unwrap_or_default(); + let details = format!( + "
        {about_text}
      • Separate from Claude Code’s own login: it doesn’t list or cancel it.
      • \ +
      • To disconnect: mcp-apps-cli-helper signout {name_html}
      • {links}\ +
      • {url}
      " + ); + let help = ""; let body = format!( - "{error}{identity}

      Sign in to “{heading}”?

      {url}

      {asks}\ -

      Next, you sign in on the server’s own page. {keeps}

      \ -
      \ -
      {buttons}{help}
      {good}
      {more}" + "{error}{identity}

      {}

      {lead}{perms}\ +
      \ + {status}\ +

      To change: set MCP_APPS_CLI_TOKEN_STORE · README

      \ +
      {help}
      \ +
      {details}
      ", + escape(&w.heading), + escape(&w.go), + w.cancel, + more = crate::oauth::MORE ); - shell(&format!("Sign in to {title}?"), &body) + shell(&w.heading, &body) } -pub fn refused_page(name: &str) -> String { - shell("Not signed in", &format!("

      Not signed in

      Nothing was kept for “{}”. You can close this tab.

      ", escape(name))) +pub fn refused_page(_name: &str) -> String { + shell("Cancelled", "

      Cancelled

      Nothing was connected. You can close this tab.

      ") } pub fn done_page() -> String { - shell("Signed in", "

      Signed in

      You can close this tab and go back to the terminal.

      ") + shell("You’re connected", "

      You’re connected

      You can close this tab and go back to where you started.

      ") } #[cfg(test)] mod tests { use super::*; - // What the person is shown: the server, the explanations, where the login goes, both buttons, nothing injected. + fn full() -> About { + About { + title: Some("Docs ".into()), + description: Some("Search \"docs\"".into()), + website: Some("https://docs.example/".into()), + icon: Some("data:image/png;base64,AAAA".into()), + policy: Some("https://docs.example/privacy?a=1&b=2".into()), + terms: Some("https://docs.example/terms".into()), + scopes: vec!["docs:read".into(), "openid".into(), "default".into(), "x", "http://127.0.0.1:1/mcp?a=1&b=2", &About::default(), Kind::Keychain, "tok", Some("two different")); - for needle in ["separate", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "MCP_APPS_CLI_TOKEN_STORE", "Saved in the macOS Keychain.", "a=1&b=2"] { + for needle in ["Separate from Claude Code", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Continue to de"mo<b>", "Cancel", "MCP_APPS_CLI_TOKEN_STORE", "Saved securely on this Mac", "a=1&b=2"] { assert!(html.contains(needle), "{needle}"); } assert!(!html.contains("de") && !html.contains("different") && !html.contains("D<", "m.example", "does not say which permissions"] { + for needle in ["wants to use your docs account", "class=\"icon letter\">D<", "m.example", "lists what it can access on the next page"] { assert!(html.contains(needle), "{needle}"); } - assert!(!html.contains("Search"), "{html}"); } - // With metadata: title, icon, site, links, permissions in the server's words; everything escaped. + // With metadata: title, icon, description, links, permissions in everyday words with the server's own word in small print. #[test] fn with_metadata_the_page_shows_who_it_is_and_what_it_asks() { - let about = About { - title: Some("Docs ".into()), - description: Some("Search \"docs\"".into()), - website: Some("https://docs.example/".into()), - icon: Some("data:image/png;base64,AAAA".into()), - policy: Some("https://docs.example/privacy?a=1&b=2".into()), - terms: Some("https://docs.example/terms".into()), - scopes: vec!["read".into(), "openid".into(), "xread", "Confirm who you are.", "x<y", "signout docs"] { + let html = page("docs", "https://m.example/mcp", &full(), Kind::Keychain, "t", None); + for needle in ["Docs <Pro>", "Search "docs"", "href=\"https://docs.example/\"", "Privacy policy", "Terms of service", "a=1&b=2", "Read your docsdocs:read", "Confirm who you areopenid", "default, x<y", "signout docs"] { assert!(html.contains(needle), "{needle}\n{html}"); } assert!(!html.contains("") && !html.contains("", ".edit{opacity:1!important}")).unwrap(); } + let html = render(Version::One, false, "docs", "https://mcp.acme.example/mcp", &about, Kind::Keychain, "tok", None); + std::fs::write(format!("{dir}/etat-edit-ouvert.html"), html.replace("id=\"store\">", "id=\"store\" checked>")).unwrap(); } } diff --git a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs index 07bd762a..5dc75f4c 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs +++ b/polyfills/apps/claude-code/helper-rs/tests/oauth-server.mjs @@ -47,14 +47,14 @@ if (process.argv[2] === "consent") { const [, , , pageUrl, action] = process.argv; const page = await fetch(pageUrl); const html = await page.text(); - for (const needle of ["separate", "mcp-apps-cli-helper signout", "Accept", "Refuse", "MCP_APPS_CLI_TOKEN_STORE"]) { + for (const needle of ["Separate from Claude Code", "mcp-apps-cli-helper signout", "Continue to", "Cancel", "MCP_APPS_CLI_TOKEN_STORE"]) { if (!html.includes(needle)) { console.log(`the page lacks "${needle}"`); process.exit(2); } } - console.log(`page ${page.status} ${page.headers.get("content-security-policy")?.includes("default-src 'none'") ? "csp" : "no-csp"} saved:${/Saved in the macOS Keychain/.test(html) ? "keychain" : /Saved in a file protected/.test(html) ? "encrypted" : /Saved in a plain file/.test(html) ? "file" : "unsaid"} ${/name="store"|name="passphrase"/.test(html) ? "has-store-choice" : "no-store-choice"}`); - console.log(`about ${/Permissions the server lists/.test(html) ? "scopes" : "no-scopes"} ${/ @@ -67,7 +67,7 @@ if (process.argv[2] === "consent") { } const answered = await post({ t: token, decision: action }); const text = await answered.text(); - console.log(`answered ${answered.status} ${text.includes("Not signed in") ? "refused" : text.includes("Signed in") ? "signed-in" : text.slice(0, 200)}`); + console.log(`answered ${answered.status} ${text.includes("Nothing was connected") ? "refused" : text.includes("connected") ? "signed-in" : text.slice(0, 200)}`); process.exit(0); } From a3c480808e858d736c6aa3bae0055ca7012d2563 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:26:27 +0100 Subject: [PATCH 10/21] mcp-apps-cli helper: changing the store setting leaves one login A login made before MCP_APPS_CLI_TOKEN_STORE changed is still found (the store that is set is tried first, then the others; "file" no longer hides the rest). `signout` revokes and deletes the login in every store that holds it, and a new sign-in revokes and removes the same server's login kept in another store (one that can't be opened, an encrypted file without its passphrase, is left and said). --- .../apps/claude-code/helper-rs/src/mcp.rs | 1 + .../apps/claude-code/helper-rs/src/oauth.rs | 42 ++++++++++++++---- .../apps/claude-code/helper-rs/src/vault.rs | 44 +++++++++++++++---- .../apps/claude-code/helper-rs/tests/gate.rs | 42 ++++++++++++++++++ 4 files changed, 113 insertions(+), 16 deletions(-) diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 9a4a8bc3..002fb41f 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -735,6 +735,7 @@ mod tests { unsafe { std::env::set_var("MCP_APPS_CLI_OAUTH_DIR", dir.join("tokens")); std::env::set_var("MCP_APPS_CLI_TOKEN_STORE", "file"); + std::env::set_var("MCP_APPS_CLI_TEST_NO_KEYCHAIN", "1"); } let view = json!({"uri": "ui://demo/view.html"}); let modes = ["modern", "legacy", "dual", "open"]; diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index ab4aec34..0caaafb2 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -406,7 +406,10 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { }) .await?; match place { - Some(place) => signed_in(name, &place), + Some(place) => { + signed_in(name, &place); + retire_others(name, &url, &place).await; + } None => println!("Not signed in to {name}."), } return Ok(()); @@ -454,6 +457,7 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { }) .await?; signed_in(name, &place); + retire_others(name, &url, &place).await; Ok(()) } @@ -490,19 +494,41 @@ async fn revoke(name: &str, url: &str, place: &Place) -> String { /// `mcp-apps-cli-helper signout [--mcp-config …] [--cwd …]` pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { let (name, url) = target(&args, words)?; - let Some(place) = vault::kept(&name, &url) else { + // Wherever it is kept: a login made before the store setting changed counts too. + let places = vault::all_kept(&name, &url); + if places.is_empty() { println!("Not signed in to {name}: nothing to delete."); return Ok(()); - }; - println!("{}", revoke(&name, &url, &place).await); - place.delete().map_err(|why| anyhow!("deleting the tokens from {}: {why}", place.describe()))?; - match &place { - Place::File(path) | Place::Encrypted(path, _) => println!("Deleted {}", path.display()), - Place::Keychain(_) => println!("Removed the tokens from the macOS Keychain."), + } + for place in places { + println!("{}", revoke(&name, &url, &place).await); + place.delete().map_err(|why| anyhow!("deleting the tokens from {}: {why}", place.describe()))?; + match &place { + Place::File(path) | Place::Encrypted(path, _) => println!("Deleted {}", path.display()), + Place::Keychain(_) => println!("Removed the tokens from the macOS Keychain."), + } } Ok(()) } +/// After a sign-in into `kept`: the same server's login kept anywhere else +/// (made before the store setting changed) is revoked and removed, so one +/// login is active. One that can't be opened (an encrypted file without its +/// passphrase) is left alone, and said. +async fn retire_others(name: &str, url: &str, kept: &Place) { + for place in vault::all_kept(name, url).into_iter().filter(|p| p.kind() != kept.kind()) { + if let Err(why) = place.read() { + println!("An earlier login in the {} was left in place: {why:#}", place.short()); + continue; + } + let said = revoke(name, url, &place).await; + match place.delete() { + Ok(()) => println!("Removed the earlier login kept in the {}. {said}", place.short()), + Err(why) => println!("The earlier login in the {} could not be removed: {why:#}", place.short()), + } + } +} + fn open_browser(address: &str) { let (program, args): (&str, Vec<&str>) = if cfg!(target_os = "macos") { ("open", vec![address]) diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index 3e90e7fc..ea4930b4 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -36,7 +36,12 @@ impl Kind { /// Whether this machine can keep tokens that way (the first two: macOS only for now). pub fn available(self) -> bool { - self == Kind::File || cfg!(target_os = "macos") + match self { + Kind::File => true, + // MCP_APPS_CLI_TEST_NO_KEYCHAIN keeps the tests off the person's real Keychain. + Kind::Keychain => cfg!(target_os = "macos") && std::env::var_os("MCP_APPS_CLI_TEST_NO_KEYCHAIN").is_none(), + Kind::Encrypted => cfg!(target_os = "macos"), + } } } @@ -152,14 +157,27 @@ impl Place { } } -/// Where a sign-in to one server at one url is kept, if there is one: the -/// Keychain, then an encrypted file, then a plain file (unless only the file -/// store was asked for, as the tests do). -pub fn kept(name: &str, url: &str) -> Option { +/// The stores in the order they are tried: the one that is set, then the rest. +fn kinds_in_order(set: Option) -> Vec { + let mut kinds = vec![Kind::Keychain, Kind::Encrypted, Kind::File]; + if let Some(set) = set { + kinds.retain(|k| *k != set); + kinds.insert(0, set); + } + kinds +} + +/// Every place a sign-in to one server at one url is kept: the store that is +/// set first, then the others (Keychain, encrypted file, plain file), so a +/// login made before the setting was changed is still found. +pub fn all_kept(name: &str, url: &str) -> Vec { let passphrase = std::env::var(PASSPHRASE_ENV).ok(); - let file_only = std::env::var("MCP_APPS_CLI_TOKEN_STORE").is_ok_and(|v| v == "file"); - let kinds: &[Kind] = if file_only { &[Kind::File] } else { &[Kind::Keychain, Kind::Encrypted, Kind::File] }; - kinds.iter().filter(|k| k.available()).filter_map(|k| Place::of(*k, name, url, passphrase.clone())).find(Place::exists) + kinds_in_order(asked(&[]).ok().flatten()).iter().filter(|k| k.available()).filter_map(|k| Place::of(*k, name, url, passphrase.clone())).filter(Place::exists).collect() +} + +/// The place a sign-in is read from: the first of `all_kept`. +pub fn kept(name: &str, url: &str) -> Option { + all_kept(name, url).into_iter().next() } /// Refuses early, and says what to do, if `kind` can't be used here. @@ -445,4 +463,14 @@ mod tests { assert!(!place.exists()); place.delete().expect("deleting what is gone is not an error"); } + + // The stores are tried with the one that is set first, then the others in the usual order, + // so a login made before the setting changed is still found (and the plain-file setting hides nothing). + #[test] + fn the_set_store_is_tried_first_and_the_others_after_it() { + assert_eq!(kinds_in_order(None), [Kind::Keychain, Kind::Encrypted, Kind::File]); + assert_eq!(kinds_in_order(Some(Kind::Keychain)), [Kind::Keychain, Kind::Encrypted, Kind::File]); + assert_eq!(kinds_in_order(Some(Kind::Encrypted)), [Kind::Encrypted, Kind::Keychain, Kind::File]); + assert_eq!(kinds_in_order(Some(Kind::File)), [Kind::File, Kind::Keychain, Kind::Encrypted]); + } } diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 02c07bcd..7081b436 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -220,6 +220,7 @@ impl Helper { .env("MCP_APPS_CLI_STORAGE_DIR", "off") // Where sign-ins are kept: a file, so no test touches the person's keychain. .env("MCP_APPS_CLI_OAUTH_DIR", world.root.join("tokens")) + .env("MCP_APPS_CLI_TEST_NO_KEYCHAIN", "1") .envs(vars.iter().copied()); // What Windows itself needs to start programs and open sockets (node // among them), and the transport a run asks for. @@ -679,6 +680,7 @@ fn terminal_with(w: &World, args: &[&str], file_store: bool) -> Command { .env("USERPROFILE", w.root.join("home")) .env("MCP_APPS_CLI_OAUTH_DIR", w.root.join("tokens")) .env("MCP_APPS_CLI_NO_BROWSER", "1") + .env("MCP_APPS_CLI_TEST_NO_KEYCHAIN", "1") .stdin(Stdio::null()); if file_store { command.env("MCP_APPS_CLI_TOKEN_STORE", "file"); @@ -877,6 +879,46 @@ fn the_consent_page_shows_what_the_server_publishes_and_falls_back_without_it() } } +// Changing the store setting after signing in: the earlier login is still used, +// signing in again under the new setting moves it (one login left, the old one +// revoked), and `signout` removes a login wherever it is, in every store. +#[cfg(target_os = "macos")] +#[test] +fn changing_the_store_setting_keeps_one_login_and_signout_removes_every_copy() { + let w = World::new("store-change"); + let server = OAuthServer::start(&w, "modern"); + let requests = || std::fs::read_to_string(w.marker("oauth-requests")).unwrap_or_default(); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let tokens = || -> Vec { std::fs::read_dir(w.root.join("tokens")).map(|d| d.flatten().map(|e| e.file_name().to_string_lossy().to_string()).collect()).unwrap_or_default() }; + let browser_signed_in = |env: &[(&str, &str)], file_store: bool| { + let (mut child, page, _lines) = browser_signin_with(&w, file_store, env); + let (ok, said) = browser_plays(&page, &["accept"]); + assert!(ok && said.contains("answered 200 signed-in"), "{said}"); + assert!(child.wait().unwrap().success()); + }; + // 1. A plain-file login, then the setting changes to the encrypted file: the old login is still read. + browser_signed_in(&[], true); + assert_eq!(tokens().len(), 1, "{:?}", tokens()); + let later = w.discover_with(&["docs"], true, &[("MCP_APPS_CLI_TOKEN_STORE", "encrypted"), ("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")]); + let (_, docs) = later.iter().find(|(n, _)| n == "docs").unwrap(); + assert_eq!(docs["ok"], true, "the earlier login is not read after the setting changed: {docs}"); + // 2. Signing in again under the new setting: one login left, in the new store, the old one revoked. + let before = requests().matches("POST /revoke").count(); + browser_signed_in(&[("MCP_APPS_CLI_TOKEN_STORE", "encrypted"), ("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")], false); + let left = tokens(); + assert!(left.len() == 1 && left[0].ends_with(".enc"), "{left:?}"); + // One revoke asks twice (the refresh token, then the access token). + assert_eq!(requests().matches("POST /revoke").count(), before + 2, "the earlier login was not revoked: {}", requests()); + // 3. A login in two stores (a plain copy planted beside the encrypted one): `signout` removes both. + let enc = w.root.join("tokens").join(&left[0]); + std::fs::copy(&enc, w.root.join("tokens").join(left[0].trim_end_matches(".enc"))).unwrap(); + assert_eq!(tokens().len(), 2); + let out = terminal_with(&w, &["signout", "docs"], false).env("MCP_APPS_CLI_PASSPHRASE", "correct horse battery").output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(out.status.success() && said.matches("Deleted ").count() == 2, "{said}"); + assert!(tokens().is_empty(), "{:?}", tokens()); +} + // An encrypted store set globally without the passphrase: `signin` says what // to set before it shows any page. #[cfg(target_os = "macos")] From 9ae8fbb3a75031f7ecaf4db41d5a187ad7be8ce7 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:26:27 +0100 Subject: [PATCH 11/21] mcp-apps-cli helper: the terminal shows the page's summary `signin --no-browser` (and the summary `--yes` prints) draws the same structure as the page, by hand with ANSI colours (off with NO_COLOR, TERM=dumb or no terminal): who asks, the permissions with a check and the server's word in grey, where the login is kept, then "Continue to [y/N/?]"; "?" shows the details. No is the default. --- polyfills/apps/claude-code/README.md | 6 +- polyfills/apps/claude-code/SECURITY.md | 2 +- .../apps/claude-code/helper-rs/src/ask.rs | 137 ++++++++++++++++++ .../apps/claude-code/helper-rs/src/consent.rs | 37 +++-- .../apps/claude-code/helper-rs/src/main.rs | 1 + .../apps/claude-code/helper-rs/src/oauth.rs | 45 +++--- .../apps/claude-code/helper-rs/tests/gate.rs | 60 ++++++-- .../claude-code/helper-rs/tests/pty-run.py | 38 +++++ 8 files changed, 271 insertions(+), 55 deletions(-) create mode 100644 polyfills/apps/claude-code/helper-rs/src/ask.rs create mode 100644 polyfills/apps/claude-code/helper-rs/tests/pty-run.py diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index ae11c44f..031d3dd0 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -213,8 +213,10 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. disconnect, the server's links). The buttons say what happens ("Continue to ", "Cancel"); Accept goes on to the server's own sign-in in the same tab, Refuse keeps nothing. Without a - browser, `--no-browser` asks the same in the terminal (`Continue? [y/N]`, - no by default; without a terminal it refuses). To skip the question and the + browser, `--no-browser` shows the same in the terminal (the summary, with + colours where the terminal takes them and none when `NO_COLOR` is set, then + `Continue to [y/N/?]`: no by default, `?` shows the details; without + a terminal it refuses). To skip the question and the page, pass `--yes`, or set `MCP_APPS_CLI_SIGNIN_YES=1` in your environment to skip them every time (a terminal can't read `/config`); only do that for servers you have already decided to sign in to. Where logins are diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index c48c6ce3..67ccd175 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -105,7 +105,7 @@ organisation's MCP sign-in settings don't see. Before anything is kept, the person answers a consent page the helper serves on a loopback address of its own (a random port, a token against forged requests, a check of the `Host` and `Origin` headers, closed after the answer or after five minutes), or, with -`--no-browser`, a `y/N` question in the terminal. The tokens, and the client +`--no-browser`, the same summary and a `y/N/?` question in the terminal. The tokens, and the client the server registered, are kept where the person set (one global setting, `MCP_APPS_CLI_TOKEN_STORE`): the macOS Keychain (called directly through Security.framework; the default), or a file encrypted with a passphrase (AES-256-GCM, key from PBKDF2-HMAC-SHA256 with 600,000 diff --git a/polyfills/apps/claude-code/helper-rs/src/ask.rs b/polyfills/apps/claude-code/helper-rs/src/ask.rs new file mode 100644 index 00000000..99cb50bb --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/src/ask.rs @@ -0,0 +1,137 @@ +//! The terminal's version of the consent page (`signin --no-browser`, and the +//! summary `--yes` prints): the same structure and words as the page (consent.rs), +//! drawn with plain characters and, where the terminal takes them, ANSI colours. +//! No library: a few escape codes by hand. + +use std::io::IsTerminal; + +use crate::about::About; +use crate::consent::{self, APP, Version}; +use crate::vault::Kind; + +/// Colours only on a real terminal, and never when `NO_COLOR` is set (no-color.org) or the terminal is "dumb". +pub fn color_on() -> bool { + std::io::stdout().is_terminal() && std::env::var_os("NO_COLOR").is_none_or(|v| v.is_empty()) && std::env::var("TERM").is_ok_and(|t| t != "dumb") +} + +struct Paint(bool); + +impl Paint { + fn wrap(&self, code: &str, text: &str) -> String { + if self.0 { format!("\x1b[{code}m{text}\x1b[0m") } else { text.to_string() } + } + fn bold(&self, t: &str) -> String { + self.wrap("1", t) + } + fn green(&self, t: &str) -> String { + self.wrap("32", t) + } + fn amber(&self, t: &str) -> String { + self.wrap("33", t) + } + fn dim(&self, t: &str) -> String { + self.wrap("90", t) + } +} + +/// The summary: who, what for, what it will be able to do, where the login is saved. +pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> String { + let p = Paint(color); + let title = about.title.as_deref().unwrap_or(name); + let w = consent::words(Version::One, title, !about.scopes.is_empty()); + let host = url::Url::parse(url).ok().and_then(|u| u.host_str().map(str::to_string)).unwrap_or_default(); + let mut out = format!("\n {} {}\n\n {}\n {}\n\n", p.bold(title), p.dim(&host), p.bold(&w.heading), w.lead); + if about.scopes.is_empty() { + out.push_str(&format!(" {}\n\n", w.no_list)); + } else { + out.push_str(&format!(" {}\n", w.list_heading)); + let mut known = Vec::new(); + let mut raw = Vec::new(); + for scope in &about.scopes { + match consent::plain(scope, title) { + Some(sentence) => known.push((sentence, scope.as_str())), + None => raw.push(scope.as_str()), + } + } + let width = known.iter().map(|(s, _)| s.chars().count()).max().unwrap_or(0); + for (sentence, scope) in known { + out.push_str(&format!(" {} {}{} {}\n", p.green("\u{2713}"), sentence, " ".repeat(width - sentence.chars().count()), p.dim(scope))); + } + if !raw.is_empty() { + out.push_str(&format!(" {}\n", p.dim(&format!("{} {}", if out.matches('\u{2713}').count() > 0 { "And" } else { "Access named" }, raw.join(", "))))); + } + out.push('\n'); + } + let (good, headline) = consent::storage_status(kind); + out.push_str(&format!(" {} {}\n", if good { p.green("\u{2713}") } else { p.amber("\u{26A0}") }, if good { headline.to_string() } else { p.amber(headline) })); + out +} + +/// What the "?" shows: the same details as the page's "?". +pub fn details(name: &str, url: &str, about: &About, color: bool) -> String { + let p = Paint(color); + let mut out = String::new(); + if let Some(d) = &about.description { + out.push_str(&format!(" \u{2022} {d}\n")); + } + out.push_str(&format!(" \u{2022} Separate from Claude Code's own login: it doesn't list or cancel it.\n \u{2022} To disconnect: {}\n", p.bold(&format!("mcp-apps-cli-helper signout {name}")))); + out.push_str(&format!(" \u{2022} To change where it is saved: set {}\n", p.bold("MCP_APPS_CLI_TOKEN_STORE"))); + for (label, target) in [("Website", &about.website), ("Documentation", &about.docs), ("Privacy policy", &about.policy), ("Terms of service", &about.terms)] { + if let Some(target) = target { + out.push_str(&format!(" \u{2022} {label}: {target}\n")); + } + } + out.push_str(&format!(" \u{2022} {}\n", p.dim(url))); + out +} + +/// The question: the button's words, then the answers (no is the default). +pub fn question(name: &str, about: &About) -> String { + let title = about.title.as_deref().unwrap_or(name); + format!("\n {} [y/N/?] ", consent::words(Version::One, title, !about.scopes.is_empty()).go) +} + +/// What the one-line mention of the app says when the question is skipped (`--yes`). +pub fn disconnect_hint(name: &str) -> String { + format!(" To disconnect: mcp-apps-cli-helper signout {name} ({APP})") +} + +#[cfg(test)] +mod tests { + use super::*; + + fn about() -> About { + About { + title: Some("Acme Docs".into()), + description: Some("Search the Acme documentation.".into()), + website: Some("https://acme.example/".into()), + scopes: vec!["docs:read".into(), "docs:write".into(), "openid".into(), "default".into()], + ..About::default() + } + } + + // The summary has the page's structure; without colour it is plain text, with colour it has escape codes. + #[test] + fn the_screen_has_the_pages_structure_with_or_without_colour() { + let plain = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::Keychain, false); + for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "And default", "\u{2713} Saved securely on this Mac"] { + assert!(plain.contains(needle), "{needle}\n{plain}"); + } + assert!(!plain.contains('\x1b'), "{plain:?}"); + let coloured = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::File, true); + assert!(coloured.contains("\x1b[32m\u{2713}") && coloured.contains("\x1b[33m\u{26A0}") && coloured.contains("Not encrypted"), "{coloured:?}"); + // Nothing published: the title is the name, and a plain line stands for the list. + let bare = screen("docs", "https://m.example/mcp", &About::default(), Kind::Encrypted, false); + assert!(bare.contains("wants to use your docs account") && bare.contains("lists what it can access on the next page") && bare.contains("Locked with your passphrase"), "{bare}"); + } + + // The "?" block holds everything technical, and the question names where "Continue" goes. + #[test] + fn the_details_and_the_question() { + let d = details("docs", "https://mcp.acme.example/mcp", &about(), false); + for needle in ["Search the Acme documentation.", "Separate from Claude Code's own login", "mcp-apps-cli-helper signout docs", "MCP_APPS_CLI_TOKEN_STORE", "Website: https://acme.example/", "https://mcp.acme.example/mcp"] { + assert!(d.contains(needle), "{needle}\n{d}"); + } + assert_eq!(question("docs", &about()).trim(), "Continue to Acme Docs [y/N/?]"); + } +} diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 5d3e1895..520622a8 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -36,7 +36,7 @@ fn shell(title: &str, body: &str) -> String { /// What the page calls the thing that asks: the tool's own name, said to be a /// Claude Code add-on. -const APP: &str = "mcp-apps-cli"; +pub const APP: &str = "mcp-apps-cli"; /// The words of the page. Three candidates, until one is chosen. // Only one is used until the choice is made. @@ -51,18 +51,18 @@ pub enum Version { Three, } -struct Words { - heading: String, - lead: String, +pub struct Words { + pub heading: String, + pub lead: String, /// Above the list of permissions; empty when there is no list. - list_heading: String, + pub list_heading: String, /// In place of the list, when the server names no permissions. - no_list: String, - go: String, - cancel: &'static str, + pub no_list: String, + pub go: String, + pub cancel: &'static str, } -fn words(version: Version, title: &str, with_list: bool) -> Words { +pub fn words(version: Version, title: &str, with_list: bool) -> Words { let t = title; match version { Version::One => Words { @@ -106,7 +106,7 @@ fn identity(title: &str, url: &str, about: &About) -> String { /// A permission in everyday words, when its name says it: the standard /// OpenID Connect ones, and the common `thing:read`, `write`, `thing.delete` /// forms. None: the server's word is shown as it is. -fn plain(scope: &str, title: &str) -> Option { +pub fn plain(scope: &str, title: &str) -> Option { match scope { "openid" => return Some("Confirm who you are".into()), "email" => return Some("See your email address".into()), @@ -149,6 +149,17 @@ fn permissions(about: &About, title: &str, w: &Words) -> String { format!("{heading}{list}{also}") } +/// The storage line: whether it is fine (a green check) or a warning, and its words. A +/// passphrase-locked file is as safe as the Keychain (the same strong encryption), so it is +/// green too; only the plain file is a warning. +pub fn storage_status(kind: Kind) -> (bool, &'static str) { + match kind { + Kind::Keychain => (true, "Saved securely on this Mac"), + Kind::Encrypted => (true, "Locked with your passphrase"), + Kind::File => (false, "Not encrypted"), + } +} + /// The consent page for `name` at `url`; `kind` is where the login will be /// kept (a global setting, so the page only says it); `token` guards the /// form; `problem` is what went wrong with the last answer, if anything. @@ -170,11 +181,7 @@ pub fn render(version: Version, open: bool, name: &str, url: &str, about: &About let checked = if open || problem.is_some() { " checked" } else { "" }; // A passphrase-locked file is as safe as the Keychain (the same strong encryption), so it is // green too; only the plain file is a warning. - let (good, headline) = match kind { - Kind::Keychain => (true, "Saved securely on this Mac"), - Kind::Encrypted => (true, "Locked with your passphrase"), - Kind::File => (false, "Not encrypted"), - }; + let (good, headline) = storage_status(kind); let status = format!( "
      {}{headline}
      ", if good { "ok" } else { "warn" }, diff --git a/polyfills/apps/claude-code/helper-rs/src/main.rs b/polyfills/apps/claude-code/helper-rs/src/main.rs index 1c57096a..1508d3c0 100644 --- a/polyfills/apps/claude-code/helper-rs/src/main.rs +++ b/polyfills/apps/claude-code/helper-rs/src/main.rs @@ -9,6 +9,7 @@ mod fetch_browser; mod config; mod mcp; mod about; +mod ask; mod consent; mod oauth; mod vault; diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index 0caaafb2..78a0e3fa 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -351,16 +351,6 @@ fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { /// What the terminal says before its y/N question (the fallback to the /// consent page): plain words, one idea a line. -fn notice(name: &str, url: &str, place: &Place) -> String { - format!( - "Sign in to \"{name}\" ({url}) for this helper only (Claude Code's own sign-in is not used).\n\ - \x20 - What it does: gives the helper its own login to \"{name}\", kept in {}.\n\ - \x20 - What to know: Claude Code's `/mcp` and your organisation's MCP rules can't see or cancel it.\n\ - \x20 - To undo it: `mcp-apps-cli-helper signout {name}`\n\ - More: {MORE}\n", - place.describe() - ) -} fn flag(words: &[String], name: &str) -> bool { words.iter().any(|w| w == name) @@ -429,18 +419,29 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { passphrase = Some(first); } let place = Place::of(kind, name, &url, passphrase.clone()).context("no folder to keep the sign-in in")?; - println!("{}", notice(name, &url, &place)); - if !assumed { - if !std::io::stdin().is_terminal() { - bail!("signin asks a question: run it in a terminal, or pass --yes (or set MCP_APPS_CLI_SIGNIN_YES=1)"); - } - print!("Continue? [y/N] "); - std::io::stdout().flush()?; - let mut answer = String::new(); - std::io::stdin().lock().read_line(&mut answer)?; - if !matches!(answer.trim().to_ascii_lowercase().as_str(), "y" | "yes") { - println!("Not signed in to {name}."); - return Ok(()); + if !assumed && !std::io::stdin().is_terminal() { + bail!("signin asks a question: run it in a terminal, or pass --yes (or set MCP_APPS_CLI_SIGNIN_YES=1)"); + } + // What the server says about itself, shown like the page does (what is missing is left out). + let about = tokio::time::timeout(crate::about::BUDGET, crate::about::fetch(&url)).await.unwrap_or_default(); + let color = crate::ask::color_on(); + println!("{}", crate::ask::screen(name, &url, &about, kind, color)); + if assumed { + println!("{}", crate::ask::disconnect_hint(name)); + } else { + loop { + print!("{}", crate::ask::question(name, &about)); + std::io::stdout().flush()?; + let mut answer = String::new(); + let read = std::io::stdin().lock().read_line(&mut answer)?; + match answer.trim().to_ascii_lowercase().as_str() { + "y" | "yes" => break, + "?" if read > 0 => println!("\n{}", crate::ask::details(name, &url, &about, color)), + _ => { + println!("Not signed in to {name}."); + return Ok(()); + } + } } } println!(); diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 7081b436..7e89c426 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -737,8 +737,8 @@ fn the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_e } shown.push_str(&line); }; - assert!(shown.contains("its own login") && shown.contains("plain file") && shown.contains("signout docs") && shown.contains("More: https://"), "{serves}: {shown}"); - assert!(shown.lines().filter(|l| !l.trim().is_empty()).count() <= 5, "{serves}: the warning is longer than five lines: {shown}"); + assert!(shown.contains("wants to use your docs account") && shown.contains("Not encrypted") && shown.contains("signout docs") && !shown.contains('\x1b'), "{serves}: {shown}"); + assert!(shown.lines().filter(|l| !l.trim().is_empty()).count() <= 8, "{serves}: the summary is longer than eight lines: {shown}"); assert!(address.starts_with(&server.url.replace("/mcp", "/authorize?")), "{serves}: {address}"); let browsed = Command::new("node").arg(oauth_script()).args(["browse", &address]).output().unwrap(); assert!(browsed.status.success(), "{serves}: {}", String::from_utf8_lossy(&browsed.stdout)); @@ -879,6 +879,49 @@ fn the_consent_page_shows_what_the_server_publishes_and_falls_back_without_it() } } +// The terminal's version of the page (`--no-browser`), in a real terminal (a +// pseudo-terminal from tests/pty-run.py): the summary, the question, "?" shows the +// details and asks again, "n" keeps nothing. +#[cfg(target_os = "macos")] +#[test] +fn the_terminal_shows_the_summary_and_the_details_behind_a_question_mark() { + let w = World::new("terminal-ask"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let inner = terminal(&w, &["signin", "docs", "--no-browser"]); + let script = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests").join("pty-run.py"); + let mut command = Command::new("python3"); + command.args(["-I"]).arg(script).arg("?|n").arg("--").arg(inner.get_program()).args(inner.get_args()).env_clear().current_dir(&w.project); + for (key, value) in inner.get_envs() { + if let Some(value) = value { + command.env(key, value); + } + } + let out = command.output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + let first = said.find("[y/N/?]").expect(&said); + let second = said[first + 7..].find("[y/N/?]").expect(&said); + assert!(said.contains("wants to use your docs account") && said.contains("Not encrypted"), "{said}"); + // The details come after the first question and before the second. + let between = &said[first..first + 7 + second]; + assert!(between.contains("signout docs") && between.contains("MCP_APPS_CLI_TOKEN_STORE"), "{said}"); + assert!(said.contains("Not signed in to docs.") && !said.contains('\x1b'), "{said}"); + assert!(!w.root.join("tokens").exists(), "a refusal kept something"); +} + +// An encrypted store set globally without the passphrase: `signin` says what +// to set before it shows any page. +#[cfg(target_os = "macos")] +#[test] +fn an_encrypted_store_without_its_passphrase_is_refused_before_the_page() { + let w = World::new("encrypted-no-passphrase"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let out = terminal_with(&w, &["signin", "docs"], false).env("MCP_APPS_CLI_TOKEN_STORE", "encrypted").output().unwrap(); + let said = String::from_utf8_lossy(&out.stderr).to_string() + &String::from_utf8_lossy(&out.stdout); + assert!(!out.status.success() && said.contains("MCP_APPS_CLI_PASSPHRASE") && !said.contains("/consent"), "{said}"); +} + // Changing the store setting after signing in: the earlier login is still used, // signing in again under the new setting moves it (one login left, the old one // revoked), and `signout` removes a login wherever it is, in every store. @@ -919,19 +962,6 @@ fn changing_the_store_setting_keeps_one_login_and_signout_removes_every_copy() { assert!(tokens().is_empty(), "{:?}", tokens()); } -// An encrypted store set globally without the passphrase: `signin` says what -// to set before it shows any page. -#[cfg(target_os = "macos")] -#[test] -fn an_encrypted_store_without_its_passphrase_is_refused_before_the_page() { - let w = World::new("encrypted-no-passphrase"); - let server = OAuthServer::start(&w, "modern"); - w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); - let out = terminal_with(&w, &["signin", "docs"], false).env("MCP_APPS_CLI_TOKEN_STORE", "encrypted").output().unwrap(); - let said = String::from_utf8_lossy(&out.stderr).to_string() + &String::from_utf8_lossy(&out.stdout); - assert!(!out.status.success() && said.contains("MCP_APPS_CLI_PASSPHRASE") && !said.contains("/consent"), "{said}"); -} - // The encrypted file, from the page to a session's helper: the passphrase is // set in the page, nothing readable is on disk, a helper without the // passphrase says what to set, one with it discovers the app, and `signout` diff --git a/polyfills/apps/claude-code/helper-rs/tests/pty-run.py b/polyfills/apps/claude-code/helper-rs/tests/pty-run.py new file mode 100644 index 00000000..83a9a343 --- /dev/null +++ b/polyfills/apps/claude-code/helper-rs/tests/pty-run.py @@ -0,0 +1,38 @@ +# Runs a command in a pseudo-terminal and answers its questions, for the tests that +# need a real terminal. Standard library only; run with `python3 -I`. +# python3 -I pty-run.py "answer 1|answer 2|…" -- command args… +# Each answer is typed (with Enter) when the command shows its next "[y/N/?]" +# question; what the command printed is written to standard output. +import os +import pty +import select +import sys +import time + +answers = sys.argv[1].split("|") +command = sys.argv[3:] +pid, fd = pty.fork() +if pid == 0: + os.execvp(command[0], command) +out = b"" +sent = 0 +deadline = time.time() + 30 +while time.time() < deadline: + ready, _, _ = select.select([fd], [], [], 0.2) + if not ready: + continue + try: + data = os.read(fd, 4096) + except OSError: + break + if not data: + break + out += data + if out.count(b"[y/N/?]") > sent and sent < len(answers): + os.write(fd, (answers[sent] + "\n").encode()) + sent += 1 +try: + os.waitpid(pid, 0) +except ChildProcessError: + pass +sys.stdout.buffer.write(out) From 93b73f9be6d201d12e436618c4470cd7f7c9f955 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:26:27 +0100 Subject: [PATCH 12/21] mcp-apps-cli helper: a lock and a gear by the buttons The storage line goes: a quiet lock by the buttons says where the login is kept (closed for the Keychain or a passphrase-locked file, open and amber for a plain file, with a short tooltip), and a gear opens the details (where it is kept and how to change it, separate from Claude Code's own login, signout, the server's links). The terminal gets the same lock line. --- polyfills/apps/claude-code/README.md | 9 +- .../apps/claude-code/helper-rs/src/ask.rs | 27 +++- .../apps/claude-code/helper-rs/src/consent.rs | 144 +++++++----------- .../apps/claude-code/helper-rs/src/oauth.rs | 3 - 4 files changed, 81 insertions(+), 102 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index 031d3dd0..a3ba64b8 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -207,13 +207,14 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. when it gives them; what it does not publish is left out, and the icon is downloaded by the helper, never loaded by the page). It shows what the add-on will be able to do in everyday words (with the server's own permission names in small print), - where the login is saved (a green check for the Keychain or a passphrase-locked - file, a warning for a plain file; "Edit" tells how to change it), and has a - "?" for the details (it is separate from Claude Code's own login, how to + where the login is saved (a closed lock by the buttons for the + Keychain or a passphrase-locked file, an open amber one for a plain file; hover + for the words), and a gear that opens the details (where the login is kept and + how to change it, that it is separate from Claude Code's own login, how to disconnect, the server's links). The buttons say what happens ("Continue to ", "Cancel"); Accept goes on to the server's own sign-in in the same tab, Refuse keeps nothing. Without a - browser, `--no-browser` shows the same in the terminal (the summary, with + browser, `--no-browser` shows the same in the terminal (the summary with a lock line, in colours where the terminal takes them and none when `NO_COLOR` is set, then `Continue to [y/N/?]`: no by default, `?` shows the details; without a terminal it refuses). To skip the question and the diff --git a/polyfills/apps/claude-code/helper-rs/src/ask.rs b/polyfills/apps/claude-code/helper-rs/src/ask.rs index 99cb50bb..de214998 100644 --- a/polyfills/apps/claude-code/helper-rs/src/ask.rs +++ b/polyfills/apps/claude-code/helper-rs/src/ask.rs @@ -6,7 +6,7 @@ use std::io::IsTerminal; use crate::about::About; -use crate::consent::{self, APP, Version}; +use crate::consent::{self, APP}; use crate::vault::Kind; /// Colours only on a real terminal, and never when `NO_COLOR` is set (no-color.org) or the terminal is "dumb". @@ -38,7 +38,7 @@ impl Paint { pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> String { let p = Paint(color); let title = about.title.as_deref().unwrap_or(name); - let w = consent::words(Version::One, title, !about.scopes.is_empty()); + let w = consent::words(title); let host = url::Url::parse(url).ok().and_then(|u| u.host_str().map(str::to_string)).unwrap_or_default(); let mut out = format!("\n {} {}\n\n {}\n {}\n\n", p.bold(title), p.dim(&host), p.bold(&w.heading), w.lead); if about.scopes.is_empty() { @@ -63,7 +63,12 @@ pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> out.push('\n'); } let (good, headline) = consent::storage_status(kind); - out.push_str(&format!(" {} {}\n", if good { p.green("\u{2713}") } else { p.amber("\u{26A0}") }, if good { headline.to_string() } else { p.amber(headline) })); + // A closed lock, quiet, when it is fine; an open one with a warning sign when it is not. + if good { + out.push_str(&format!(" \u{1F512} {}\n", p.dim(headline))); + } else { + out.push_str(&format!(" \u{1F513} {}\n", p.amber(&format!("\u{26A0} {headline}")))); + } out } @@ -88,7 +93,7 @@ pub fn details(name: &str, url: &str, about: &About, color: bool) -> String { /// The question: the button's words, then the answers (no is the default). pub fn question(name: &str, about: &About) -> String { let title = about.title.as_deref().unwrap_or(name); - format!("\n {} [y/N/?] ", consent::words(Version::One, title, !about.scopes.is_empty()).go) + format!("\n {} [y/N/?] ", consent::words(title).go) } /// What the one-line mention of the app says when the question is skipped (`--yes`). @@ -114,12 +119,12 @@ mod tests { #[test] fn the_screen_has_the_pages_structure_with_or_without_colour() { let plain = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::Keychain, false); - for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "And default", "\u{2713} Saved securely on this Mac"] { + for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "And default", "\u{1F512} Saved securely on this Mac"] { assert!(plain.contains(needle), "{needle}\n{plain}"); } assert!(!plain.contains('\x1b'), "{plain:?}"); let coloured = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::File, true); - assert!(coloured.contains("\x1b[32m\u{2713}") && coloured.contains("\x1b[33m\u{26A0}") && coloured.contains("Not encrypted"), "{coloured:?}"); + assert!(coloured.contains("\x1b[32m\u{2713}") && coloured.contains("\x1b[33m\u{26A0} Not encrypted") && coloured.contains("\u{1F513}") && coloured.contains("Not encrypted"), "{coloured:?}"); // Nothing published: the title is the name, and a plain line stands for the list. let bare = screen("docs", "https://m.example/mcp", &About::default(), Kind::Encrypted, false); assert!(bare.contains("wants to use your docs account") && bare.contains("lists what it can access on the next page") && bare.contains("Locked with your passphrase"), "{bare}"); @@ -134,4 +139,14 @@ mod tests { } assert_eq!(question("docs", &about()).trim(), "Continue to Acme Docs [y/N/?]"); } + + // Writes the Keychain summary (with colour) as a text file in $CONSENT_PREVIEW_DIR, for a capture + // that doesn't touch the person's Keychain (the real binary probes it). + #[test] + #[ignore] + fn preview_the_keychain_summary() { + let dir = std::env::var("CONSENT_PREVIEW_DIR").expect("CONSENT_PREVIEW_DIR"); + let text = format!("{}{}n\n", screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::Keychain, true), question("docs", &about())); + std::fs::write(format!("{dir}/terminal-keychain.txt"), text).unwrap(); + } } diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 520622a8..1ae3d5e8 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -21,13 +21,10 @@ button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fd .who{display:flex;align-items:center;gap:12px;margin:0 0 14px}.who strong{display:block;font-size:15px}.who small{color:#6b7280;font-size:13px}\ .icon{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#f4f5f7;border:1px solid #e5e7eb}.letter{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#4b5563}\ .about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.perms{list-style:none;padding:0;margin:0 0 6px}.perms li{padding:8px 0 8px 26px;position:relative;border-bottom:1px solid #f0f1f3}.perms li:before{content:'\\2713';position:absolute;left:4px;color:#2563eb;font-weight:700}.perms small{color:#9ca3af;font-size:12px;margin-left:6px}.also{color:#6b7280;font-size:13px;margin:0 0 6px}.lead{margin:0 0 14px;color:#374151}.status{display:flex;gap:10px;align-items:center;margin:14px 0 8px;min-height:30px}.status b{font-size:14px;font-weight:500}.dot{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700}.dot.ok{background:#16a34a}.dot.warn{background:#d97706}\ -.edit{margin-left:4px;font-size:13px;color:#2563eb;cursor:pointer;border:1px solid #c4c8cf;border-radius:7px;padding:2px 9px;opacity:0;transition:opacity .15s}.status:hover .edit,#store:focus-visible ~ .status .edit,#store:checked ~ .status .edit{opacity:1}@media (hover:none){.edit{opacity:1}}\ -.how{display:none;margin:0 0 8px;font-size:13px;color:#6b7280}#store:checked ~ .how{display:block}.how a{color:#2563eb}.small a{color:#6b7280}\ +.tools{margin-left:auto;display:flex;gap:4px;align-self:center}.tool{position:relative;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280;cursor:pointer}.tool:hover,.tool:focus-visible{background:#f0f1f3;outline:none}.tool svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tool.warn{color:#c2791c}\ +.tool[data-tip]:hover:after,.tool[data-tip]:focus-visible:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);right:0;white-space:nowrap;background:#1f2937;color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;pointer-events:none}#info:checked ~ .row .gear{background:#f0f1f3;color:#1f2937}.tog:focus-visible ~ .row .gear{outline:2px solid #2563eb}\ .tog{position:absolute;opacity:0;width:1px;height:1px}.extra{display:none;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}\ #info:checked ~ .extra{display:block}\ -.help{margin-left:auto;align-self:center;width:34px;height:34px;box-sizing:border-box;border-radius:50%;border:1px solid #c4c8cf;color:#4b5563;display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer}\ -#info:checked ~ .row .help{background:#eff4ff;border-color:#2563eb;color:#2563eb}\ -.tog:focus-visible ~ .row .help{outline:2px solid #2563eb}\ .plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; fn shell(title: &str, body: &str) -> String { @@ -38,23 +35,11 @@ fn shell(title: &str, body: &str) -> String { /// Claude Code add-on. pub const APP: &str = "mcp-apps-cli"; -/// The words of the page. Three candidates, until one is chosen. -// Only one is used until the choice is made. -#[allow(dead_code)] -#[derive(Clone, Copy, PartialEq, Debug)] -pub enum Version { - /// “Authorize”-style: who wants to use what, then what it can do. - One, - /// “Connect”-style: the question first, then the list. - Two, - /// Short and calm: log in, then the list. - Three, -} - +/// The words of the page. pub struct Words { pub heading: String, pub lead: String, - /// Above the list of permissions; empty when there is no list. + /// Above the list of permissions. pub list_heading: String, /// In place of the list, when the server names no permissions. pub no_list: String, @@ -62,33 +47,14 @@ pub struct Words { pub cancel: &'static str, } -pub fn words(version: Version, title: &str, with_list: bool) -> Words { - let t = title; - match version { - Version::One => Words { - heading: format!("{APP} wants to use your {t} account"), - lead: "A Claude Code add-on.".into(), - list_heading: "It will be able to:".into(), - no_list: format!("{t} lists what it can access on the next page."), - go: format!("Continue to {t}"), - cancel: "Cancel", - }, - Version::Two => Words { - heading: format!("Connect {t}?"), - lead: if with_list { format!("{APP}, a Claude Code add-on, wants to:") } else { format!("{APP}, a Claude Code add-on, wants to use your account.") }, - list_heading: String::new(), - no_list: format!("{t} lists what it can access on the next page."), - go: format!("Connect {t}"), - cancel: "Not now", - }, - Version::Three => Words { - heading: format!("Log in to {t}"), - lead: String::new(), - list_heading: format!("{APP}, a Claude Code add-on, will be able to:"), - no_list: format!("{APP}, a Claude Code add-on, will use your account."), - go: format!("Log in to {t}"), - cancel: "Cancel", - }, +pub fn words(title: &str) -> Words { + Words { + heading: format!("{APP} wants to use your {title} account"), + lead: "A Claude Code add-on.".into(), + list_heading: "It will be able to:".into(), + no_list: format!("{title} lists what it can access on the next page."), + go: format!("Continue to {title}"), + cancel: "Cancel", } } @@ -160,33 +126,42 @@ pub fn storage_status(kind: Kind) -> (bool, &'static str) { } } +const LOCK: &str = ""; +const LOCK_OPEN: &str = ""; +const GEAR: &str = ""; + /// The consent page for `name` at `url`; `kind` is where the login will be -/// kept (a global setting, so the page only says it); `token` guards the -/// form; `problem` is what went wrong with the last answer, if anything. -/// The technical details open with a “?” (a hidden checkbox and its label, no script). +/// kept (a global setting, so the page only says it, with a lock); `token` +/// guards the form; `problem` is what went wrong with the last answer, if +/// anything. The details open with the gear (a hidden checkbox and its label, +/// no script). pub fn page(name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { - render(Version::One, false, name, url, about, kind, token, problem) + render(false, name, url, about, kind, token, problem) } -/// The page in `version`; `open` shows the details (the previews use it). -// The version argument goes once one is chosen. -#[allow(clippy::too_many_arguments)] -pub fn render(version: Version, open: bool, name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { +/// The page; `open` shows the details (the previews use it). +pub fn render(open: bool, name: &str, url: &str, about: &About, kind: Kind, token: &str, problem: Option<&str>) -> String { let title = about.title.as_deref().unwrap_or(name); - let w = words(version, title, !about.scopes.is_empty()); + let w = words(title); let identity = identity(title, url, about); let perms = permissions(about, title, &w); let (url, name_html, token) = (escape(url), escape(name), escape(token)); let error = problem.map(|p| format!("

      {}

      ", escape(p))).unwrap_or_default(); let checked = if open || problem.is_some() { " checked" } else { "" }; - // A passphrase-locked file is as safe as the Keychain (the same strong encryption), so it is - // green too; only the plain file is a warning. + // A closed lock for the Keychain and a passphrase-locked file (the same strong + // encryption); an open one, with a touch of amber, only for the plain file. let (good, headline) = storage_status(kind); - let status = format!( - "
      {}{headline}
      ", - if good { "ok" } else { "warn" }, - if good { "\u{2713}" } else { "!" } + let lock = format!( + "{}", + if good { "" } else { " warn" }, + if good { LOCK } else { LOCK_OPEN } ); + let gear = format!(""); + let saved = match kind { + Kind::Keychain => "Saved in the Keychain, the password vault of your Mac.", + Kind::Encrypted => "Saved in a file locked with your passphrase.", + Kind::File => "Saved in a plain file, not encrypted.", + }; let mut links = Vec::new(); for (label, target) in [("Website", &about.website), ("Documentation", &about.docs), ("Privacy policy", &about.policy), ("Terms of service", &about.terms)] { if let Some(target) = target { @@ -194,25 +169,23 @@ pub fn render(version: Version, open: bool, name: &str, url: &str, about: &About } } let links = if links.is_empty() { String::new() } else { format!("
    • {}
    • ", links.join(" · ")) }; - let lead = if w.lead.is_empty() { String::new() } else { format!("

      {}

      ", escape(&w.lead)) }; + let lead = format!("

      {}

      ", escape(&w.lead)); let about_text = about.description.as_ref().map(|d| format!("
    • {}
    • ", escape(d))).unwrap_or_default(); let details = format!( - "
        {about_text}
      • Separate from Claude Code’s own login: it doesn’t list or cancel it.
      • \ + "
          {about_text}
        • {saved} To change: set MCP_APPS_CLI_TOKEN_STORE · README
        • \ +
        • Separate from Claude Code’s own login: it doesn’t list or cancel it.
        • \
        • To disconnect: mcp-apps-cli-helper signout {name_html}
        • {links}\ -
        • {url}
        " +
      • {url}
      ", + more = crate::oauth::MORE ); - let help = ""; let body = format!( "{error}{identity}

      {}

      {lead}{perms}\ -
      \ - {status}\ -

      To change: set MCP_APPS_CLI_TOKEN_STORE · README

      \ -
      {help}
      \ + \ +
      {lock}{gear}
      \
      {details}
      ", escape(&w.heading), escape(&w.go), - w.cancel, - more = crate::oauth::MORE + w.cancel ); shell(&w.heading, &body) } @@ -246,13 +219,13 @@ mod tests { #[test] fn the_consent_page_says_who_asks_what_for_and_escapes_what_it_shows() { let html = page("de\"mo", "http://127.0.0.1:1/mcp?a=1&b=2", &About::default(), Kind::Keychain, "tok", Some("two different")); - for needle in ["Separate from Claude Code", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Continue to de"mo<b>", "Cancel", "MCP_APPS_CLI_TOKEN_STORE", "Saved securely on this Mac", "a=1&b=2"] { + for needle in ["Separate from Claude Code", "signout de"mo<b>", "name=\"t\" value=\"tok\"", "value=\"accept\"", "value=\"refuse\"", "Continue to de"mo<b>", "Cancel", "MCP_APPS_CLI_TOKEN_STORE", "Settings and details", "Saved securely on this Mac", "a=1&b=2"] { assert!(html.contains(needle), "{needle}"); } assert!(!html.contains("de") && !html.contains("different") && !html.contains("", ".edit{opacity:1!important}")).unwrap(); + for (open, state) in [(false, "ferme"), (true, "ouvert")] { + let html = render(open, "docs", "https://mcp.acme.example/mcp", &about, Kind::Keychain, "tok", None); + std::fs::write(format!("{dir}/{state}-trousseau.html"), html).unwrap(); } - let html = render(Version::One, false, "docs", "https://mcp.acme.example/mcp", &about, Kind::Keychain, "tok", None); - std::fs::write(format!("{dir}/etat-edit-ouvert.html"), html.replace("id=\"store\">", "id=\"store\" checked>")).unwrap(); + std::fs::write(format!("{dir}/ferme-fichier.html"), render(false, "docs", "https://mcp.acme.example/mcp", &about, Kind::File, "tok", None)).unwrap(); + std::fs::write(format!("{dir}/ouvert-fichier.html"), render(true, "docs", "https://mcp.acme.example/mcp", &about, Kind::File, "tok", None)).unwrap(); + let bare = About { title: Some("Acme Docs".into()), ..About::default() }; + std::fs::write(format!("{dir}/ferme-sans.html"), render(false, "docs", "https://mcp.acme.example/mcp", &bare, Kind::Keychain, "tok", None)).unwrap(); } } diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index 78a0e3fa..ee5dc45d 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -349,9 +349,6 @@ fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { Ok((name.clone(), url)) } -/// What the terminal says before its y/N question (the fallback to the -/// consent page): plain words, one idea a line. - fn flag(words: &[String], name: &str) -> bool { words.iter().any(|w| w == name) } From f7bfb6aa3352c8e57bff44f9d36b96a3c627f6d8 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Fri, 27 Nov 2026 19:26:27 +0100 Subject: [PATCH 13/21] mcp-apps-cli helper: a permission with no everyday wording is shown as its own line The server's word, in grey, with the same check as the others. --- .../apps/claude-code/helper-rs/src/ask.rs | 23 ++++++++--------- .../apps/claude-code/helper-rs/src/consent.rs | 25 +++++++++---------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/polyfills/apps/claude-code/helper-rs/src/ask.rs b/polyfills/apps/claude-code/helper-rs/src/ask.rs index de214998..c249b7d5 100644 --- a/polyfills/apps/claude-code/helper-rs/src/ask.rs +++ b/polyfills/apps/claude-code/helper-rs/src/ask.rs @@ -45,20 +45,17 @@ pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> out.push_str(&format!(" {}\n\n", w.no_list)); } else { out.push_str(&format!(" {}\n", w.list_heading)); - let mut known = Vec::new(); - let mut raw = Vec::new(); + let mut lines: Vec<(Option, &str)> = Vec::new(); for scope in &about.scopes { - match consent::plain(scope, title) { - Some(sentence) => known.push((sentence, scope.as_str())), - None => raw.push(scope.as_str()), - } - } - let width = known.iter().map(|(s, _)| s.chars().count()).max().unwrap_or(0); - for (sentence, scope) in known { - out.push_str(&format!(" {} {}{} {}\n", p.green("\u{2713}"), sentence, " ".repeat(width - sentence.chars().count()), p.dim(scope))); + lines.push((consent::plain(scope, title), scope.as_str())); } - if !raw.is_empty() { - out.push_str(&format!(" {}\n", p.dim(&format!("{} {}", if out.matches('\u{2713}').count() > 0 { "And" } else { "Access named" }, raw.join(", "))))); + let width = lines.iter().filter_map(|(s, _)| s.as_ref()).map(|s| s.chars().count()).max().unwrap_or(0); + for (sentence, scope) in lines { + // A word that can't be put in everyday words is still a line of its own, the server's word in grey. + match sentence { + Some(sentence) => out.push_str(&format!(" {} {}{} {}\n", p.green("\u{2713}"), sentence, " ".repeat(width - sentence.chars().count()), p.dim(scope))), + None => out.push_str(&format!(" {} {}\n", p.green("\u{2713}"), p.dim(scope))), + } } out.push('\n'); } @@ -119,7 +116,7 @@ mod tests { #[test] fn the_screen_has_the_pages_structure_with_or_without_colour() { let plain = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::Keychain, false); - for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "And default", "\u{1F512} Saved securely on this Mac"] { + for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "\u{2713} default", "\u{1F512} Saved securely on this Mac"] { assert!(plain.contains(needle), "{needle}\n{plain}"); } assert!(!plain.contains('\x1b'), "{plain:?}"); diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 1ae3d5e8..9376e733 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -20,7 +20,7 @@ ul{margin:0 0 20px;padding-left:20px}li{margin:6px 0}h2{font-size:15px;margin:0 button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fdecea;border:1px solid #f5b5af;color:#8a1c14;border-radius:8px;padding:8px 12px;margin:0 0 16px}\ .who{display:flex;align-items:center;gap:12px;margin:0 0 14px}.who strong{display:block;font-size:15px}.who small{color:#6b7280;font-size:13px}\ .icon{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#f4f5f7;border:1px solid #e5e7eb}.letter{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#4b5563}\ -.about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.perms{list-style:none;padding:0;margin:0 0 6px}.perms li{padding:8px 0 8px 26px;position:relative;border-bottom:1px solid #f0f1f3}.perms li:before{content:'\\2713';position:absolute;left:4px;color:#2563eb;font-weight:700}.perms small{color:#9ca3af;font-size:12px;margin-left:6px}.also{color:#6b7280;font-size:13px;margin:0 0 6px}.lead{margin:0 0 14px;color:#374151}.status{display:flex;gap:10px;align-items:center;margin:14px 0 8px;min-height:30px}.status b{font-size:14px;font-weight:500}.dot{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700}.dot.ok{background:#16a34a}.dot.warn{background:#d97706}\ +.about{margin:0 0 8px;color:#374151}.links{margin:0 0 16px;font-size:14px}.links a{color:#2563eb}.none{color:#6b7280;font-size:13px;margin:0 0 18px}.perms{list-style:none;padding:0;margin:0 0 6px}.perms li{padding:8px 0 8px 26px;position:relative;border-bottom:1px solid #f0f1f3}.perms li:before{content:'\\2713';position:absolute;left:4px;color:#2563eb;font-weight:700}.perms small{color:#9ca3af;font-size:12px;margin-left:6px}.perms li.raw{color:#6b7280;font-size:13px}.lead{margin:0 0 14px;color:#374151}\ .tools{margin-left:auto;display:flex;gap:4px;align-self:center}.tool{position:relative;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280;cursor:pointer}.tool:hover,.tool:focus-visible{background:#f0f1f3;outline:none}.tool svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tool.warn{color:#c2791c}\ .tool[data-tip]:hover:after,.tool[data-tip]:focus-visible:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);right:0;white-space:nowrap;background:#1f2937;color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;pointer-events:none}#info:checked ~ .row .gear{background:#f0f1f3;color:#1f2937}.tog:focus-visible ~ .row .gear{outline:2px solid #2563eb}\ .tog{position:absolute;opacity:0;width:1px;height:1px}.extra{display:none;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}\ @@ -101,18 +101,17 @@ fn permissions(about: &About, title: &str, w: &Words) -> String { if about.scopes.is_empty() { return format!("

      {}

      ", escape(&w.no_list)); } - let mut items = String::new(); - let mut raw = Vec::new(); - for scope in &about.scopes { - match plain(scope, title) { - Some(sentence) => items.push_str(&format!("
    • {}{}
    • ", escape(&sentence), escape(scope))), - None => raw.push(format!("{}", escape(scope))), - } - } + // A word that can't be put in everyday words is still a line of its own, the server's word in grey. + let items: String = about + .scopes + .iter() + .map(|scope| match plain(scope, title) { + Some(sentence) => format!("
    • {}{}
    • ", escape(&sentence), escape(scope)), + None => format!("
    • {}
    • ", escape(scope)), + }) + .collect(); let heading = if w.list_heading.is_empty() { String::new() } else { format!("

      {}

      ", escape(&w.list_heading)) }; - let list = if items.is_empty() { String::new() } else { format!("
        {items}
      ") }; - let also = if raw.is_empty() { String::new() } else { format!("

      {} {}

      ", if items.is_empty() { "Access named" } else { "And" }, raw.join(", ")) }; - format!("{heading}{list}{also}") + format!("{heading}
        {items}
      ") } /// The storage line: whether it is fine (a green check) or a warning, and its words. A @@ -243,7 +242,7 @@ mod tests { #[test] fn with_metadata_the_page_shows_who_it_is_and_what_it_asks() { let html = page("docs", "https://m.example/mcp", &full(), Kind::Keychain, "t", None); - for needle in ["Docs <Pro>", "Search "docs"", "href=\"https://docs.example/\"", "Privacy policy", "Terms of service", "a=1&b=2", "Read your docsdocs:read", "Confirm who you areopenid", "default, x<y", "signout docs"] { + for needle in ["Docs <Pro>", "Search "docs"", "href=\"https://docs.example/\"", "Privacy policy", "Terms of service", "a=1&b=2", "Read your docsdocs:read", "Confirm who you areopenid", "
    • default
    • ", "
    • x<y
    • ", "signout docs"] { assert!(html.contains(needle), "{needle}\n{html}"); } assert!(!html.contains("") && !html.contains(" Date: Tue, 1 Dec 2026 01:14:29 +0100 Subject: [PATCH 14/21] mcp-apps-cli helper: before consent, a server's metadata is fetched only from its own origin What a server publishes about itself is read before the person has agreed to anything, from addresses the server names. Those requests now go to the server's own origin (its resource metadata, its icon), and, for the authorization server's metadata alone, to another origin over https whose name gives only public addresses: never this machine, a private network, a link-local or other reserved address. That request connects to the addresses that were checked, so a second answer from the name service changes nothing. No redirect is followed, as before. --- .../apps/claude-code/helper-rs/src/about.rs | 169 +++++++++++++++--- 1 file changed, 148 insertions(+), 21 deletions(-) diff --git a/polyfills/apps/claude-code/helper-rs/src/about.rs b/polyfills/apps/claude-code/helper-rs/src/about.rs index 0b68b2c4..399f385b 100644 --- a/polyfills/apps/claude-code/helper-rs/src/about.rs +++ b/polyfills/apps/claude-code/helper-rs/src/about.rs @@ -12,11 +12,20 @@ //! `scopes_supported` when the resource names none. //! //! A field the server does not publish stays empty and the page leaves it -//! out. An icon is downloaded here (https or this machine, small, an image -//! type) and embedded as a `data:` URL, so the page itself loads nothing -//! from elsewhere. Every request is short, follows no redirect, sends no -//! credential, and a failure only means less is shown. +//! out. An icon is downloaded here (small, an image type) and embedded as a +//! `data:` URL, so the page itself loads nothing from elsewhere. Every request +//! is short, follows no redirect, sends no credential, and a failure only +//! means less is shown. +//! +//! All of this happens before the person has agreed to anything, and the +//! addresses come from the server, so where a request may go is narrow +//! (`destination`): the server's own origin, which the person configured, for +//! its metadata and its icon; and, for the authorization server's metadata +//! only, another origin over `https` whose name resolves to public addresses +//! alone (never this machine, a private network or a link-local address), the +//! request then going to the addresses that were checked. +use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr}; use std::time::Duration; use base64::{Engine, engine::general_purpose::STANDARD as B64}; @@ -57,8 +66,83 @@ fn scope_list(value: &Value) -> Vec { all.filter(|s| !s.is_empty() && s.len() <= 80 && !s.chars().any(|c| c.is_control() || c.is_whitespace())).take(30).map(str::to_string).collect() } +fn builder() -> reqwest::ClientBuilder { + reqwest::Client::builder().timeout(Duration::from_secs(4)).redirect(reqwest::redirect::Policy::none()).pool_max_idle_per_host(0) +} + fn client() -> Option { - reqwest::Client::builder().timeout(Duration::from_secs(4)).redirect(reqwest::redirect::Policy::none()).pool_max_idle_per_host(0).build().ok() + builder().build().ok() +} + +fn same_origin(a: &url::Url, b: &url::Url) -> bool { + a.scheme() == b.scheme() && a.host_str().zip(b.host_str()).is_some_and(|(a, b)| a.eq_ignore_ascii_case(b)) && a.port_or_known_default() == b.port_or_known_default() +} + +/// An address out on the internet: not this machine, a private network, a +/// link-local address (cloud metadata lives there), carrier-grade NAT, or any +/// other reserved range. +fn public_v4(ip: Ipv4Addr) -> bool { + let o = ip.octets(); + !(ip.is_private() + || ip.is_loopback() + || ip.is_link_local() + || ip.is_broadcast() + || ip.is_unspecified() + || ip.is_multicast() + || ip.is_documentation() + || o[0] == 0 + || o[0] >= 240 + || (o[0] == 100 && (64..=127).contains(&o[1])) + || (o[0] == 192 && o[1] == 0 && o[2] == 0) + || (o[0] == 198 && matches!(o[1], 18 | 19))) +} + +fn public(ip: IpAddr) -> bool { + let v6: Ipv6Addr = match ip { + IpAddr::V4(v4) => return public_v4(v4), + IpAddr::V6(v6) => v6, + }; + let [a, b, c, d, e, f, g, h] = v6.segments(); + // An IPv4 address carried in an IPv6 one (mapped, compatible, NAT64, 6to4) is judged as itself. + let low = Ipv4Addr::from((u32::from(g) << 16) | u32::from(h)); + match [a, b, c, d, e, f] { + [0, 0, 0, 0, 0, 0xffff] | [0x64, 0xff9b, 0, 0, 0, 0] => return public_v4(low), + [0, 0, 0, 0, 0, 0] => return !v6.is_loopback() && !v6.is_unspecified() && public_v4(low), + [0x2002, ..] => return public_v4(Ipv4Addr::from((u32::from(b) << 16) | u32::from(c))), + _ => {} + } + // Multicast, link-local, unique local, Teredo, local-use NAT64, documentation. + !(v6.is_multicast() || (a & 0xffc0) == 0xfe80 || (a & 0xfe00) == 0xfc00 || (a == 0x2001 && b == 0) || (a == 0x64 && b == 0xff9b && c == 1) || (a == 0x2001 && b == 0xdb8)) +} + +/// Where a request may go, and with what: `server` is the address the person +/// configured. Its own origin always (the default client). With `elsewhere`, +/// another origin too, over `https` and only if every address its name gives +/// is a public one: the client returned connects to those addresses and no +/// others, so a second, different answer from the name service changes +/// nothing. None: the request is not made. +async fn destination(server: &url::Url, address: &str, elsewhere: bool) -> Option<(url::Url, Option)> { + let target = url::Url::parse(address).ok()?; + if same_origin(server, &target) { + return Some((target, None)); + } + if !elsewhere || target.scheme() != "https" { + return None; + } + let port = target.port_or_known_default()?; + match target.host()? { + url::Host::Ipv4(ip) => public_v4(ip).then_some((target, None)), + url::Host::Ipv6(ip) => public(IpAddr::V6(ip)).then_some((target, None)), + url::Host::Domain(name) => { + let name = name.to_string(); + let found: Vec = tokio::net::lookup_host((name.as_str(), port)).await.ok()?.collect(); + if found.is_empty() || !found.iter().all(|a| public(a.ip())) { + return None; + } + let pinned = builder().resolve_to_addrs(&name, &found).build().ok()?; + Some((target, Some(pinned))) + } + } } /// A body of at most `LIMIT` bytes; None when it is larger. @@ -73,11 +157,9 @@ async fn body(mut response: reqwest::Response) -> Option> { Some(out) } -async fn get_json(http: &reqwest::Client, address: &str) -> Option { - if !crate::oauth::allowed(address) { - return None; - } - let response = http.get(address).header("accept", "application/json").send().await.ok()?; +async fn get_json(http: &reqwest::Client, server: &url::Url, address: &str, elsewhere: bool) -> Option { + let (target, pinned) = destination(server, address, elsewhere).await?; + let response = pinned.as_ref().unwrap_or(http).get(target).header("accept", "application/json").send().await.ok()?; if !response.status().is_success() { return None; } @@ -99,8 +181,9 @@ fn server_info(answer: &[u8]) -> Option { } /// The icon to show out of `serverInfo.icons`: not made for a dark background, -/// as the page is light; embedded as a `data:` URL. -async fn icon(http: &reqwest::Client, icons: &Value) -> Option { +/// as the page is light; embedded as a `data:` URL. One that is not inline is +/// downloaded from the server's own origin only. +async fn icon(http: &reqwest::Client, server: &url::Url, icons: &Value) -> Option { let list: Vec<&Value> = icons.as_array()?.iter().filter(|i| i.get("theme").and_then(Value::as_str) != Some("dark")).collect(); for entry in list.into_iter().take(4) { let Some(src) = entry.get("src").and_then(Value::as_str) else { continue }; @@ -111,10 +194,8 @@ async fn icon(http: &reqwest::Client, icons: &Value) -> Option { } continue; } - if !crate::oauth::allowed(src) { - continue; - } - let Ok(response) = http.get(src).send().await else { continue }; + let Some((target, _)) = destination(server, src, false).await else { continue }; + let Ok(response) = http.get(target).send().await else { continue }; let kind = response.headers().get("content-type").and_then(|v| v.to_str().ok()).unwrap_or("").split(';').next().unwrap_or("").trim().to_ascii_lowercase(); if response.status().is_success() && shown(&kind) @@ -158,18 +239,19 @@ pub async fn fetch(url: &str) -> About { about.description = text(&info, "description"); about.website = link(&info, "websiteUrl"); if let Some(icons) = info.get("icons") { - about.icon = icon(&http, icons).await; + about.icon = icon(&http, &parsed, icons).await; } } } - // The protected resource metadata: the address the 401 names, else the well-known ones. + // The protected resource metadata: the address the 401 names, else the + // well-known ones; on the server's own origin in each case. let mut resource = None; let mut candidates: Vec = pointer.into_iter().collect(); candidates.push(well_known(&parsed, true)); candidates.push(well_known(&parsed, false)); for address in candidates { - if let Some(found) = get_json(&http, &address).await.filter(Value::is_object) { + if let Some(found) = get_json(&http, &parsed, &address, false).await.filter(Value::is_object) { resource = Some(found); break; } @@ -183,12 +265,13 @@ pub async fn fetch(url: &str) -> About { about.terms = link(resource, "resource_tos_uri"); about.scopes = scope_list(resource); if about.scopes.is_empty() { - // The authorization server's list (RFC 8414), when the resource names none. + // The authorization server's list (RFC 8414), when the resource names none: the one + // request that may leave the server's origin, to a public address only. let issuer = resource.get("authorization_servers").and_then(Value::as_array).and_then(|a| a.first()).and_then(Value::as_str).and_then(|s| url::Url::parse(s).ok()); if let Some(mut issuer) = issuer { let path = issuer.path().trim_end_matches('/').to_string(); issuer.set_path(&format!("/.well-known/oauth-authorization-server{path}")); - if let Some(meta) = get_json(&http, issuer.as_str()).await { + if let Some(meta) = get_json(&http, &parsed, issuer.as_str(), true).await { about.scopes = scope_list(&meta); } } @@ -230,6 +313,50 @@ mod tests { assert!(server_info(b"{\"error\":1}").is_none()); } + // Before consent, a server's metadata can't send the helper to this machine, a private + // network or cloud metadata: its own origin, or (for the authorization server only) a + // public https address. + #[tokio::test] + async fn what_a_server_names_is_fetched_only_from_its_origin_or_a_public_https_address() { + let server = url::Url::parse("https://mcp.example.com/mcp").unwrap(); + let goes = async |server: &url::Url, address: &str, elsewhere: bool| destination(server, address, elsewhere).await.is_some(); + assert!(goes(&server, "https://mcp.example.com/.well-known/oauth-protected-resource", false).await); + assert!(goes(&server, "https://MCP.example.com:443/icon.png", false).await); + // Another origin: never for the resource metadata or an icon. + for address in ["https://cdn.example.net/icon.png", "http://mcp.example.com/icon.png", "https://mcp.example.com:8443/x", "http://127.0.0.1:8080/admin", "http://localhost/x", "not a url"] { + assert!(!goes(&server, address, false).await, "{address}"); + } + // The authorization server may be elsewhere, but not on this machine, a private network or a reserved range, and only over https. + for address in [ + "http://127.0.0.1:8080/.well-known/oauth-authorization-server", + "https://127.0.0.1/x", + "https://localhost/x", + "https://10.0.0.8/x", + "https://192.168.1.1/x", + "https://172.16.0.1/x", + "https://169.254.169.254/latest/meta-data", + "https://100.64.0.1/x", + "https://0.0.0.0/x", + "https://[::1]/x", + "https://[::ffff:127.0.0.1]/x", + "https://[::ffff:10.0.0.1]/x", + "https://[fe80::1]/x", + "https://[fd00::1]/x", + "https://[64:ff9b::a00:1]/x", + "http://93.184.216.34/x", + "ftp://93.184.216.34/x", + ] { + assert!(!goes(&server, address, true).await, "{address}"); + } + assert!(goes(&server, "https://93.184.216.34/.well-known/oauth-authorization-server", true).await); + assert!(goes(&server, "https://[2606:2800:220:1:248:1893:25c8:1946]/x", true).await); + // A server on this machine (the person configured it): its own origin, and nothing else here. + let local = url::Url::parse("http://127.0.0.1:3212/mcp").unwrap(); + assert!(goes(&local, "http://127.0.0.1:3212/.well-known/oauth-protected-resource", false).await); + assert!(!goes(&local, "http://127.0.0.1:9000/x", true).await); + assert!(!goes(&local, "http://localhost:3212/x", true).await); + } + #[test] fn only_image_types_are_embedded() { assert!(shown("image/png") && shown("image/svg+xml") && !shown("text/html") && !shown("")); From df04b5a8b4c4e8c8816e43fc695294b73971a537 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:16:06 +0100 Subject: [PATCH 15/21] mcp-apps-cli helper: the passphrase stays out of the environment of what the helper starts The helper takes MCP_APPS_CLI_PASSPHRASE out of its own environment first thing, before it starts anything, and keeps it in memory: a stdio MCP server, Chrome or the person's browser is no longer handed it. `signin` passes the passphrase to where the tokens are kept directly, instead of writing it back to the environment of a process that already has threads. A passphrase from the environment is held to the same minimum length as one typed at the prompt. The page, the README and SECURITY.md no longer set the encrypted file beside the Keychain: they say the helper keeps the passphrase while it runs, and that any other program started from the same environment can read it there. --- polyfills/apps/claude-code/README.md | 8 +++- polyfills/apps/claude-code/SECURITY.md | 9 +++- .../apps/claude-code/helper-rs/src/consent.rs | 11 ++--- .../apps/claude-code/helper-rs/src/main.rs | 3 ++ .../apps/claude-code/helper-rs/src/mcp.rs | 3 +- .../apps/claude-code/helper-rs/src/oauth.rs | 42 +++++++++---------- .../apps/claude-code/helper-rs/src/vault.rs | 21 +++++++++- .../apps/claude-code/helper-rs/tests/gate.rs | 13 ++++++ 8 files changed, 80 insertions(+), 30 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index a3ba64b8..f0aaf72a 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -229,7 +229,13 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. With `encrypted`, `signin` needs the passphrase too (the page can't take one): set `MCP_APPS_CLI_PASSPHRASE`. A file encrypted with a passphrase can't be opened by a session's helper unless it has the passphrase: set it in the - environment you start Claude Code from (the helper can't ask). The Keychain + environment you start Claude Code from (the helper can't ask). The helper + takes it out of its own environment as it starts, so the processes it starts + (stdio MCP servers, Chrome) aren't handed it, and keeps it in memory while it + runs. Everything else started from that same environment, Claude Code's own + MCP servers included, can still read it there: the passphrase protects the + file at rest, not from those programs, and the Keychain is the stronger + choice. A passphrase needs at least 8 characters, wherever it comes from. The Keychain needs nothing. It works with a server of MCP 2026-07-28 and with one of the 2025 revisions, only for `streamable-http` servers (not the older `sse` ones), only servers that register clients themselves (dynamic client diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 67ccd175..7064fa49 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -115,7 +115,14 @@ option only (`--token-store file`), where the file's mode is what protects it, as for the view stores. One entry for each server and address, so a token is sent only to the address it was issued for. There is no silent fall back from one store to another. A session's helper opens an encrypted file with the -passphrase in `MCP_APPS_CLI_PASSPHRASE`, which it reads and doesn't keep. A +passphrase in `MCP_APPS_CLI_PASSPHRASE`: it takes the variable out of its own +environment as it starts, before it starts anything else, so no process it +starts (a stdio MCP server, Chrome, the person's browser) is handed it, and +keeps it in memory for as long as it runs (a refreshed token is written +again). Any other program started from the environment the person set it in, +Claude Code's own MCP servers included, can read it there and so open the +file: the encrypted file protects the tokens at rest, and is not the +Keychain's equal. A connection that carries a token follows no redirect, and says once a session, in the debug log, that it is using its own sign-in. `signout ` asks the server to revoke the tokens where it offers that (RFC 7009) and deletes them; diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 9376e733..4354d0a8 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -115,8 +115,9 @@ fn permissions(about: &About, title: &str, w: &Words) -> String { } /// The storage line: whether it is fine (a green check) or a warning, and its words. A -/// passphrase-locked file is as safe as the Keychain (the same strong encryption), so it is -/// green too; only the plain file is a warning. +/// passphrase-locked file is encrypted where it is kept, so it is green too (it is not the +/// Keychain's equal: whatever is started with the passphrase in its environment can open +/// it, which the details say); only the plain file is a warning. pub fn storage_status(kind: Kind) -> (bool, &'static str) { match kind { Kind::Keychain => (true, "Saved securely on this Mac"), @@ -147,8 +148,8 @@ pub fn render(open: bool, name: &str, url: &str, about: &About, kind: Kind, toke let (url, name_html, token) = (escape(url), escape(name), escape(token)); let error = problem.map(|p| format!("

      {}

      ", escape(p))).unwrap_or_default(); let checked = if open || problem.is_some() { " checked" } else { "" }; - // A closed lock for the Keychain and a passphrase-locked file (the same strong - // encryption); an open one, with a touch of amber, only for the plain file. + // A closed lock for the Keychain and a passphrase-locked file (both encrypted where + // they are kept); an open one, with a touch of amber, only for the plain file. let (good, headline) = storage_status(kind); let lock = format!( "{}", @@ -158,7 +159,7 @@ pub fn render(open: bool, name: &str, url: &str, about: &About, kind: Kind, toke let gear = format!(""); let saved = match kind { Kind::Keychain => "Saved in the Keychain, the password vault of your Mac.", - Kind::Encrypted => "Saved in a file locked with your passphrase.", + Kind::Encrypted => "Saved in a file locked with your passphrase. Any program started with that passphrase in its environment can open it.", Kind::File => "Saved in a plain file, not encrypted.", }; let mut links = Vec::new(); diff --git a/polyfills/apps/claude-code/helper-rs/src/main.rs b/polyfills/apps/claude-code/helper-rs/src/main.rs index 1508d3c0..cc98cbc0 100644 --- a/polyfills/apps/claude-code/helper-rs/src/main.rs +++ b/polyfills/apps/claude-code/helper-rs/src/main.rs @@ -91,6 +91,9 @@ pub struct Helper { } fn main() -> Result<()> { + // Before anything else is started: the passphrase of an encrypted sign-in + // leaves the environment, so no child process is handed it (vault.rs). + vault::take_passphrase(); // `--reap `: the watcher started beside Chrome // (see tmp::reap); nothing else of the helper runs in it. let words: Vec = std::env::args().collect(); diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 002fb41f..50204bb4 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -701,7 +701,8 @@ mod tests { } /// The person signing in: the address `signin` shows is opened as a browser would. async fn sign_in(&self) -> anyhow::Result<()> { - crate::oauth::signin("docs", &self.url, crate::vault::Kind::File, |address| { + let place = crate::vault::Place::of(crate::vault::Kind::File, "docs", &self.url, None).unwrap(); + crate::oauth::signin("docs", &self.url, place, |address| { let address = address.to_string(); tokio::spawn(async move { let _ = reqwest::get(address).await; diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index ee5dc45d..4554496a 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -135,12 +135,11 @@ fn check_url(name: &str, url: &str) -> Result<()> { Ok(()) } -/// Signs in to `name` at `url` with the place already chosen: `show` is given +/// Signs in to `name` at `url`, the tokens going to `place`: `show` is given /// the address the person opens (the terminal path prints it and tries the /// browser). Returns when the tokens are kept. -pub async fn signin(name: &str, url: &str, kind: Kind, show: impl FnOnce(&str)) -> Result<()> { +pub async fn signin(name: &str, url: &str, place: Place, show: impl FnOnce(&str)) -> Result<()> { check_url(name, url)?; - let place = Place::of(kind, name, url, std::env::var(PASSPHRASE_ENV).ok()).context("no folder to keep the sign-in in")?; prepare(&place)?; let listener = TcpListener::bind("127.0.0.1:0").await?; let port = listener.local_addr()?.port(); @@ -315,7 +314,7 @@ pub async fn signin_in_browser(name: &str, url: &str, kind: Kind, ready: impl Fn check_url(name, url)?; vault::usable(kind)?; // A page can't take a passphrase: an encrypted file's comes from the environment. - let passphrase = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); + let passphrase = vault::passphrase(); if kind == Kind::Encrypted { match &passphrase { Some(p) => vault::check_passphrase(p)?, @@ -403,19 +402,25 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { } // The terminal: the same question; the store is the global setting. vault::usable(kind)?; - let mut passphrase = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); - if kind == Kind::Encrypted && passphrase.is_none() { - if !std::io::stdin().is_terminal() { - bail!("a passphrase can't be asked for here: set {PASSPHRASE_ENV}"); - } - let first = vault::prompt_passphrase("Passphrase (at least 8 characters): ")?; - vault::check_passphrase(&first)?; - if vault::prompt_passphrase("Again: ")? != first { - bail!("the two passphrases differ"); + let mut passphrase = vault::passphrase(); + if kind == Kind::Encrypted { + // One from the environment is held to the same rule as one typed here. + match &passphrase { + Some(given) => vault::check_passphrase(given)?, + None => { + if !std::io::stdin().is_terminal() { + bail!("a passphrase can't be asked for here: set {PASSPHRASE_ENV}"); + } + let first = vault::prompt_passphrase("Passphrase (at least 8 characters): ")?; + vault::check_passphrase(&first)?; + if vault::prompt_passphrase("Again: ")? != first { + bail!("the two passphrases differ"); + } + passphrase = Some(first); + } } - passphrase = Some(first); } - let place = Place::of(kind, name, &url, passphrase.clone()).context("no folder to keep the sign-in in")?; + let place = Place::of(kind, name, &url, passphrase).context("no folder to keep the sign-in in")?; if !assumed && !std::io::stdin().is_terminal() { bail!("signin asks a question: run it in a terminal, or pass --yes (or set MCP_APPS_CLI_SIGNIN_YES=1)"); } @@ -442,12 +447,7 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { } } println!(); - // The passphrase is read from the environment inside `signin`. - if let Some(p) = &passphrase { - // SAFETY: nothing else runs yet that reads the environment. - unsafe { std::env::set_var(PASSPHRASE_ENV, p) }; - } - signin(name, &url, kind, |address| { + signin(name, &url, place.clone(), |address| { println!("Open this address to sign in to {name}:\n{address}"); if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { open_browser(address); diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index ea4930b4..6d0ddd44 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -17,6 +17,25 @@ const SERVICE: &str = "mcp-apps-cli"; /// where nobody can be asked (a session's helper). pub const PASSPHRASE_ENV: &str = "MCP_APPS_CLI_PASSPHRASE"; +/// The passphrase this process was started with, if any. +static PASSPHRASE: std::sync::OnceLock> = std::sync::OnceLock::new(); + +/// Takes the passphrase out of the environment, first thing in `main`: it is +/// kept in this process's memory for as long as it runs (a token that is +/// refreshed is written again), and nothing the helper starts later (a stdio +/// MCP server, Chrome, a browser) finds it in the environment it is given. +pub fn take_passphrase() { + let found = std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty()); + // SAFETY: `main` calls this before it starts any thread. + unsafe { std::env::remove_var(PASSPHRASE_ENV) }; + let _ = PASSPHRASE.set(found); +} + +/// The passphrase the process was started with (`take_passphrase`). +pub fn passphrase() -> Option { + PASSPHRASE.get_or_init(|| std::env::var(PASSPHRASE_ENV).ok().filter(|p| !p.is_empty())).clone() +} + #[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum Kind { Keychain, @@ -171,7 +190,7 @@ fn kinds_in_order(set: Option) -> Vec { /// set first, then the others (Keychain, encrypted file, plain file), so a /// login made before the setting was changed is still found. pub fn all_kept(name: &str, url: &str) -> Vec { - let passphrase = std::env::var(PASSPHRASE_ENV).ok(); + let passphrase = passphrase(); kinds_in_order(asked(&[]).ok().flatten()).iter().filter(|k| k.available()).filter_map(|k| Place::of(*k, name, url, passphrase.clone())).filter(Place::exists).collect() } diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 7e89c426..2d96c641 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -807,6 +807,19 @@ fn signout_says_when_the_server_cannot_revoke() { let _ = child.wait(); } +// The passphrase of an encrypted sign-in stays with the helper: a process it +// starts (here a stdio server) doesn't find it in its environment. +#[test] +fn the_passphrase_is_not_handed_to_the_processes_the_helper_starts() { + let w = World::new("passphrase-env"); + let seen = w.marker("seen-passphrase"); + std::fs::create_dir_all(seen.parent().unwrap()).unwrap(); + let script = "require('fs').writeFileSync(process.argv[1], String(process.env.MCP_APPS_CLI_PASSPHRASE))"; + w.claude_json(json!({"local": {"command": "node", "args": ["-e", script, seen.to_string_lossy()]}}), json!({})); + let _ = w.discover_with(&["local"], false, &[("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")]); + assert_eq!(std::fs::read_to_string(&seen).expect("the stdio server ran"), "undefined"); +} + /// `signin docs` in its browser mode: the consent page's address from its output, and its process. fn browser_signin(w: &World, file_store: bool) -> (std::process::Child, String, std::io::Lines>) { browser_signin_with(w, file_store, &[]) From a1dce5cdf23c146a0c5d510802431308f5f0ed55 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:17:19 +0100 Subject: [PATCH 16/21] mcp-apps-cli helper: a Keychain that can't be read is said, and no plain file is chosen for the person A Keychain that refuses to be looked in was taken for "no login there": `signout` could say there was nothing to delete, and a session could pick up an older login from a file instead. The error is now passed on. Without a store setting the Keychain is the choice everywhere; where there is none, `signin` refuses and says how to ask for another store, where it used to pick the plain file on Linux and Windows without being asked. The test of the store setting reads the environment's value as an argument, so it no longer changes a variable another test reads. --- polyfills/apps/claude-code/README.md | 4 +- .../apps/claude-code/helper-rs/src/oauth.rs | 13 ++- .../apps/claude-code/helper-rs/src/vault.rs | 90 +++++++++++++------ 3 files changed, 75 insertions(+), 32 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index f0aaf72a..ff5a789c 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -224,7 +224,9 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. kept is one setting for every server: `MCP_APPS_CLI_TOKEN_STORE` (`keychain`, the default, `encrypted` or `file`), or `--token-store` for one run. The page only says what is set. There is no silent fall back: if the Keychain isn't - available, `signin` says so and what to use instead. + available (or can't be read later, in a session), the helper says so and what + to use instead, and never picks a plain file, or an older login in another + store, for you. With `encrypted`, `signin` needs the passphrase too (the page can't take one): set `MCP_APPS_CLI_PASSPHRASE`. A file encrypted with a passphrase can't diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index 4554496a..c46d3520 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -97,7 +97,7 @@ pub async fn client(name: &str, url: &str) -> Result String { pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { let (name, url) = target(&args, words)?; // Wherever it is kept: a login made before the store setting changed counts too. - let places = vault::all_kept(&name, &url); + let places = vault::all_kept(&name, &url)?; if places.is_empty() { println!("Not signed in to {name}: nothing to delete."); return Ok(()); @@ -514,7 +514,14 @@ pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { /// login is active. One that can't be opened (an encrypted file without its /// passphrase) is left alone, and said. async fn retire_others(name: &str, url: &str, kept: &Place) { - for place in vault::all_kept(name, url).into_iter().filter(|p| p.kind() != kept.kind()) { + let others = match vault::all_kept(name, url) { + Ok(places) => places, + Err(why) => { + println!("Whether an earlier login is kept elsewhere could not be checked: {why:#}"); + return; + } + }; + for place in others.into_iter().filter(|p| p.kind() != kept.kind()) { if let Err(why) = place.read() { println!("An earlier login in the {} was left in place: {why:#}", place.short()); continue; diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index 6d0ddd44..ac9ee874 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -2,7 +2,8 @@ //! the macOS Keychain (called directly), a file encrypted with a passphrase //! (AES-256-GCM, a key from PBKDF2-HMAC-SHA256), or, only when asked, a file //! only the person can read, not encrypted. macOS only for now: elsewhere only -//! the plain file is offered. There is no silent fall back from one to another. +//! the plain file can be used, and only when the person asks for it. There is +//! no silent fall back from one to another. use std::path::PathBuf; @@ -66,14 +67,21 @@ impl Kind { /// The store the person asked for, if they did: the flag wins over the environment. pub fn asked(words: &[String]) -> Result> { + asked_with(words, std::env::var("MCP_APPS_CLI_TOKEN_STORE").ok()) +} + +/// The same, `set` being what `MCP_APPS_CLI_TOKEN_STORE` holds. +fn asked_with(words: &[String], set: Option) -> Result> { let flag = words.iter().position(|w| w == "--token-store").and_then(|i| words.get(i + 1)).cloned(); - flag.or_else(|| std::env::var("MCP_APPS_CLI_TOKEN_STORE").ok().filter(|v| !v.is_empty())).map(|v| Kind::parse(&v)).transpose() + flag.or_else(|| set.filter(|v| !v.is_empty())).map(|v| Kind::parse(&v)).transpose() } /// Where logins are kept: the same for every server, set once with `--token-store` -/// or `MCP_APPS_CLI_TOKEN_STORE`; else the Keychain where there is one, else a file. +/// or `MCP_APPS_CLI_TOKEN_STORE`; else the Keychain, everywhere. Where there is +/// none, `usable` refuses and says how to ask for another store: a plain file +/// is never chosen for the person. pub fn chosen(words: &[String]) -> Result { - Ok(asked(words)?.unwrap_or(if Kind::Keychain.available() { Kind::Keychain } else { Kind::File })) + Ok(asked(words)?.unwrap_or(Kind::Keychain)) } /// The folder for the files: `$MCP_APPS_CLI_OAUTH_DIR` if it is set (the @@ -167,11 +175,12 @@ impl Place { } } - /// Whether tokens are kept here (an encrypted file counts without being opened). - pub fn exists(&self) -> bool { + /// Whether tokens are kept here (an encrypted file counts without being + /// opened). A Keychain that can't be looked in is an error, not a no. + pub fn exists(&self) -> Result { match self { - Place::File(path) | Place::Encrypted(path, _) => path.is_file(), - Place::Keychain(_) => matches!(self.read(), Ok(Some(_))), + Place::File(path) | Place::Encrypted(path, _) => Ok(path.is_file()), + Place::Keychain(account) => keychain_has(account), } } } @@ -188,15 +197,24 @@ fn kinds_in_order(set: Option) -> Vec { /// Every place a sign-in to one server at one url is kept: the store that is /// set first, then the others (Keychain, encrypted file, plain file), so a -/// login made before the setting was changed is still found. -pub fn all_kept(name: &str, url: &str) -> Vec { +/// login made before the setting was changed is still found. A store that +/// can't be looked in (the Keychain refusing) is an error: the caller doesn't +/// go on as if nothing were kept there. +pub fn all_kept(name: &str, url: &str) -> Result> { let passphrase = passphrase(); - kinds_in_order(asked(&[]).ok().flatten()).iter().filter(|k| k.available()).filter_map(|k| Place::of(*k, name, url, passphrase.clone())).filter(Place::exists).collect() + let mut found = Vec::new(); + for kind in kinds_in_order(asked(&[]).ok().flatten()).into_iter().filter(|k| k.available()) { + let Some(place) = Place::of(kind, name, url, passphrase.clone()) else { continue }; + if place.exists()? { + found.push(place); + } + } + Ok(found) } /// The place a sign-in is read from: the first of `all_kept`. -pub fn kept(name: &str, url: &str) -> Option { - all_kept(name, url).into_iter().next() +pub fn kept(name: &str, url: &str) -> Result> { + Ok(all_kept(name, url)?.into_iter().next()) } /// Refuses early, and says what to do, if `kind` can't be used here. @@ -359,6 +377,19 @@ fn keychain_find(account: &str, want_password: bool) -> Result Result { + match keychain_find(account, false)? { + Some((_, item)) => { + // SAFETY: the item reference is ours to release. + unsafe { mac::CFRelease(item) }; + Ok(true) + } + None => Ok(false), + } +} + #[cfg(target_os = "macos")] fn keychain_get(account: &str) -> Result> { match keychain_find(account, true)? { @@ -398,6 +429,10 @@ fn keychain_delete(account: &str) -> Result<()> { status("delete the tokens", code) } +#[cfg(not(target_os = "macos"))] +fn keychain_has(_: &str) -> Result { + bail!("the Keychain is only used on macOS") +} #[cfg(not(target_os = "macos"))] fn keychain_get(_: &str) -> Result> { bail!("the Keychain is only used on macOS") @@ -418,18 +453,17 @@ mod tests { // The store the person asked for: nothing unless they say; the flag wins; anything else is refused. #[test] fn the_token_store_is_asked_for_by_flag_or_environment() { - let words = |text: &str| text.split_whitespace().map(str::to_string).collect::>(); - // SAFETY: the only test that sets it. - unsafe { std::env::remove_var("MCP_APPS_CLI_TOKEN_STORE") }; - assert_eq!(asked(&words("h signin demo")).unwrap(), None); - assert_eq!(asked(&words("h signin demo --token-store keychain")).unwrap(), Some(Kind::Keychain)); - assert_eq!(asked(&words("h signin demo --token-store encrypted")).unwrap(), Some(Kind::Encrypted)); - assert_eq!(asked(&words("h signin demo --token-store file")).unwrap(), Some(Kind::File)); - assert!(asked(&words("h signin demo --token-store usb")).is_err()); - unsafe { std::env::set_var("MCP_APPS_CLI_TOKEN_STORE", "file") }; - assert_eq!(asked(&words("h signin demo")).unwrap(), Some(Kind::File)); - assert_eq!(asked(&words("h signin demo --token-store keychain")).unwrap(), Some(Kind::Keychain)); - unsafe { std::env::remove_var("MCP_APPS_CLI_TOKEN_STORE") }; + // The environment's value is handed in: the test changes nothing another test reads. + let asked = |text: &str, set: Option<&str>| asked_with(&text.split_whitespace().map(str::to_string).collect::>(), set.map(str::to_string)); + assert_eq!(asked("h signin demo", None).unwrap(), None); + assert_eq!(asked("h signin demo", Some("")).unwrap(), None); + assert_eq!(asked("h signin demo --token-store keychain", None).unwrap(), Some(Kind::Keychain)); + assert_eq!(asked("h signin demo --token-store encrypted", None).unwrap(), Some(Kind::Encrypted)); + assert_eq!(asked("h signin demo --token-store file", None).unwrap(), Some(Kind::File)); + assert!(asked("h signin demo --token-store usb", None).is_err()); + assert_eq!(asked("h signin demo", Some("file")).unwrap(), Some(Kind::File)); + assert_eq!(asked("h signin demo --token-store keychain", Some("file")).unwrap(), Some(Kind::Keychain)); + assert!(asked("h signin demo", Some("usb")).is_err()); } #[test] @@ -460,7 +494,7 @@ mod tests { place.write(&value).unwrap(); assert_ne!(std::fs::read_to_string(&path).unwrap(), on_disk); place.delete().unwrap(); - assert!(!place.exists()); + assert!(!place.exists().unwrap()); let _ = std::fs::remove_dir_all(&dir); } @@ -470,7 +504,7 @@ mod tests { #[ignore = "uses the macOS Keychain"] fn tokens_round_trip_through_the_macos_keychain() { let place = Place::of(Kind::Keychain, "demo", &format!("https://example.com/{}", std::process::id()), None).unwrap(); - assert!(!place.exists()); + assert!(!place.exists().unwrap()); let value = serde_json::json!({"client_id": "c", "token_response": {"access_token": "a".repeat(3000), "refresh_token": "r"}}); place.write(&value).expect("the Keychain keeps the tokens"); assert_eq!(place.read().unwrap(), Some(value)); @@ -479,7 +513,7 @@ mod tests { place.write(&again).unwrap(); assert_eq!(place.read().unwrap(), Some(again)); place.delete().unwrap(); - assert!(!place.exists()); + assert!(!place.exists().unwrap()); place.delete().expect("deleting what is gone is not an error"); } From b7baf37ab44f6d5567b0330687bb37b6d2c82134 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:20:24 +0100 Subject: [PATCH 17/21] mcp-apps-cli helper: signout ends the grant, or leaves the login and says why `signout` deleted the tokens whatever came of the revocation: a login it could not read (an encrypted file without its passphrase) was reported as "no way to revoke" and deleted, leaving the grant alive at the server with nothing left to end it with. Now a login that can't be read, or that the server didn't revoke, is left in place and said, and `signout` fails; `--local` deletes without asking the server. `signout --url
      ` reaches the login of a server that is no longer configured or allowed (nothing is sent to it). Signing in again into the store that already holds a login revokes the one it replaces, which used to stay alive at the server. A refresh and `signout` hold the same lock, on a file beside the logins: a helper that is refreshing can't write a token back after `signout` deleted it, and two sessions' helpers no longer spend the same rotating refresh token (the second waits, then reads what the first wrote). A running helper reads the kept login for each request, so it stops with the deletion: a test now holds that. --- polyfills/apps/claude-code/README.md | 14 +- polyfills/apps/claude-code/SECURITY.md | 12 +- .../apps/claude-code/helper-rs/src/mcp.rs | 26 ++- .../apps/claude-code/helper-rs/src/oauth.rs | 216 ++++++++++++++---- .../apps/claude-code/helper-rs/src/vault.rs | 12 + .../apps/claude-code/helper-rs/tests/gate.rs | 84 ++++++- 6 files changed, 292 insertions(+), 72 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index ff5a789c..7878e0fa 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -193,9 +193,17 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. managed MCP policy, or an allow or deny list for MCP servers, the helper uses no server at all, so this is off there too. The server's administrators see a client named `mcp-apps-cli`. - - **To end it:** `mcp-apps-cli-helper signout ` deletes the tokens - and asks the server to revoke them where it offers that; removing the - server from the setting stops their use at once. + - **To end it:** `mcp-apps-cli-helper signout ` asks the server to + revoke the tokens where it offers that, then deletes them. A helper that + is running reads the login for each request, so it stops with the + deletion, and can't write a refreshed token back after it. A login that + can't be read (an encrypted file without its passphrase), or that the + server didn't revoke, is left in place and said, so you can try again: + `--local` deletes it without asking the server. For a server that has left + your configuration, `signout --url
      ` deletes the login + made for that address (nothing is sent). Signing in again revokes the + login it replaces. Removing the server from the setting stops the use of + its tokens at once. `signin` prints one line ("Press Enter to review and approve in your browser"), then serves a small consent page on a loopback address of its own diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 7064fa49..57adede1 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -125,8 +125,16 @@ file: the encrypted file protects the tokens at rest, and is not the Keychain's equal. A connection that carries a token follows no redirect, and says once a session, in the debug log, that it is using its own sign-in. `signout ` asks the -server to revoke the tokens where it offers that (RFC 7009) and deletes them; -taking the server off the setting stops their use at once. These are the +server to revoke the tokens where it offers that (RFC 7009) and deletes them. +A running helper reads the kept login for each request and holds no copy of +it, so it stops with the deletion; a refresh and `signout` hold the same lock +on a file beside the logins, so a token being refreshed is never written back +after it, and two sessions never spend the same rotating refresh token. A +login that can't be read, or that the server didn't revoke, is left in place +(`--local` deletes it without asking the server; `--url
      ` reaches the +login of a server that has left the configuration, sending nothing). A new +sign-in revokes the login it replaces. +Taking the server off the setting stops the use of its tokens at once. These are the helper's own tokens, issued to it by the server: Claude Code's are still never read. diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 50204bb4..8d773aba 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -792,16 +792,24 @@ mod tests { assert!(!clients.uses_own_sign_in("docs")); let off = clients.read_resource("docs", view.clone(), None).await.expect_err("the token was used after the name was taken off the list"); assert!(format!("{off:#}").contains("Servers that need sign-in"), "{serves}: {off:#}"); - } - // Each sign-in is in one file only this user can read. - #[cfg(unix)] - { - use std::os::unix::fs::PermissionsExt; - let files: Vec<_> = std::fs::read_dir(dir.join("tokens")).unwrap().flatten().collect(); - assert_eq!(files.len(), modes.len()); - for file in files { - assert_eq!(file.metadata().unwrap().permissions().mode() & 0o777, 0o600); + + // The sign-in is in one file only this user can read. + let place = crate::vault::Place::of(crate::vault::Kind::File, "docs", &server.url, None).unwrap(); + #[cfg(unix)] + if let crate::vault::Place::File(path) = &place { + use std::os::unix::fs::PermissionsExt; + assert_eq!(path.metadata().unwrap().permissions().mode() & 0o777, 0o600); } + // Signed out elsewhere (`signout` deletes the login): a helper that is running, with + // a connection open and a token it used a moment ago, sends nothing more with it. + clients.set_own_sign_in("docs", true).await; + clients.read_resource("docs", view.clone(), None).await.unwrap_or_else(|e| panic!("listed again: {e:#}; {}", seen())); + let sent = server.requests().iter().filter(|r| r.contains(" yes ")).count(); + place.delete().unwrap(); + let out = clients.read_resource("docs", view.clone(), None).await.expect_err("the token was used after the login was deleted"); + assert!(format!("{out:#}").contains("signed out or expired"), "{serves}: {out:#}"); + assert_eq!(server.requests().iter().filter(|r| r.contains(" yes ")).count(), sent, "{}", seen()); + assert!(!place.exists().unwrap(), "{serves}: the deleted login was written back"); } let _ = std::fs::remove_dir_all(&dir); } diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index c46d3520..bf149135 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -21,7 +21,13 @@ //! the terminal asks the same; `--yes` and `MCP_APPS_CLI_SIGNIN_YES=1` skip //! it (vault.rs for the stores, consent.rs for the page); //! - `mcp-apps-cli-helper signout ` asks the server to revoke the -//! tokens where it offers that (RFC 7009) and deletes them; +//! tokens where it offers that (RFC 7009) and deletes them; a login it +//! can't read, or that the server didn't revoke, is left in place so the +//! person can try again, unless they pass `--local` (delete, ask nothing); +//! `--url
      ` deletes the login of a server that is no longer +//! configured. A helper that is running reads the login again for each +//! request, so it stops with the deletion, and the two hold the same lock +//! (vault.rs) so a token being refreshed is never written back after it; //! - the mod tells the helper, with each request that names a server, whether //! the person listed it; only then does the helper's connection carry the //! token (refreshed by rmcp when it ends). Nothing is written to Claude @@ -36,7 +42,7 @@ use std::time::Duration; use anyhow::{Context, Result, anyhow, bail}; use async_trait::async_trait; -use rmcp::transport::auth::{AuthClient, AuthError, AuthorizationManager, AuthorizationRequest, AuthorizationSession, CredentialStore, StoredCredentials}; +use rmcp::transport::auth::{AuthClient, AuthError, AuthorizationManager, AuthorizationRequest, AuthorizationSession, CredentialRefreshGuard, CredentialStore, StoredCredentials}; use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio::net::{TcpListener, TcpStream}; @@ -51,6 +57,20 @@ pub const MORE: &str = "https://github.com/idosal/AgentPolyfill/tree/main/polyfi /// The tokens of one server. struct TokenStore { place: Place, + name: String, + url: String, +} + +impl TokenStore { + fn of(place: Place, name: &str, url: &str) -> Self { + TokenStore { place, name: name.to_string(), url: url.to_string() } + } +} + +/// The lock on the login of `name` at `url` (vault.rs), taken off the runtime's threads: it can wait. +async fn locked(name: &str, url: &str) -> Result { + let (name, url) = (name.to_string(), url.to_string()); + tokio::task::spawn_blocking(move || vault::lock(&name, &url)).await? } fn failed(error: impl std::fmt::Display) -> AuthError { @@ -73,6 +93,14 @@ impl CredentialStore for TokenStore { async fn clear(&self) -> Result<(), AuthError> { self.place.delete().map_err(failed) } + + /// Held from before the kept tokens are read until the refreshed ones are + /// written: each Claude Code session has a helper of its own with the same + /// login, and a refresh token that rotates works once. The second helper + /// waits, then reads what the first one wrote. `signout` holds it too. + async fn acquire_refresh_guard(&self) -> Result, AuthError> { + locked(&self.name, &self.url).await.map(|lock| Some(CredentialRefreshGuard::new(lock))).map_err(failed) + } } /// A url the helper may sign in to or send a token to: `https`, or an address @@ -99,7 +127,7 @@ pub async fn client(name: &str, url: &str) -> Result Result Result { - let _ = name; let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; - manager.set_credential_store(TokenStore { place }); + manager.set_credential_store(TokenStore::of(place, name, url)); let found = manager.resolve_metadata().await.map_err(|e| anyhow!("the server's sign-in page was not found: {e}"))?; manager.set_metadata(found.metadata); let request = AuthorizationRequest::new(redirect.to_string()).with_client_name("mcp-apps-cli"); @@ -339,9 +366,14 @@ pub async fn signin_in_browser(name: &str, url: &str, kind: Kind, ready: impl Fn } } +/// The server `signin` or `signout` is about. +fn server_name(words: &[String]) -> Result<&String> { + words.get(2).filter(|w| !w.starts_with("--")).with_context(|| format!("usage: mcp-apps-cli-helper {} ", words[1])) +} + /// The server `signin` or `signout` is about, and its url. fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { - let name = words.get(2).filter(|w| !w.starts_with("--")).with_context(|| format!("usage: mcp-apps-cli-helper {} ", words[1]))?; + let name = server_name(words)?; let cwd = args.cwd.clone().unwrap_or_else(|| std::env::current_dir().unwrap_or_default()); let entry = crate::config::resolve(args, &cwd, name).map_err(|why| anyhow!("not using MCP server \"{name}\": {why}"))?; let url = entry.config["url"].as_str().context("only a server reached by a url needs sign-in")?.to_string(); @@ -352,6 +384,11 @@ fn flag(words: &[String], name: &str) -> bool { words.iter().any(|w| w == name) } +/// The word after `name`, if both are there. +fn value(words: &[String], name: &str) -> Option { + words.iter().position(|w| w == name).and_then(|i| words.get(i + 1)).cloned() +} + /// The final lines of a sign-in that worked. fn signed_in(name: &str, place: &Place) { println!("\nSigned in to {name}. The login is kept in the {}.", place.short()); @@ -370,6 +407,9 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { // `--yes`, or `MCP_APPS_CLI_SIGNIN_YES=1` for someone who always wants it // (a terminal can't read /config), and `--no-browser`: no consent page. let assumed = flag(words, "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); + // The login this sign-in will replace, if the same store holds one: read + // now, revoked once the new one is kept (`retire_earlier`). + let replaced = Place::of(kind, name, &url, vault::passphrase()).and_then(|place| place.read().ok().flatten()); if !assumed && !flag(words, "--no-browser") { let interactive = std::io::stdin().is_terminal(); let place = signin_in_browser(name, &url, kind, |page| { @@ -394,7 +434,7 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { match place { Some(place) => { signed_in(name, &place); - retire_others(name, &url, &place).await; + retire_earlier(name, &url, &place, replaced).await; } None => println!("Not signed in to {name}."), } @@ -455,65 +495,138 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { }) .await?; signed_in(name, &place); - retire_others(name, &url, &place).await; + retire_earlier(name, &url, &place, replaced).await; Ok(()) } -/// Asks the server to revoke the tokens in `path` (RFC 7009): what to say about it. -async fn revoke(name: &str, url: &str, place: &Place) -> String { - let none = format!("{name} offers no way to revoke from here: remove \"mcp-apps-cli\" in its connected apps."); - let Ok(Some(kept)) = place.read() else { return none }; - let attempt = async { - let manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; - let found = manager.resolve_metadata().await.map_err(|e| anyhow!("{e}"))?; - let Some(endpoint) = found.metadata.additional_fields.get("revocation_endpoint").and_then(|v| v.as_str()).map(str::to_string) else { return Ok(false) }; - if !allowed(&endpoint) { - bail!("its revocation address is {endpoint}, not https"); - } - let http = reqwest::Client::builder().timeout(Duration::from_secs(10)).redirect(reqwest::redirect::Policy::none()).build()?; - let client_id = kept["client_id"].as_str().unwrap_or_default(); - for (hint, field) in [("refresh_token", "refresh_token"), ("access_token", "access_token")] { - let Some(token) = kept["token_response"][field].as_str() else { continue }; - let body = url::form_urlencoded::Serializer::new(String::new()).append_pair("token", token).append_pair("token_type_hint", hint).append_pair("client_id", client_id).finish(); - let sent = http.post(&endpoint).header(reqwest::header::CONTENT_TYPE, "application/x-www-form-urlencoded").body(body).send().await?; - if !sent.status().is_success() { - bail!("it answered {}", sent.status()); - } +/// What came of asking a server to revoke a login. +enum Revocation { + Asked, + /// The server publishes no revocation endpoint. + NotOffered, + /// The login couldn't be read, so there was nothing to send. + Unreadable(anyhow::Error), + /// The server was asked and didn't do it, or couldn't be reached. + Failed(anyhow::Error), +} + +const ELSEWHERE: &str = "remove \"mcp-apps-cli\" in its connected apps"; + +/// Asks the server at `url` to revoke the tokens of the login `kept` (RFC +/// 7009), the refresh token first. False: it offers no way to. +async fn revoke_tokens(url: &str, kept: &serde_json::Value) -> Result { + let manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + let found = manager.resolve_metadata().await.map_err(|e| anyhow!("{e}"))?; + let Some(endpoint) = found.metadata.additional_fields.get("revocation_endpoint").and_then(|v| v.as_str()).map(str::to_string) else { return Ok(false) }; + if !allowed(&endpoint) { + bail!("its revocation address is {endpoint}, not https"); + } + let http = reqwest::Client::builder().timeout(Duration::from_secs(10)).redirect(reqwest::redirect::Policy::none()).build()?; + let client_id = kept["client_id"].as_str().unwrap_or_default(); + for (hint, field) in [("refresh_token", "refresh_token"), ("access_token", "access_token")] { + let Some(token) = kept["token_response"][field].as_str() else { continue }; + let body = url::form_urlencoded::Serializer::new(String::new()).append_pair("token", token).append_pair("token_type_hint", hint).append_pair("client_id", client_id).finish(); + let sent = http.post(&endpoint).header(reqwest::header::CONTENT_TYPE, "application/x-www-form-urlencoded").body(body).send().await?; + if !sent.status().is_success() { + bail!("it answered {}", sent.status()); } - Ok::(true) + } + Ok(true) +} + +/// Asks the server to revoke the login kept in `place`. +async fn revoke(url: &str, place: &Place) -> Revocation { + let kept = match place.read() { + Ok(Some(kept)) => kept, + Ok(None) => return Revocation::Unreadable(anyhow!("what is kept there is not a login")), + Err(why) => return Revocation::Unreadable(why), }; - match attempt.await { - Ok(true) => format!("Asked {name} to revoke the tokens."), - Ok(false) => none, - Err(why) => format!("{name} did not revoke the tokens ({why}): remove \"mcp-apps-cli\" in its connected apps."), + match revoke_tokens(url, &kept).await { + Ok(true) => Revocation::Asked, + Ok(false) => Revocation::NotOffered, + Err(why) => Revocation::Failed(why), } } -/// `mcp-apps-cli-helper signout [--mcp-config …] [--cwd …]` +fn deleted(place: &Place) { + match place { + Place::File(path) | Place::Encrypted(path, _) => println!("Deleted {}", path.display()), + Place::Keychain(_) => println!("Removed the tokens from the macOS Keychain."), + } +} + +/// `mcp-apps-cli-helper signout [--local] [--url
      ] [--mcp-config …] [--cwd …]` +/// +/// The server is asked to revoke the tokens, then they are deleted. A login +/// that can't be read (an encrypted file without its passphrase), or that the +/// server didn't revoke, is left where it is: deleting it would leave a grant +/// alive with nothing left to end it with. `--local` deletes without asking +/// the server. `--url` is for a login whose server is no longer in the +/// configuration, or no longer allowed, or now at another address: it names +/// the address the login was made for, and nothing is sent to it. pub async fn signout(args: crate::Args, words: &[String]) -> Result<()> { - let (name, url) = target(&args, words)?; + let name = server_name(words)?.clone(); + let named = value(words, "--url"); + let local = flag(words, "--local") || named.is_some(); + let url = match named { + Some(url) => url, + None => { + let hint = format!("to delete a login kept for a server that is no longer configured or allowed, name its address: mcp-apps-cli-helper signout {name} --url
      (nothing is sent to it)"); + target(&args, words).map_err(|why| anyhow!("{why:#}; {hint}"))?.1 + } + }; // Wherever it is kept: a login made before the store setting changed counts too. let places = vault::all_kept(&name, &url)?; if places.is_empty() { println!("Not signed in to {name}: nothing to delete."); return Ok(()); } + // No helper refreshes this login while it is revoked and deleted, or writes it back after. + let _lock = locked(&name, &url).await?; + let mut left = 0; for place in places { - println!("{}", revoke(&name, &url, &place).await); - place.delete().map_err(|why| anyhow!("deleting the tokens from {}: {why}", place.describe()))?; - match &place { - Place::File(path) | Place::Encrypted(path, _) => println!("Deleted {}", path.display()), - Place::Keychain(_) => println!("Removed the tokens from the macOS Keychain."), + let again = format!("or delete it without asking {name}: mcp-apps-cli-helper signout {name} --local"); + if local { + println!("{name} was not asked to revoke the tokens: {ELSEWHERE}."); + } else { + match revoke(&url, &place).await { + Revocation::Asked => println!("Asked {name} to revoke the tokens."), + Revocation::NotOffered => println!("{name} offers no way to revoke from here: {ELSEWHERE}."), + Revocation::Unreadable(why) => { + println!("The login in the {} was left in place: it can't be read, so {name} was not asked to revoke it ({why:#}). Run signout again once it can, {again}", place.short()); + left += 1; + continue; + } + Revocation::Failed(why) => { + println!("The login in the {} was left in place: {name} did not revoke the tokens ({why:#}). Run signout again later, {again}", place.short()); + left += 1; + continue; + } + } } + place.delete().map_err(|why| anyhow!("deleting the tokens from {}: {why}", place.describe()))?; + deleted(&place); + } + if left > 0 { + bail!("still signed in to {name}: {left} login{} left in place", if left == 1 { "" } else { "s" }); } Ok(()) } -/// After a sign-in into `kept`: the same server's login kept anywhere else -/// (made before the store setting changed) is revoked and removed, so one -/// login is active. One that can't be opened (an encrypted file without its -/// passphrase) is left alone, and said. -async fn retire_others(name: &str, url: &str, kept: &Place) { +/// After a sign-in into `kept`, so that one login is active: the login it +/// replaced in the same store (`replaced`, read before it was written over) +/// is revoked, and the same server's login kept in another store (made before +/// the store setting changed) is revoked and removed. One that can't be +/// opened (an encrypted file without its passphrase) or that the server +/// didn't revoke is left alone, and said: `signout` finds it. +async fn retire_earlier(name: &str, url: &str, kept: &Place, replaced: Option) { + if let Some(replaced) = replaced.filter(|old| old["token_response"].is_object()) { + match revoke_tokens(url, &replaced).await { + Ok(true) => println!("Asked {name} to revoke the login this one replaces."), + Ok(false) => println!("{name} offers no way to revoke the login this one replaces: {ELSEWHERE} (the older entry)."), + Err(why) => println!("{name} did not revoke the login this one replaces ({why:#}): {ELSEWHERE} (the older entry)."), + } + } let others = match vault::all_kept(name, url) { Ok(places) => places, Err(why) => { @@ -522,11 +635,14 @@ async fn retire_others(name: &str, url: &str, kept: &Place) { } }; for place in others.into_iter().filter(|p| p.kind() != kept.kind()) { - if let Err(why) = place.read() { - println!("An earlier login in the {} was left in place: {why:#}", place.short()); - continue; - } - let said = revoke(name, url, &place).await; + let said = match revoke(url, &place).await { + Revocation::Asked => format!("Asked {name} to revoke the tokens."), + Revocation::NotOffered => format!("{name} offers no way to revoke from here: {ELSEWHERE}."), + Revocation::Unreadable(why) | Revocation::Failed(why) => { + println!("An earlier login in the {} was left in place: {why:#}. To end it: mcp-apps-cli-helper signout {name}", place.short()); + continue; + } + }; match place.delete() { Ok(()) => println!("Removed the earlier login kept in the {}. {said}", place.short()), Err(why) => println!("The earlier login in the {} could not be removed: {why:#}", place.short()), diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index ac9ee874..60d2a58b 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -217,6 +217,18 @@ pub fn kept(name: &str, url: &str) -> Result> { Ok(all_kept(name, url)?.into_iter().next()) } +/// Held by whoever changes the login of one server at one url (a helper +/// refreshing its token, `signout`), across processes: a lock on a file +/// beside the logins, let go when this is dropped. Blocks until it is free. +pub fn lock(name: &str, url: &str) -> Result { + let folder = folder().ok_or_else(|| anyhow::anyhow!("no folder to keep the sign-in in"))?; + crate::store::private_folder(&folder)?; + let path = folder.join(format!("{}.lock", crate::store::file_name(name, url))); + let file = std::fs::OpenOptions::new().create(true).truncate(false).write(true).open(path)?; + file.lock()?; + Ok(file) +} + /// Refuses early, and says what to do, if `kind` can't be used here. pub fn usable(kind: Kind) -> Result<()> { if !kind.available() { diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 2d96c641..f921ba31 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -661,6 +661,12 @@ impl Drop for OAuthServer { } } +/// The logins kept in this world, by file name (a lock file beside them is not one). +fn logins(w: &World) -> Vec { + let names = |dir: std::fs::ReadDir| dir.flatten().map(|e| e.file_name().to_string_lossy().to_string()).filter(|n| !n.ends_with(".lock")).collect(); + std::fs::read_dir(w.root.join("tokens")).map(names).unwrap_or_default() +} + /// `mcp-apps-cli-helper docs …`, run as from a terminal: no plugin /// folder named, nothing on stdin. fn terminal(w: &World, args: &[&str]) -> Command { @@ -762,7 +768,7 @@ fn the_own_sign_in_is_opt_in_and_a_listed_server_is_discovered_after_signin_in_e let said = String::from_utf8_lossy(&out.stdout).to_string(); assert!(out.status.success() && said.contains("Asked docs to revoke the tokens.") && said.contains("Deleted "), "{serves}: {said} {}", String::from_utf8_lossy(&out.stderr)); assert!(requests().contains("200 POST /revoke no revoke\n"), "{serves}: {}", requests()); - assert!(std::fs::read_dir(w.root.join("tokens")).unwrap().next().is_none(), "{serves}: the file is still there"); + assert!(logins(&w).is_empty(), "{serves}: the file is still there"); let why = refused(&w.discover_listed(&["docs"], true), "docs"); assert!(why.contains("signed out or expired"), "{serves}: {why}"); } @@ -799,7 +805,7 @@ fn signout_says_when_the_server_cannot_revoke() { let out = terminal(&w, &["signout", "docs"]).output().unwrap(); let said = String::from_utf8_lossy(&out.stdout).to_string(); assert!(said.contains("docs offers no way to revoke from here: remove \"mcp-apps-cli\" in its connected apps.") && said.contains("Deleted "), "{said}"); - assert!(std::fs::read_dir(w.root.join("tokens")).unwrap().next().is_none()); + assert!(logins(&w).is_empty()); // Nothing left to sign out of. let again = String::from_utf8_lossy(&terminal(&w, &["signout", "docs"]).output().unwrap().stdout).to_string(); assert!(again.contains("Not signed in to docs: nothing to delete."), "{again}"); @@ -872,7 +878,7 @@ fn the_consent_page_is_answered_in_the_browser_and_a_refusal_keeps_nothing() { assert!(child.wait().unwrap().success()); let out: Vec = lines.by_ref().map_while(Result::ok).collect(); assert!(out.iter().any(|l| l.contains("Signed in to docs. The login is kept in the plain file.")), "{out:?}"); - assert_eq!(std::fs::read_dir(w.root.join("tokens")).unwrap().count(), 1); + assert_eq!(logins(&w).len(), 1); // The page is gone with the answer. assert!(Command::new("node").arg(oauth_script()).args(["consent", &page, "refuse"]).output().map_or(true, |o| !o.status.success())); } @@ -945,7 +951,7 @@ fn changing_the_store_setting_keeps_one_login_and_signout_removes_every_copy() { let server = OAuthServer::start(&w, "modern"); let requests = || std::fs::read_to_string(w.marker("oauth-requests")).unwrap_or_default(); w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); - let tokens = || -> Vec { std::fs::read_dir(w.root.join("tokens")).map(|d| d.flatten().map(|e| e.file_name().to_string_lossy().to_string()).collect()).unwrap_or_default() }; + let tokens = || logins(&w); let browser_signed_in = |env: &[(&str, &str)], file_store: bool| { let (mut child, page, _lines) = browser_signin_with(&w, file_store, env); let (ok, said) = browser_plays(&page, &["accept"]); @@ -990,10 +996,10 @@ fn an_encrypted_sign_in_is_made_in_the_page_and_read_with_the_passphrase() { let (ok, said) = browser_plays(&page, &["accept"]); assert!(ok && said.contains("saved:encrypted no-store-choice") && said.contains("answered 200 signed-in"), "{said}"); assert!(child.wait().unwrap().success()); - let files: Vec<_> = std::fs::read_dir(w.root.join("tokens")).unwrap().flatten().collect(); + let files = logins(&w); assert_eq!(files.len(), 1); - let on_disk = std::fs::read_to_string(files[0].path()).unwrap(); - assert!(files[0].file_name().to_string_lossy().ends_with(".enc") && !on_disk.contains("access_token") && !on_disk.contains("client_id"), "{on_disk}"); + let on_disk = std::fs::read_to_string(w.root.join("tokens").join(&files[0])).unwrap(); + assert!(files[0].ends_with(".enc") && !on_disk.contains("access_token") && !on_disk.contains("client_id"), "{on_disk}"); // Without the passphrase: said, not guessed. let without = w.discover_with(&["docs"], true, &[]); @@ -1005,8 +1011,70 @@ fn an_encrypted_sign_in_is_made_in_the_page_and_read_with_the_passphrase() { assert_eq!(docs["ok"], true, "{docs}"); assert_eq!(docs["tools"]["show"]["resourceUri"], "ui://demo/view.html", "{docs}"); + // Signing out without the passphrase: the login can't be read, so the server can't be + // asked to revoke it. It is left in place, and said, rather than deleted with the grant alive. + let kept = || logins(&w).len(); + let out = terminal_with(&w, &["signout", "docs"], false).output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(!out.status.success() && said.contains("left in place") && said.contains("signout docs --local"), "{said} {}", String::from_utf8_lossy(&out.stderr)); + assert_eq!(kept(), 1); + let out = terminal_with(&w, &["signout", "docs"], false).env("MCP_APPS_CLI_PASSPHRASE", "correct horse battery").output().unwrap(); let said = String::from_utf8_lossy(&out.stdout).to_string(); assert!(said.contains("Asked docs to revoke the tokens.") && said.contains("Deleted "), "{said}"); - assert_eq!(std::fs::read_dir(w.root.join("tokens")).unwrap().count(), 0); + assert_eq!(kept(), 0); +} + +/// `signin docs --yes` from a terminal, the person's browser played by node: what it printed after the address. +fn terminal_signin(w: &World) -> String { + let mut signin = terminal(w, &["signin", "docs", "--yes"]).stdout(Stdio::piped()).spawn().unwrap(); + let mut lines = BufReader::new(signin.stdout.take().unwrap()).lines(); + let address = loop { + if lines.next().expect("signin shows an address").unwrap().starts_with("Open this address") { + break lines.next().unwrap().unwrap(); + } + }; + assert!(Command::new("node").arg(oauth_script()).args(["browse", &address]).output().unwrap().status.success()); + let rest: Vec = lines.map_while(Result::ok).collect(); + assert!(signin.wait().unwrap().success(), "{rest:?}"); + rest.join("\n") +} + +// Signing in again where a login is already kept revokes the one it replaces +// (it would otherwise stay alive at the server with nothing left to end it +// with). `signout --local` deletes without asking the server. And a login +// whose server has left the configuration is still reached, by its address, +// with nothing sent. +#[test] +fn a_new_signin_revokes_the_login_it_replaces_and_signout_reaches_one_whose_server_is_gone() { + let w = World::new("signout-gone"); + let server = OAuthServer::start(&w, "modern"); + let revokes = || std::fs::read_to_string(w.marker("oauth-requests")).unwrap_or_default().matches("POST /revoke").count(); + let kept = || logins(&w).len(); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let first = terminal_signin(&w); + assert!(!first.contains("replaces") && revokes() == 0, "{first}"); + // Again, into the same store: one login kept, the earlier one revoked (its refresh token, then its access token). + let second = terminal_signin(&w); + assert!(second.contains("Asked docs to revoke the login this one replaces."), "{second}"); + assert_eq!((kept(), revokes()), (1, 2)); + + // `--local`: deleted, the server not asked. + let out = terminal(&w, &["signout", "docs", "--local"]).output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(out.status.success() && said.contains("docs was not asked to revoke the tokens") && said.contains("Deleted "), "{said}"); + assert_eq!((kept(), revokes()), (0, 2)); + + // The server leaves the configuration with a login still kept. + terminal_signin(&w); + w.claude_json(json!({}), json!({})); + let out = terminal(&w, &["signout", "docs"]).output().unwrap(); + let why = String::from_utf8_lossy(&out.stderr).to_string(); + assert!(!out.status.success() && why.contains("signout docs --url
      "), "{why}"); + assert_eq!(kept(), 1); + let before = revokes(); + let out = terminal(&w, &["signout", "docs", "--url", &server.url]).output().unwrap(); + let said = String::from_utf8_lossy(&out.stdout).to_string(); + assert!(out.status.success() && said.contains("was not asked to revoke") && said.contains("Deleted "), "{said} {}", String::from_utf8_lossy(&out.stderr)); + assert_eq!((kept(), revokes()), (0, before)); } From fd88e75711b1e3ea61347d6fe260f013c077ce51 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:25:28 +0100 Subject: [PATCH 18/21] mcp-apps-cli: taking a server off "Own sign-in (OAuth)" reaches the helper with any request The mod said whether a server was listed only with the requests that name one (/discover, /prewarm, /open): an app that was already open kept its signed-in connection for its replies after the server was taken off the list. The mod now sends the list with every request, and the helper applies it before the route. In the helper, a change no longer waits for a connection that is being made under the old choice (it held the lock): that attempt hears of the change and is dropped. What the server listed under the old choice is forgotten, in the helper and in the mod, since a signed-in server may list other apps. A login still read from a store other than the one that is set (a plain file kept from before the setting moved to the Keychain, say) is used as before, and now said, in a toast, with the command that moves it. --- polyfills/apps/claude-code/SECURITY.md | 5 +- .../apps/claude-code/helper-rs/src/mcp.rs | 129 ++++++++++++++---- .../apps/claude-code/helper-rs/src/oauth.rs | 7 +- .../apps/claude-code/helper-rs/src/server.rs | 15 +- .../apps/claude-code/helper-rs/src/vault.rs | 15 +- .../apps/claude-code/helper-rs/tests/gate.rs | 5 +- .../apps/claude-code/mod/hooks/helper.ts | 24 +++- .../apps/claude-code/mod/hooks/settings.ts | 7 +- .../claude-code/mod/tests/mcp-apps.test.tsx | 23 ++-- 9 files changed, 173 insertions(+), 57 deletions(-) diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 57adede1..68555900 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -134,7 +134,10 @@ login that can't be read, or that the server didn't revoke, is left in place (`--local` deletes it without asking the server; `--url
      ` reaches the login of a server that has left the configuration, sending nothing). A new sign-in revokes the login it replaces. -Taking the server off the setting stops the use of its tokens at once. These are the +Taking the server off the setting stops the use of its tokens at once: the mod +sends the list with every request to the helper, whichever it is for, and the +helper closes the signed-in connection (one still being made included) and +forgets what the server listed over it before doing anything else. These are the helper's own tokens, issued to it by the server: Claude Code's are still never read. diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 8d773aba..77ad57a1 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -51,8 +51,12 @@ pub struct Clients { /// The servers the person listed under "Own sign-in (OAuth)": the mod says /// so with each request that names a server. Empty unless it does. own_sign_in: std::sync::Mutex>, - /// The servers whose open connection carries the helper's own sign-in. - signed_in: std::sync::Mutex>, + /// The servers whose open connection carries the helper's own sign-in, + /// and the store each login was read from. + signed_in: std::sync::Mutex>, + /// For each server, a count of the changes of its place on that list: a + /// connection being made hears of one and is dropped. + sign_in_changes: std::sync::Mutex>>, ask: Asker, } @@ -90,7 +94,8 @@ impl Clients { discovered: Mutex::new(HashMap::new()), gates: std::sync::Mutex::new(HashMap::new()), own_sign_in: std::sync::Mutex::new(HashSet::new()), - signed_in: std::sync::Mutex::new(HashSet::new()), + signed_in: std::sync::Mutex::new(HashMap::new()), + sign_in_changes: std::sync::Mutex::new(HashMap::new()), ask, } } @@ -168,26 +173,54 @@ impl Clients { true } - /// Whether the person listed `server` under "Own sign-in (OAuth)", as the - /// mod says with each request. A change closes the connection, so the next - /// one is made as the setting now is: removing a name stops the use of its - /// token at once. + /// The servers the person listed under "Own sign-in (OAuth)", as the mod + /// says with every request, whichever route it is for: each server whose + /// place on the list changed is handled as `set_own_sign_in` does. + pub async fn set_own_sign_in_servers(&self, listed: &HashSet) { + let before = self.own_sign_in.lock().unwrap().clone(); + for server in before.symmetric_difference(listed) { + self.set_own_sign_in(server, listed.contains(server)).await; + } + } + + /// Whether the person listed `server` under "Own sign-in (OAuth)". A + /// change takes effect at once: a connection being made under the old + /// choice is dropped before it is waited for, the open one is closed (so + /// what was in flight on it fails, and removing a name stops the use of + /// its token), and what the server listed under the old choice is + /// forgotten: signed in, it may list other apps. pub async fn set_own_sign_in(&self, server: &str, listed: bool) { - let changed = { + { let mut own = self.own_sign_in.lock().unwrap(); - if listed { own.insert(server.to_string()) } else { own.remove(server) } - }; - if changed { - if let Some((client, _)) = self.open.lock().await.remove(server) { - client.cancellation_token().cancel(); + let changed = if listed { own.insert(server.to_string()) } else { own.remove(server) }; + if !changed { + return; } - self.signed_in.lock().unwrap().remove(server); + // Said with the list held: one connecting reads the list and hears of a change together. + self.sign_in_changes.lock().unwrap().entry(server.to_string()).or_insert_with(|| watch::Sender::new(0)).send_modify(|count| *count += 1); + } + // One connecting (which holds this lock) has heard, and lets go of it. + if let Some((client, _)) = self.open.lock().await.remove(server) { + client.cancellation_token().cancel(); } + self.signed_in.lock().unwrap().remove(server); + self.discovered.lock().await.remove(server); } /// Whether the open connection to `server` carries the helper's own sign-in. pub fn uses_own_sign_in(&self, server: &str) -> bool { - self.signed_in.lock().unwrap().contains(server) + self.signed_in.lock().unwrap().contains_key(server) + } + + /// What to tell the person about the login the connection to `server` + /// carries: that it is kept somewhere other than where logins are set to + /// be kept (it was made before the setting changed, and is still used). + pub fn own_sign_in_note(&self, server: &str) -> Option { + let kept = *self.signed_in.lock().unwrap().get(server)?; + let set = crate::vault::chosen(&[]).ok()?; + (kept != set).then(|| { + format!("the login is kept in the {}, not the {} that logins are set to be kept in: run `mcp-apps-cli-helper signin {server}` again to move it", kept.short(), set.short()) + }) } /// The entry Claude Code would use for `server`, or why none is used @@ -206,6 +239,7 @@ impl Clients { // The config gate first: a name it refuses is never asked about. let entry = self.entry(server)?; let epoch = self.admit(server, given.take()).await?; + let mut changes = self.sign_in_changes.lock().unwrap().entry(server.to_string()).or_insert_with(|| watch::Sender::new(0)).subscribe(); self.guarded(server, epoch, async { let mut open = self.open.lock().await; if let Some(found) = open.get(server) { @@ -214,13 +248,22 @@ impl Clients { if self.revocation(server) > epoch { bail!("Claude Code stopped using MCP server \"{server}\""); } - let own = self.own_sign_in.lock().unwrap().contains(server); - let (client, signed_in) = connect(&entry.config, &self.cwd, server, own).await.with_context(|| format!("connecting to {server}"))?; - if signed_in { - self.signed_in.lock().unwrap().insert(server.to_string()); - } else { - self.signed_in.lock().unwrap().remove(server); - } + // The person's choice for this server, and from here any change of it: a + // connection that is slow to start is not waited for under a choice they took back. + let own = { + let own = self.own_sign_in.lock().unwrap(); + changes.borrow_and_update(); + own.contains(server) + }; + let connected = tokio::select! { + connected = connect(&entry.config, &self.cwd, server, own) => connected, + _ = changes.changed() => bail!("the \"Own sign-in (OAuth)\" setting changed for \"{server}\" while it was connecting"), + }; + let (client, signed_in) = connected.with_context(|| format!("connecting to {server}"))?; + match signed_in { + Some(store) => self.signed_in.lock().unwrap().insert(server.to_string(), store), + None => self.signed_in.lock().unwrap().remove(server), + }; let client = Arc::new(client); open.insert(server.to_string(), (client.clone(), entry.scope)); Ok((client, entry.scope)) @@ -456,9 +499,9 @@ fn sign_in_error(name: &str, config: &Value, listed: bool, error: ClientInitiali if wanted { anyhow!("{error:#}{}", sign_in_hint(name, listed)) } else { error } } -/// A connection to `name`, and whether it carries the helper's own sign-in -/// (`own`: the person listed the server for it). -async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result<(RunningService, bool)> { +/// A connection to `name`, and, if it carries the helper's own sign-in (`own`: +/// the person listed the server for it), the store the login is kept in. +async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result<(RunningService, Option)> { let url = config.get("url").and_then(Value::as_str); match config::kind(config) { "http" => { @@ -474,9 +517,9 @@ async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result // (each request of 2026-07-28, and the 2025 handshake and what // follows it). A header of the person's own wins. let signed_in = if own && can_sign_in(config) { crate::oauth::client(name, url).await? } else { None }; - let used = signed_in.is_some(); + let used = signed_in.as_ref().map(|(_, store)| *store); let started = match signed_in { - Some(auth) => client_info().serve_with_lifecycle(StreamableHttpClientTransport::with_client(auth, transport_config), lifecycle()).await, + Some((auth, _)) => client_info().serve_with_lifecycle(StreamableHttpClientTransport::with_client(auth, transport_config), lifecycle()).await, None => client_info().serve_with_lifecycle(StreamableHttpClientTransport::from_config(transport_config), lifecycle()).await, }; started.map(|service| (service, used)).map_err(|e| sign_in_error(name, config, own, e)) @@ -486,7 +529,7 @@ async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result // gets the handshake, at 2025-11-25. "sse" => { let url = url.ok_or_else(|| anyhow!("an sse server needs a url"))?; - Ok((client_info().serve(crate::sse::connect(url, headers(config)).await?).await?, false)) + Ok((client_info().serve(crate::sse::connect(url, headers(config)).await?).await?, None)) } _ => { let command = config.get("command").and_then(Value::as_str).ok_or_else(|| anyhow!("a stdio server needs a command"))?; @@ -511,7 +554,7 @@ async fn connect(config: &Value, cwd: &PathBuf, name: &str, own: bool) -> Result cmd.creation_flags(crate::win::NO_WINDOW); }); let (transport, _stderr) = TokioChildProcess::builder(command).stderr(std::process::Stdio::null()).spawn()?; - client_info().serve_with_lifecycle(transport, lifecycle()).await.map(|service| (service, false)).map_err(startup_error) + client_info().serve_with_lifecycle(transport, lifecycle()).await.map(|service| (service, None)).map_err(startup_error) } } } @@ -654,6 +697,31 @@ mod tests { assert!(sent(&elsewhere).is_empty(), "the other origin was sent {:?}", sent(&elsewhere)); } + // Taking a server off "Own sign-in (OAuth)" (or putting it on) while a connection to it is + // being made: the change doesn't wait for a server that is slow to answer, and the + // connection made under the old choice is dropped, not used. + #[tokio::test] + async fn a_connection_being_made_is_dropped_when_the_sign_in_setting_changes() { + // Accepts (the system does) and never answers. + let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); + let config = json!({"mcpServers": {"slow": {"type": "http", "url": format!("http://{}/mcp", listener.local_addr().unwrap())}}}).to_string(); + let args = Args { mcp_config: vec![config], ..Args::default() }; + let clients = Arc::new(Clients::with_asker(args, std::env::temp_dir(), Arc::new(|_| Box::pin(async { Some(1) })))); + let connecting = tokio::spawn({ + let clients = clients.clone(); + async move { clients.discover("slow", false).await } + }); + tokio::time::sleep(Duration::from_millis(400)).await; + assert!(!connecting.is_finished(), "the server that never answers answered"); + tokio::time::timeout(Duration::from_secs(5), clients.set_own_sign_in("slow", true)).await.expect("the setting waited for the slow connection"); + let dropped = tokio::time::timeout(Duration::from_secs(5), connecting).await.expect("the connection went on").unwrap().expect_err("a server that never answers was discovered"); + assert!(format!("{dropped:#}").contains("setting changed"), "{dropped:#}"); + assert!(clients.open.lock().await.is_empty()); + // The same choice said again changes nothing. + clients.set_own_sign_in("slow", true).await; + drop(listener); + } + /// The stand-in server that needs sign-in (tests/oauth-server.mjs): /// its child, its url and its request log. struct OAuthServer { @@ -788,8 +856,11 @@ mod tests { server.clients(json!({})).read_resource("docs", view.clone(), None).await.unwrap_or_else(|e| panic!("a new helper with the kept sign-in: {e:#}; {}", seen())); // Taking the name off the list stops the use of the token at once. assert!(clients.uses_own_sign_in("docs")); + assert!(clients.discovered.lock().await.contains_key("docs")); clients.set_own_sign_in("docs", false).await; assert!(!clients.uses_own_sign_in("docs")); + // What it listed while signed in is not kept for the connection that is not. + assert!(!clients.discovered.lock().await.contains_key("docs"), "{serves}: the signed-in tool list outlived the setting"); let off = clients.read_resource("docs", view.clone(), None).await.expect_err("the token was used after the name was taken off the list"); assert!(format!("{off:#}").contains("Servers that need sign-in"), "{serves}: {off:#}"); diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index bf149135..14e989e7 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -120,20 +120,21 @@ pub fn allowed(url: &str) -> bool { /// The client for `name` at `url`, carrying its token and refreshing it, if /// the person signed in to it with `signin` (the caller has checked that they -/// listed the server). -pub async fn client(name: &str, url: &str) -> Result>> { +/// listed the server), and the store the login is kept in. +pub async fn client(name: &str, url: &str) -> Result, Kind)>> { if !allowed(url) { return Ok(None); } let Some(place) = vault::kept(name, url)? else { return Ok(None) }; let mut manager = AuthorizationManager::new(url).await.map_err(|e| anyhow!("{e}"))?; + let kind = place.kind(); manager.set_credential_store(TokenStore::of(place, name, url)); if !manager.initialize_from_store().await.map_err(|e| anyhow!("{e}"))? { return Ok(None); } // No redirect is followed: the token goes to the server's own url only. let http = reqwest::Client::builder().pool_max_idle_per_host(0).redirect(reqwest::redirect::Policy::none()).build()?; - Ok(Some(AuthClient::new(http, manager))) + Ok(Some((AuthClient::new(http, manager), kind))) } /// Starts the flow with the server: its metadata, a client registered, and diff --git a/polyfills/apps/claude-code/helper-rs/src/server.rs b/polyfills/apps/claude-code/helper-rs/src/server.rs index febcddf9..52477b8c 100644 --- a/polyfills/apps/claude-code/helper-rs/src/server.rs +++ b/polyfills/apps/claude-code/helper-rs/src/server.rs @@ -250,10 +250,14 @@ async fn route(helper: &Arc, path: &str, input: Value) -> Option Ok(helper.views.ping().await), @@ -274,6 +278,9 @@ async fn route(helper: &Arc, path: &str, input: Value) -> Option { let mut answer = json!({ "ok": true, "ownSignIn": helper.mcp.uses_own_sign_in(&server) }); + if let Some(note) = helper.mcp.own_sign_in_note(&server) { + answer["ownSignInNote"] = json!(note); + } if let (Value::Object(a), Value::Object(f)) = (&mut answer, found) { a.extend(f); } diff --git a/polyfills/apps/claude-code/helper-rs/src/vault.rs b/polyfills/apps/claude-code/helper-rs/src/vault.rs index 60d2a58b..9ebfaee6 100644 --- a/polyfills/apps/claude-code/helper-rs/src/vault.rs +++ b/polyfills/apps/claude-code/helper-rs/src/vault.rs @@ -54,6 +54,15 @@ impl Kind { } } + /// The store in a few words, for a line that says where a login is kept. + pub fn short(self) -> &'static str { + match self { + Kind::Keychain => "macOS Keychain", + Kind::Encrypted => "encrypted file", + Kind::File => "plain file", + } + } + /// Whether this machine can keep tokens that way (the first two: macOS only for now). pub fn available(self) -> bool { match self { @@ -131,11 +140,7 @@ impl Place { /// The same, short, for the line that says the sign-in is done. pub fn short(&self) -> &'static str { - match self { - Place::Keychain(_) => "macOS Keychain", - Place::Encrypted(..) => "encrypted file", - Place::File(_) => "plain file", - } + self.kind().short() } pub fn read(&self) -> Result> { diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index f921ba31..395f0104 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -120,7 +120,7 @@ impl World { } fn discover_with(&self, names: &[&str], listed: bool, vars: &[(&str, &str)]) -> Vec<(String, Value)> { let helper = Helper::start_with(self, vars); - let answers = names.iter().map(|n| (n.to_string(), helper.post("/discover", &json!({"server": n, "ownSignIn": listed})))).collect(); + let answers = names.iter().map(|n| (n.to_string(), helper.post("/discover", &json!({"server": n, "ownSignInServers": if listed { vec![*n] } else { vec![] }})))).collect(); // A started server's marker is written at once; let any that would be, be. std::thread::sleep(Duration::from_millis(300)); answers @@ -964,6 +964,9 @@ fn changing_the_store_setting_keeps_one_login_and_signout_removes_every_copy() { let later = w.discover_with(&["docs"], true, &[("MCP_APPS_CLI_TOKEN_STORE", "encrypted"), ("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")]); let (_, docs) = later.iter().find(|(n, _)| n == "docs").unwrap(); assert_eq!(docs["ok"], true, "the earlier login is not read after the setting changed: {docs}"); + // And it is said: the login is still in the plain file, with what moves it. + let note = docs["ownSignInNote"].as_str().unwrap_or_default(); + assert!(note.contains("kept in the plain file, not the encrypted file") && note.contains("mcp-apps-cli-helper signin docs"), "{docs}"); // 2. Signing in again under the new setting: one login left, in the new store, the old one revoked. let before = requests().matches("POST /revoke").count(); browser_signed_in(&[("MCP_APPS_CLI_TOKEN_STORE", "encrypted"), ("MCP_APPS_CLI_PASSPHRASE", "correct horse battery")], false); diff --git a/polyfills/apps/claude-code/mod/hooks/helper.ts b/polyfills/apps/claude-code/mod/hooks/helper.ts index a16dba1c..06d68f21 100644 --- a/polyfills/apps/claude-code/mod/hooks/helper.ts +++ b/polyfills/apps/claude-code/mod/hooks/helper.ts @@ -3,7 +3,7 @@ import type { EngineInterface, On } from 'claude-code' import type { HelperEndpoint, HelperMessage, UiTool, View } from './state' import { allowDownload, allowTool, appMessage, onNotify, openLink, plainText } from './consent' -import { ownSignIn } from './settings' +import { ownSignIn, ownSignInServers } from './settings' import { allowedForSession, discovered, earlyCalls, isLive, linksAllowed, messagesAllowed, modelContext, ranCalls, seenCalls, state, views } from './state' import { loadRowsSeen, paneId, restoreViews, saveViews, setDisplay, showPicture, sleepWhenAnswered, trimClosed } from './views' @@ -155,9 +155,17 @@ async function watchServer($: EngineInterface, server: string) { /** The routes that name a server, and so wait for Claude Code's verdict on it. */ const SERVER_ROUTES = new Set(['/discover', '/prewarm', '/open']) +/** For each server discovered, whether it was listed under "Own sign-in (OAuth)" then. */ +const discoveredOwnSignIn = new Map() + export function discover($: EngineInterface, server: string) { + // What a server listed under the other choice is read again: signed in, it + // may list other apps (the helper forgets its own copy the same way). + const own = ownSignIn(server) + if (discoveredOwnSignIn.get(server) !== own) discovered.delete(server) let found = discovered.get(server) if (!found) { + discoveredOwnSignIn.set(server, own) found = helper($, '/discover', { server }).then((answer) => { if (!answer.ok) throw new Error(String(answer.error)) // Once a session for each server, as the relay is announced. @@ -167,6 +175,12 @@ export function discover($: EngineInterface, server: string) { { to: 'debug' }, ) } + // A login still read from a store other than the one that is set (a + // plain file, say, after the setting moved to the Keychain): said where + // the person sees it, with what moves it. + if (typeof answer.ownSignInNote === 'string') { + $.ui.toast(`${plainText(server)}: ${plainText(answer.ownSignInNote).slice(0, 240)}`) + } const tools = (answer.tools ?? {}) as Record state.serversWithApps.set(server, Object.keys(tools).length > 0) const definitions = (answer.definitions ?? {}) as Record @@ -232,9 +246,11 @@ async function request($: EngineInterface, route: string, body: unknown) { throw new Error(`Claude Code is not using an MCP server named ${JSON.stringify(plainText(server))} in this session`) } const where = await startHelper($) - // Whether the person listed the server under "Own sign-in (OAuth)": the - // helper uses its own sign-in for it only then. - if (typeof server === 'string') body = { ...(body as object), ownSignIn: ownSignIn(server) } + // The servers the person listed under "Own sign-in (OAuth)", with every + // request: the helper uses its own sign-in for those only, and a name taken + // off the list loses its signed-in connection at the next request of any + // kind, a reply to an app that is already open included. + if (body && typeof body === 'object' && !Array.isArray(body)) body = { ...body, ownSignInServers: ownSignInServers() } const headers: Record = { 'content-type': 'application/json', 'x-mcp-apps-cli-token': where.token } const init = 'socketPath' in where diff --git a/polyfills/apps/claude-code/mod/hooks/settings.ts b/polyfills/apps/claude-code/mod/hooks/settings.ts index a18b7ebb..c5bf2918 100644 --- a/polyfills/apps/claude-code/mod/hooks/settings.ts +++ b/polyfills/apps/claude-code/mod/hooks/settings.ts @@ -71,8 +71,13 @@ export function structuredFromText(server: string): boolean { * sign-in of its own for that server only then. Off by default. */ export function ownSignIn(server: string): boolean { + return ownSignInServers().includes(server) +} + +/** Every server the person listed under "Own sign-in (OAuth)". */ +export function ownSignInServers(): string[] { return String(state.settings.ownSignIn ?? '') .split(',') .map((name) => name.trim()) - .some((name) => name !== '' && name === server) + .filter((name) => name !== '') } diff --git a/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx b/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx index 12a11d54..5f7d100a 100644 --- a/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx +++ b/polyfills/apps/claude-code/mod/tests/mcp-apps.test.tsx @@ -20,7 +20,8 @@ const FRAME = { ), } -type Sent = { route: string; body: Record } +/** A request to the helper: its route, its body, and the "Own sign-in (OAuth)" list every request carries with it. */ +type Sent = { route: string; body: Record; ownSignInServers?: unknown } /** The notes for the model the plugin appended to the session, as text. */ function notesOf(session: ReturnType): string[] { @@ -177,8 +178,8 @@ function standIns( }) on('http.fetch', async (_$, e) => { const route = new URL(e.url).pathname - const body = JSON.parse(String(e.init?.body ?? '{}')) as Record - sent.push({ route, body }) + const { ownSignInServers, ...body } = JSON.parse(String(e.init?.body ?? '{}')) as Record + sent.push({ route, body, ownSignInServers }) if (route === '/discover' && opts.holdDiscover) await opts.holdDiscover let answer: unknown = { ok: true } if (route === '/discover') { @@ -285,8 +286,9 @@ for (const [setting, expected] of [ } // The helper's own sign-in is opt-in the same way: the person lists the -// server under "Own sign-in (OAuth)" (off by default), and the mod says so -// with each request that names the server. +// server under "Own sign-in (OAuth)" (off by default), and the mod says which +// servers are listed with every request, so a change reaches the helper +// whatever is asked next. for (const [setting, expected] of [ [undefined, false], ['', false], @@ -301,9 +303,12 @@ for (const [setting, expected] of [ await $.session.start({ cwd: '/', surface: 'terminal', isInteractive: true }) await $.tool.call({ tool: TOOL, tool_use_id: TOOL_USE_ID }) await until(() => sent.some((s) => s.route === '/open'), () => Promise.resolve()) - const asked = sent.filter((s) => (s.body as { server?: unknown }).server === 'vanilla') - expect(asked.length).toBeGreaterThan(0) - for (const request of asked) expect(request.body.ownSignIn).toBe(expected) + expect(sent.some((s) => s.body.server === 'vanilla')).toBe(true) + // Every request says it, not only those that name the server. + for (const request of sent) { + const listed = request.ownSignInServers + expect(Array.isArray(listed) && listed.includes('vanilla')).toBe(expected) + } finish() }) } @@ -1991,7 +1996,7 @@ for (const [what, matches, prewarm] of [ const body = sent.find((s) => s.route === '/prewarm')!.body expect(body.server).toBe('vanilla') expect(body.tool).toBe('get-time') - expect(Object.keys(body).sort()).toEqual(['ownSignIn', 'server', 'theme', 'tool']) + expect(Object.keys(body).sort()).toEqual(['server', 'theme', 'tool']) } else { for (let i = 0; i < 300; i++) await Promise.resolve() expect(routes()).not.toContain('/prewarm') From 1b8b705f6cff939eb677f05ada2c26ee8ec10d7b Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:28:08 +0100 Subject: [PATCH 19/21] mcp-apps-cli helper: the sign-in's local server takes only its own return, and small requests The return from the server's sign-in page is heard only with the `state` this sign-in sent. Any GET to /callback used to be answered "You're connected", a denial included, before anything was checked, and a request from elsewhere on the machine could use up the wait and end the sign-in. Now such a request gets a 400 and the wait goes on; the tab is told it worked after the code was exchanged and the tokens kept, and otherwise what went wrong. A declared Content-Length is bounded (64 KB) and added with a check: a huge one made an inverted slice range and, with panic=abort, ended `signin`. `signin` refuses a server whose sign-in the helper's connection would never use (sse, an Authorization header of the person's own, plain http elsewhere) before it asks or sends anything; the terminal path used to contact the server first. `--no-browser` now also keeps the browser closed for the server's own page, whose address is printed. --- polyfills/apps/claude-code/README.md | 5 +- polyfills/apps/claude-code/SECURITY.md | 13 +- .../apps/claude-code/helper-rs/src/consent.rs | 5 + .../apps/claude-code/helper-rs/src/mcp.rs | 7 +- .../apps/claude-code/helper-rs/src/oauth.rs | 134 +++++++++++++----- .../apps/claude-code/helper-rs/tests/gate.rs | 81 +++++++++++ 6 files changed, 208 insertions(+), 37 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index 7878e0fa..e73cbcc7 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -213,7 +213,7 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. description and permissions, from the MCP `serverInfo` and the OAuth protected resource metadata, RFC 9728, with links to its policy and terms when it gives them; what it does not publish is left out, and the icon is - downloaded by the helper, never loaded by the page). It shows what the add-on will be able to do + downloaded by the helper, from the server's own address only, never loaded by the page). It shows what the add-on will be able to do in everyday words (with the server's own permission names in small print), where the login is saved (a closed lock by the buttons for the Keychain or a passphrase-locked file, an open amber one for a plain file; hover @@ -250,7 +250,8 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. 2025 revisions, only for `streamable-http` servers (not the older `sse` ones), only servers that register clients themselves (dynamic client registration), and not a server whose config already sets an - `Authorization` header. The helper still uses a server only while Claude + `Authorization` header (`signin` refuses those before it asks or sends + anything). The helper still uses a server only while Claude Code itself is connected to it in the session, and never reads Claude Code's stored credentials. Claude Code's sign-in is the recommended way; [host change 1](../../../docs/host-changes.md) would make this unnecessary, diff --git a/polyfills/apps/claude-code/SECURITY.md b/polyfills/apps/claude-code/SECURITY.md index 68555900..092ee8e6 100644 --- a/polyfills/apps/claude-code/SECURITY.md +++ b/polyfills/apps/claude-code/SECURITY.md @@ -105,7 +105,18 @@ organisation's MCP sign-in settings don't see. Before anything is kept, the person answers a consent page the helper serves on a loopback address of its own (a random port, a token against forged requests, a check of the `Host` and `Origin` headers, closed after the answer or after five minutes), or, with -`--no-browser`, the same summary and a `y/N/?` question in the terminal. The tokens, and the client +`--no-browser`, the same summary and a `y/N/?` question in the terminal (and +no browser is opened for the server's page either: its address is printed). +That loopback server reads small requests only (a declared length over 64 KB +ends the request), and takes the return from the server's sign-in page only +with the `state` this sign-in sent: any other request is refused and changes +nothing, and the tab is told it worked only after the code was exchanged and +the tokens kept. `signin` refuses, before it asks or sends anything, a server +its connection would not use the sign-in for (not streamable HTTP, an +`Authorization` header of the person's own, a plain `http` address elsewhere). +What the server publishes about itself is fetched, before consent, from its +own origin only (the authorization server's metadata alone may be elsewhere: +`https`, public addresses only), following no redirect. The tokens, and the client the server registered, are kept where the person set (one global setting, `MCP_APPS_CLI_TOKEN_STORE`): the macOS Keychain (called directly through Security.framework; the default), or a file encrypted with a passphrase (AES-256-GCM, key from PBKDF2-HMAC-SHA256 with 600,000 diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index 4354d0a8..fa6b5ff3 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -194,6 +194,11 @@ pub fn refused_page(_name: &str) -> String { shell("Cancelled", "

      Cancelled

      Nothing was connected. You can close this tab.

      ") } +/// The page that ends a sign-in that didn't go through: why, in the server's or the helper's words. +pub fn failed_page(why: &str) -> String { + shell("Sign-in didn’t finish", &format!("

      Sign-in didn’t finish

      {}

      Nothing was kept. You can close this tab; the terminal says the same.

      ", escape(why))) +} + pub fn done_page() -> String { shell("You’re connected", "

      You’re connected

      You can close this tab and go back to where you started.

      ") } diff --git a/polyfills/apps/claude-code/helper-rs/src/mcp.rs b/polyfills/apps/claude-code/helper-rs/src/mcp.rs index 77ad57a1..d1c474ab 100644 --- a/polyfills/apps/claude-code/helper-rs/src/mcp.rs +++ b/polyfills/apps/claude-code/helper-rs/src/mcp.rs @@ -473,10 +473,15 @@ fn startup_error(error: ClientInitializeError) -> anyhow::Error { /// `Authorization` header of the person's own (that one is sent instead). fn can_sign_in(config: &Value) -> bool { config::kind(config) == "http" - && !headers(config).contains_key(http::header::AUTHORIZATION) + && !has_own_authorization(config) && config.get("url").and_then(Value::as_str).is_some_and(crate::oauth::allowed) } +/// Whether the server's configuration sets an `Authorization` header of the person's own. +pub fn has_own_authorization(config: &Value) -> bool { + headers(config).contains_key(http::header::AUTHORIZATION) +} + /// What to say about a server that wants sign-in, after its error: for one /// the person listed under "Own sign-in (OAuth)", to sign in again; for any /// other, that the helper doesn't share Claude Code's sign-in. It never diff --git a/polyfills/apps/claude-code/helper-rs/src/oauth.rs b/polyfills/apps/claude-code/helper-rs/src/oauth.rs index 14e989e7..4c99edb0 100644 --- a/polyfills/apps/claude-code/helper-rs/src/oauth.rs +++ b/polyfills/apps/claude-code/helper-rs/src/oauth.rs @@ -177,10 +177,51 @@ pub async fn signin(name: &str, url: &str, place: Place, show: impl FnOnce(&str) callback(&mut requests, port, session).await } -/// The browser's return from the server's sign-in page. +/// The `state` this sign-in sent the person to the server with: its return carries it back. +fn sent_state(auth_url: &str) -> Option { + url::Url::parse(auth_url).ok()?.query_pairs().find(|(key, _)| key == "state").map(|(_, value)| value.into_owned()) +} + +/// A server's word, safe to show: no control characters, not long. +fn shown(text: &str) -> String { + text.chars().filter(|c| !c.is_control()).take(200).collect() +} + +/// The browser's return from the server's sign-in page (`/callback?code=…&state=…`). +/// Only a return that carries this sign-in's `state` is one: any other request +/// to the address is refused and the wait goes on, so nothing else on this +/// machine can end the sign-in or stand in for the server's answer. The tab is +/// told how it went once that is known: after the code was exchanged and the +/// tokens kept, or with what went wrong. async fn callback(requests: &mut Requests, port: u16, session: AuthorizationSession) -> Result<()> { - let target = tokio::time::timeout(WAIT, wait_for_callback(requests)).await.map_err(|_| anyhow!("nobody answered in the browser"))??; - session.handle_callback_url(&format!("http://127.0.0.1:{port}{target}")).await.map(|_| ()).map_err(|e| anyhow!("{e}")) + let state = sent_state(&session.auth_url).context("the server's sign-in address carries no state")?; + let returned = async { + loop { + let (mut stream, request) = requests.next().await?; + if request.method != "GET" || request.path() != "/callback" { + respond(&mut stream, "404 Not Found", "", "").await; + continue; + } + if request.query("state").as_deref() != Some(state.as_str()) { + respond(&mut stream, "400 Bad Request", "", "").await; + continue; + } + let outcome = match request.query("error") { + Some(error) => { + let detail = request.query("error_description").map(|d| format!(" ({})", shown(&d))).unwrap_or_default(); + Err(anyhow!("the server refused the sign-in: {}{detail}", shown(&error))) + } + None => session.handle_callback_url(&format!("http://127.0.0.1:{port}{}", request.target)).await.map(|_| ()).map_err(|e| anyhow!("{e}")), + }; + let page = match &outcome { + Ok(()) => crate::consent::done_page(), + Err(why) => crate::consent::failed_page(&format!("{why:#}")), + }; + respond(&mut stream, "200 OK", "", &page).await; + return outcome; + } + }; + tokio::time::timeout(WAIT, returned).await.map_err(|_| anyhow!("nobody answered in the browser"))? } // ---- a small HTTP server, for the consent page and the sign-in's return ---- @@ -205,13 +246,16 @@ impl Http { } } -/// One request, read whole (headers and a body up to 64 KB), or none. -async fn read_http(stream: &mut TcpStream) -> Option { +/// The most a request's head, and its body, may each weigh. +const MAX_PART: usize = 64 * 1024; + +/// One request, read whole (headers and a body up to 64 KB each), or none. +async fn read_http(stream: &mut S) -> Option { let mut buf = Vec::new(); let mut chunk = [0u8; 4096]; loop { let n = tokio::time::timeout(Duration::from_secs(5), stream.read(&mut chunk)).await.ok()?.ok()?; - if n == 0 || buf.len() > 65536 { + if n == 0 || buf.len() > 2 * MAX_PART { return None; } buf.extend_from_slice(&chunk[..n]); @@ -221,9 +265,18 @@ async fn read_http(stream: &mut TcpStream) -> Option { let mut first = lines.next()?.split_whitespace(); let (method, target) = (first.next()?.to_string(), first.next()?.to_string()); let headers: HashMap = lines.filter_map(|l| l.split_once(':')).map(|(k, v)| (k.trim().to_ascii_lowercase(), v.trim().to_string())).collect(); - let length: usize = headers.get("content-length").and_then(|v| v.parse().ok()).unwrap_or(0); - if buf.len() >= end + 4 + length { - let body = String::from_utf8_lossy(&buf[end + 4..end + 4 + length]).to_string(); + // A length that isn't a number, or is more than a form here ever is, ends it: + // nothing is added to it or sliced by it before that. + let length = match headers.get("content-length") { + Some(declared) => declared.parse::().ok().filter(|length| *length <= MAX_PART)?, + None => 0, + }; + if end > MAX_PART { + return None; + } + let whole = end.checked_add(4)?.checked_add(length)?; + if buf.len() >= whole { + let body = String::from_utf8_lossy(&buf[end + 4..whole]).to_string(); return Some(Http { method, target, headers, body }); } } @@ -275,22 +328,6 @@ impl Requests { } } -/// The request target (`/callback?code=…&state=…`) of the browser's return. -async fn wait_for_callback(requests: &mut Requests) -> Result { - loop { - let (mut stream, request) = requests.next().await?; - let ours = request.method == "GET" && request.path() == "/callback"; - let body = if ours { crate::consent::done_page() } else { String::new() }; - respond(&mut stream, if ours { "200 OK" } else { "404 Not Found" }, "", &body).await; - if ours { - if request.target.contains("error=") { - bail!("the server refused the sign-in: {}", request.target); - } - return Ok(request.target); - } - } -} - enum Answer { Refused, Accepted(Box, Place), @@ -372,13 +409,28 @@ fn server_name(words: &[String]) -> Result<&String> { words.get(2).filter(|w| !w.starts_with("--")).with_context(|| format!("usage: mcp-apps-cli-helper {} ", words[1])) } -/// The server `signin` or `signout` is about, and its url. -fn target(args: &crate::Args, words: &[String]) -> Result<(String, String)> { +/// Refuses, before anything is asked of the person or sent to the server, a +/// server whose sign-in the helper's connection would never use (mcp.rs, +/// `can_sign_in`): one that is not reached over streamable HTTP, one with an +/// `Authorization` header of the person's own, one that is not at an `https` +/// address or on this machine. +fn check_entry(name: &str, url: &str, config: &serde_json::Value) -> Result<()> { + if crate::config::kind(config) != "http" { + bail!("\"{name}\" is not a streamable HTTP server: the helper's own sign-in is only used over that transport"); + } + if crate::mcp::has_own_authorization(config) { + bail!("\"{name}\" has an Authorization header in its configuration, which is what gets sent: a sign-in here would never be used"); + } + check_url(name, url) +} + +/// The server `signin` or `signout` is about, its url and its configuration. +fn target(args: &crate::Args, words: &[String]) -> Result<(String, String, serde_json::Value)> { let name = server_name(words)?; let cwd = args.cwd.clone().unwrap_or_else(|| std::env::current_dir().unwrap_or_default()); let entry = crate::config::resolve(args, &cwd, name).map_err(|why| anyhow!("not using MCP server \"{name}\": {why}"))?; let url = entry.config["url"].as_str().context("only a server reached by a url needs sign-in")?.to_string(); - Ok((name.clone(), url)) + Ok((name.clone(), url, entry.config)) } fn flag(words: &[String], name: &str) -> bool { @@ -402,9 +454,12 @@ fn signed_in(name: &str, place: &Place) { /// `mcp-apps-cli-helper signin [--yes] [--no-browser] [--token-store keychain|encrypted|file]` pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { - let (name, url) = target(&args, words)?; + let (name, url, config) = target(&args, words)?; let name = name.as_str(); + check_entry(name, &url, &config)?; let kind = vault::chosen(words)?; + // `--no-browser`, or MCP_APPS_CLI_NO_BROWSER in the environment: no browser is opened, for the consent or for the server's page. + let no_browser = flag(words, "--no-browser") || std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_some(); // `--yes`, or `MCP_APPS_CLI_SIGNIN_YES=1` for someone who always wants it // (a terminal can't read /config), and `--no-browser`: no consent page. let assumed = flag(words, "--yes") || std::env::var("MCP_APPS_CLI_SIGNIN_YES").is_ok_and(|v| !v.is_empty() && v != "0"); @@ -420,13 +475,13 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { // Not a task: a read of the terminal that never ends must not hold the process. std::thread::spawn(move || { let mut line = String::new(); - if std::io::stdin().lock().read_line(&mut line).is_ok() && std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + if std::io::stdin().lock().read_line(&mut line).is_ok() && !no_browser { open_browser(&page); } }); } else { println!("Review and approve in your browser: {page}"); - if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + if !no_browser { open_browser(page); } } @@ -490,7 +545,7 @@ pub async fn cli(args: crate::Args, words: &[String]) -> Result<()> { println!(); signin(name, &url, place.clone(), |address| { println!("Open this address to sign in to {name}:\n{address}"); - if std::env::var_os("MCP_APPS_CLI_NO_BROWSER").is_none() { + if !no_browser { open_browser(address); } }) @@ -664,7 +719,20 @@ fn open_browser(address: &str) { #[cfg(test)] mod tests { - use super::allowed; + use super::{allowed, read_http}; + + // The local server reads what any program on this machine can send it: a length that is + // huge, or not a number, ends the request instead of being added to or sliced by. + #[tokio::test] + async fn a_request_that_declares_an_absurd_length_is_dropped() { + let read = async |text: String| read_http(&mut text.as_bytes()).await; + for length in [usize::MAX.to_string(), (usize::MAX - 3).to_string(), "65537".to_string(), "-1".to_string(), "many".to_string(), "99999999999999999999999999".to_string()] { + assert!(read(format!("POST /decision HTTP/1.1\r\nHost: 127.0.0.1:1\r\nContent-Length: {length}\r\n\r\nt=x")).await.is_none(), "{length}"); + } + let whole = read("POST /decision HTTP/1.1\r\nHost: 127.0.0.1:1\r\nContent-Length: 3\r\n\r\nt=xyz".to_string()).await.expect("a small form is read"); + assert_eq!((whole.method.as_str(), whole.path(), whole.body.as_str()), ("POST", "/decision", "t=x")); + assert_eq!(read("GET /callback?code=c&state=s HTTP/1.1\r\nHost: 127.0.0.1:1\r\n\r\n".to_string()).await.unwrap().query("state").as_deref(), Some("s")); + } // A token goes only over https or to this machine itself, never in the // clear over a network. diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 395f0104..374c8c9c 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -1043,6 +1043,87 @@ fn terminal_signin(w: &World) -> String { rest.join("\n") } +/// A GET to the sign-in's own loopback server, as any program on this machine can make: the status and the page. +fn local_get(port: u16, target: &str) -> (String, String) { + use std::io::{Read, Write}; + let mut stream = std::net::TcpStream::connect(("127.0.0.1", port)).unwrap(); + write!(stream, "GET {target} HTTP/1.1\r\nHost: 127.0.0.1:{port}\r\nConnection: close\r\n\r\n").unwrap(); + let mut answer = String::new(); + let _ = stream.read_to_string(&mut answer); + let status = answer.lines().next().unwrap_or_default().split_whitespace().nth(1).unwrap_or_default().to_string(); + (status, answer) +} + +/// `signin docs --yes` up to the address it shows: its process, the port of its own server, and the `state` it sent. +fn signin_waiting(w: &World) -> (Child, u16, String) { + let mut signin = terminal(w, &["signin", "docs", "--yes"]).stdout(Stdio::piped()).stderr(Stdio::piped()).spawn().unwrap(); + let mut lines = BufReader::new(signin.stdout.take().unwrap()).lines(); + let address = loop { + if lines.next().expect("signin shows an address").unwrap().starts_with("Open this address") { + break lines.next().unwrap().unwrap(); + } + }; + let param = |name: &str| address.split(['?', '&']).find_map(|pair| pair.strip_prefix(&format!("{name}="))).unwrap_or_default().to_string(); + let port = param("redirect_uri").replace("%3A", ":").replace("%2F", "/").split(':').nth(2).and_then(|rest| rest.split('/').next().map(str::to_string)).and_then(|p| p.parse().ok()).expect(&address); + (signin, port, param("state")) +} + +// The return from the server's sign-in page is heard only with this sign-in's +// `state`: a request without it (from anything on this machine) is refused, +// ends nothing and is not told "connected"; the tab is told how it went only +// once that is known, a refusal by the server included; and nothing is kept. +#[test] +fn the_return_of_a_sign_in_is_heard_only_with_its_state_and_a_refusal_is_said() { + let w = World::new("callback"); + let server = OAuthServer::start(&w, "modern"); + w.claude_json(json!({"docs": {"type": "http", "url": server.url}}), json!({})); + let (mut signin, port, state) = signin_waiting(&w); + for forged in ["/callback", "/callback?code=stolen&state=not-it", "/callback?error=access_denied", "/callback?code=stolen"] { + let (status, page) = local_get(port, forged); + assert!(status == "400" && !page.contains("connected"), "{forged}: {page}"); + } + assert!(signin.try_wait().unwrap().is_none(), "a forged return ended the sign-in"); + // The server's own refusal, with the state: said in the tab and in the terminal. + let (status, page) = local_get(port, &format!("/callback?error=access_denied&error_description=No%20thanks&state={state}")); + assert!(status == "200" && page.contains("Sign-in didn’t finish") && page.contains("access_denied (No thanks)") && !page.contains("You’re connected"), "{page}"); + let out = signin.wait_with_output().unwrap(); + assert!(!out.status.success() && String::from_utf8_lossy(&out.stderr).contains("the server refused the sign-in: access_denied (No thanks)"), "{}", String::from_utf8_lossy(&out.stderr)); + assert!(logins(&w).is_empty()); + + // A code the server never gave, with the state: the exchange fails, and the tab is not told it worked. + let (signin, port, state) = signin_waiting(&w); + let (_, page) = local_get(port, &format!("/callback?code=never-issued&state={state}")); + assert!(page.contains("Sign-in didn’t finish") && !page.contains("You’re connected"), "{page}"); + assert!(!signin.wait_with_output().unwrap().status.success()); + assert!(logins(&w).is_empty()); +} + +// `signin` refuses, before it asks or sends anything, a server whose sign-in +// the helper's connection would never use: the older sse transport, one with +// an Authorization header of the person's own, one at a plain http address +// that is not this machine. `signout` still works for all of them. +#[test] +fn signin_refuses_a_server_whose_sign_in_would_never_be_used_before_contacting_it() { + let w = World::new("signin-entry"); + let server = OAuthServer::start_with(&w, "modern", true); + let requests = || std::fs::read_to_string(w.marker("oauth-requests")).unwrap_or_default(); + for (config, why) in [ + (json!({"type": "sse", "url": server.url}), "not a streamable HTTP server"), + (json!({"type": "http", "url": server.url, "headers": {"Authorization": "Bearer mine"}}), "has an Authorization header"), + (json!({"type": "http", "url": "http://192.0.2.7/mcp"}), "only to an https address, or one on this machine"), + ] { + w.claude_json(json!({"docs": config}), json!({})); + for args in [&["signin", "docs", "--yes"][..], &["signin", "docs", "--no-browser"][..], &["signin", "docs"][..]] { + let out = terminal(&w, args).output().unwrap(); + let said = String::from_utf8_lossy(&out.stderr).to_string(); + assert!(!out.status.success() && said.contains(why), "{args:?}: {said}"); + } + let out = terminal(&w, &["signout", "docs"]).output().unwrap(); + assert!(out.status.success() && String::from_utf8_lossy(&out.stdout).contains("nothing to delete"), "{}", String::from_utf8_lossy(&out.stderr)); + } + assert_eq!(requests(), "", "the server was contacted"); +} + // Signing in again where a login is already kept revokes the one it replaces // (it would otherwise stay alive at the server with nothing left to end it // with). `signout --local` deletes without asking the server. And a login From 4ee043b2ce8432d4c6637bbb664ae2fb9f8ecf9a Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:28:58 +0100 Subject: [PATCH 20/21] mcp-apps-cli helper: the consent page says the permissions are what the server can allow The list under "It will be able to:" is the server's published `scopes_supported` (the authorization server's when the resource names none): what it can allow, not what this sign-in asks for or is given. The heading now says so (" can allow it to:"), and a line under the list says the server's own page, next, is where what it gets is decided. Same words in the terminal's summary. --- polyfills/apps/claude-code/README.md | 6 ++++-- polyfills/apps/claude-code/helper-rs/src/ask.rs | 6 +++--- .../apps/claude-code/helper-rs/src/consent.rs | 14 +++++++++----- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index e73cbcc7..0d808adb 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -213,8 +213,10 @@ Or remove it with `claude plugin uninstall mcp-apps-cli@agent-polyfill`. description and permissions, from the MCP `serverInfo` and the OAuth protected resource metadata, RFC 9728, with links to its policy and terms when it gives them; what it does not publish is left out, and the icon is - downloaded by the helper, from the server's own address only, never loaded by the page). It shows what the add-on will be able to do - in everyday words (with the server's own permission names in small print), + downloaded by the helper, from the server's own address only, never loaded by the page). It shows what the server says it can allow, + in everyday words (with the server's own permission names in small print): + these are the permissions the server publishes, not a promise of what is + given, which the server's own page decides next and the page says so, where the login is saved (a closed lock by the buttons for the Keychain or a passphrase-locked file, an open amber one for a plain file; hover for the words), and a gear that opens the details (where the login is kept and diff --git a/polyfills/apps/claude-code/helper-rs/src/ask.rs b/polyfills/apps/claude-code/helper-rs/src/ask.rs index c249b7d5..47870fc6 100644 --- a/polyfills/apps/claude-code/helper-rs/src/ask.rs +++ b/polyfills/apps/claude-code/helper-rs/src/ask.rs @@ -34,7 +34,7 @@ impl Paint { } } -/// The summary: who, what for, what it will be able to do, where the login is saved. +/// The summary: who, what for, what the server says it can allow, where the login is saved. pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> String { let p = Paint(color); let title = about.title.as_deref().unwrap_or(name); @@ -57,7 +57,7 @@ pub fn screen(name: &str, url: &str, about: &About, kind: Kind, color: bool) -> None => out.push_str(&format!(" {} {}\n", p.green("\u{2713}"), p.dim(scope))), } } - out.push('\n'); + out.push_str(&format!(" {}\n\n", p.dim(&w.list_note))); } let (good, headline) = consent::storage_status(kind); // A closed lock, quiet, when it is fine; an open one with a warning sign when it is not. @@ -116,7 +116,7 @@ mod tests { #[test] fn the_screen_has_the_pages_structure_with_or_without_colour() { let plain = screen("docs", "https://mcp.acme.example/mcp", &about(), Kind::Keychain, false); - for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "It will be able to:", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "\u{2713} default", "\u{1F512} Saved securely on this Mac"] { + for needle in ["Acme Docs", "mcp.acme.example", "mcp-apps-cli wants to use your Acme Docs account", "A Claude Code add-on.", "Acme Docs can allow it to:", "Acme Docs says what it actually gets on the next page.", "\u{2713} Read your docs", "docs:read", "Confirm who you are", "\u{2713} default", "\u{1F512} Saved securely on this Mac"] { assert!(plain.contains(needle), "{needle}\n{plain}"); } assert!(!plain.contains('\x1b'), "{plain:?}"); diff --git a/polyfills/apps/claude-code/helper-rs/src/consent.rs b/polyfills/apps/claude-code/helper-rs/src/consent.rs index fa6b5ff3..29ee76b6 100644 --- a/polyfills/apps/claude-code/helper-rs/src/consent.rs +++ b/polyfills/apps/claude-code/helper-rs/src/consent.rs @@ -25,7 +25,7 @@ button.ok{background:#2563eb;border-color:#2563eb;color:#fff}.err{background:#fd .tool[data-tip]:hover:after,.tool[data-tip]:focus-visible:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);right:0;white-space:nowrap;background:#1f2937;color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;pointer-events:none}#info:checked ~ .row .gear{background:#f0f1f3;color:#1f2937}.tog:focus-visible ~ .row .gear{outline:2px solid #2563eb}\ .tog{position:absolute;opacity:0;width:1px;height:1px}.extra{display:none;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}\ #info:checked ~ .extra{display:block}\ -.plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; +.note{margin:-12px 0 20px;font-size:13px;color:#6b7280}.plain{margin:0 0 16px;color:#374151}.more{margin-top:18px;font-size:13px;color:#6b7280}.more a{color:#2563eb}"; fn shell(title: &str, body: &str) -> String { format!("{}
      {body}
      ", escape(title)) @@ -39,8 +39,11 @@ pub const APP: &str = "mcp-apps-cli"; pub struct Words { pub heading: String, pub lead: String, - /// Above the list of permissions. + /// Above the list of permissions: what the server publishes that it can + /// allow, not what this sign-in asks for or will be given. pub list_heading: String, + /// Under the list: where what is really given gets decided. + pub list_note: String, /// In place of the list, when the server names no permissions. pub no_list: String, pub go: String, @@ -51,7 +54,8 @@ pub fn words(title: &str) -> Words { Words { heading: format!("{APP} wants to use your {title} account"), lead: "A Claude Code add-on.".into(), - list_heading: "It will be able to:".into(), + list_heading: format!("{title} can allow it to:"), + list_note: format!("{title} says what it actually gets on the next page."), no_list: format!("{title} lists what it can access on the next page."), go: format!("Continue to {title}"), cancel: "Cancel", @@ -111,7 +115,7 @@ fn permissions(about: &About, title: &str, w: &Words) -> String { }) .collect(); let heading = if w.list_heading.is_empty() { String::new() } else { format!("

      {}

      ", escape(&w.list_heading)) }; - format!("{heading}
        {items}
      ") + format!("{heading}
        {items}

      {}

      ", escape(&w.list_note)) } /// The storage line: whether it is fine (a green check) or a warning, and its words. A @@ -248,7 +252,7 @@ mod tests { #[test] fn with_metadata_the_page_shows_who_it_is_and_what_it_asks() { let html = page("docs", "https://m.example/mcp", &full(), Kind::Keychain, "t", None); - for needle in ["Docs <Pro>", "Search "docs"", "href=\"https://docs.example/\"", "Privacy policy", "Terms of service", "a=1&b=2", "Read your docsdocs:read", "Confirm who you areopenid", "
    • default
    • ", "
    • x<y
    • ", "signout docs"] { + for needle in ["Docs <Pro>", "Search "docs"", "href=\"https://docs.example/\"", "Privacy policy", "Terms of service", "a=1&b=2", "Docs <Pro> can allow it to:", "Docs <Pro> says what it actually gets on the next page.", "Read your docsdocs:read", "Confirm who you areopenid", "
    • default
    • ", "
    • x<y
    • ", "signout docs"] { assert!(html.contains(needle), "{needle}\n{html}"); } assert!(!html.contains("") && !html.contains(" Date: Tue, 1 Dec 2026 01:28:58 +0100 Subject: [PATCH 21/21] mcp-apps-cli helper: the terminal test's runner stops a command that hangs pty-run.py stopped reading after 30 seconds and then waited for the command with no limit, so a prompt that hung held the test for ever. It now kills the command and its process group at the deadline and exits with 124; otherwise it exits with the command's own status, which the test checks. --- .../apps/claude-code/helper-rs/tests/gate.rs | 2 + .../claude-code/helper-rs/tests/pty-run.py | 53 +++++++++++++------ 2 files changed, 39 insertions(+), 16 deletions(-) diff --git a/polyfills/apps/claude-code/helper-rs/tests/gate.rs b/polyfills/apps/claude-code/helper-rs/tests/gate.rs index 374c8c9c..e1c99bb9 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/gate.rs +++ b/polyfills/apps/claude-code/helper-rs/tests/gate.rs @@ -918,6 +918,8 @@ fn the_terminal_shows_the_summary_and_the_details_behind_a_question_mark() { } let out = command.output().unwrap(); let said = String::from_utf8_lossy(&out.stdout).to_string(); + // 124: the command was still running after the script's 30 seconds, and was killed. + assert_eq!(out.status.code(), Some(0), "{said}"); let first = said.find("[y/N/?]").expect(&said); let second = said[first + 7..].find("[y/N/?]").expect(&said); assert!(said.contains("wants to use your docs account") && said.contains("Not encrypted"), "{said}"); diff --git a/polyfills/apps/claude-code/helper-rs/tests/pty-run.py b/polyfills/apps/claude-code/helper-rs/tests/pty-run.py index 83a9a343..48f1bf65 100644 --- a/polyfills/apps/claude-code/helper-rs/tests/pty-run.py +++ b/polyfills/apps/claude-code/helper-rs/tests/pty-run.py @@ -2,10 +2,13 @@ # need a real terminal. Standard library only; run with `python3 -I`. # python3 -I pty-run.py "answer 1|answer 2|…" -- command args… # Each answer is typed (with Enter) when the command shows its next "[y/N/?]" -# question; what the command printed is written to standard output. +# question; what the command printed is written to standard output. A command +# still running after 30 seconds is killed, with its process group, and this +# exits with 124: a prompt that hangs fails the test instead of holding it. import os import pty import select +import signal import sys import time @@ -17,22 +20,40 @@ out = b"" sent = 0 deadline = time.time() + 30 -while time.time() < deadline: +status = None +while status is None and time.time() < deadline: ready, _, _ = select.select([fd], [], [], 0.2) - if not ready: - continue + if ready: + try: + data = os.read(fd, 4096) + except OSError: + data = b"" + if data: + out += data + if out.count(b"[y/N/?]") > sent and sent < len(answers): + os.write(fd, (answers[sent] + "\n").encode()) + sent += 1 + continue + # Nothing to read, or the terminal closed: has the command ended? try: - data = os.read(fd, 4096) + ended, code = os.waitpid(pid, os.WNOHANG) + except ChildProcessError: + ended, code = pid, 0 + if ended: + status = os.waitstatus_to_exitcode(code) + elif ready: + time.sleep(0.05) +if status is None: + # pty.fork made the command the leader of a session of its own: its group goes with it. + try: + os.killpg(pid, signal.SIGKILL) except OSError: - break - if not data: - break - out += data - if out.count(b"[y/N/?]") > sent and sent < len(answers): - os.write(fd, (answers[sent] + "\n").encode()) - sent += 1 -try: - os.waitpid(pid, 0) -except ChildProcessError: - pass + pass + try: + os.waitpid(pid, 0) + except ChildProcessError: + pass + status = 124 sys.stdout.buffer.write(out) +sys.stdout.buffer.flush() +sys.exit(status if status >= 0 else 1)