chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1 @@
{"files":{".cargo_vcs_info.json":"de4f207bd9f285f451422f46fcc7c0ba50750186ae71337c1990f99f228cbb30","Cargo.toml":"c0e15306f774d8fbaedb3b2f2d9705cfd33a50c7eb772934a4cdf368744eba86","Cargo.toml.orig":"794ce1f76093bbef9c81861e86e11572da33fd83528ec4ee0e83ab2dc3fbfaa7","LICENSE":"db53b66c3f5fb89143c1f223029f985d9902eb5a5ae83f8eb280446e56ec8284","README.md":"957e16f30d33c262cdbc2eb7d13e6c11314f36ae0351935621a9ff0df078f005","src/lib.rs":"f539ed002394387b409ebaec47b8583f6685c6aac5cecc855e9ea83f7783c58c"},"package":"54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4"}

View File

@@ -0,0 +1,6 @@
{
"git": {
"sha1": "b8cf384cc40c75a659240ea7d07898e65db72d4e"
},
"path_in_vcs": "headers-core"
}

29
vendor/headers-core/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,29 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
name = "headers-core"
version = "0.3.0"
authors = ["Sean McArthur <sean@seanmonstar.com>"]
description = "typed HTTP headers core trait"
homepage = "https://hyper.rs"
readme = "README.md"
keywords = [
"http",
"headers",
"hyper",
"hyperium",
]
license = "MIT"
repository = "https://github.com/hyperium/headers"
[dependencies.http]
version = "1.0.0"

20
vendor/headers-core/LICENSE vendored Normal file
View File

@@ -0,0 +1,20 @@
Copyright (c) 2014-2023 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.

3
vendor/headers-core/README.md vendored Normal file
View File

@@ -0,0 +1,3 @@
# Typed HTTP Headers: core `Header` trait
WIP

68
vendor/headers-core/src/lib.rs vendored Normal file
View File

@@ -0,0 +1,68 @@
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![cfg_attr(test, deny(warnings))]
#![doc(html_root_url = "https://docs.rs/headers-core/0.3.0")]
//! # headers-core
//!
//! This is the core crate of the typed HTTP headers system, providing only
//! the relevant traits. All actual header implementations are in other crates.
extern crate http;
pub use http::header::{self, HeaderName, HeaderValue};
use std::error;
use std::fmt::{self, Display, Formatter};
/// A trait for any object that will represent a header field and value.
///
/// This trait represents the construction and identification of headers,
/// and contains trait-object unsafe methods.
pub trait Header {
/// The name of this header.
fn name() -> &'static HeaderName;
/// Decode this type from an iterator of `HeaderValue`s.
fn decode<'i, I>(values: &mut I) -> Result<Self, Error>
where
Self: Sized,
I: Iterator<Item = &'i HeaderValue>;
/// Encode this type to a `HeaderMap`.
///
/// This function should be infallible. Any errors converting to a
/// `HeaderValue` should have been caught when parsing or constructing
/// this value.
fn encode<E: Extend<HeaderValue>>(&self, values: &mut E);
}
/// Errors trying to decode a header.
#[derive(Debug)]
pub struct Error {
kind: Kind,
}
#[derive(Debug)]
enum Kind {
Invalid,
}
impl Error {
/// Create an 'invalid' Error.
pub fn invalid() -> Error {
Error {
kind: Kind::Invalid,
}
}
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
match &self.kind {
Kind::Invalid => f.write_str("invalid HTTP header"),
}
}
}
impl error::Error for Error {}

Binary file not shown.

View File

@@ -0,0 +1 @@
{"name":"headers-core","vers":"0.3.0","deps":[{"name":"http","req":"^1.0.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false}],"features":{},"features2":null,"cksum":"bdb534fd2bbde2ca1e731385b4b2c6e9ab3270356cc99dd6cc3543709eb17f38","yanked":null,"links":null,"rust_version":null,"v":2}