-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update cargo pre-1.0 packages (minor) #6614
base: dev
Are you sure you want to change the base?
Conversation
|
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: d7c93878bd3a526960cacc17 |
@renovate[bot], please consider creating a changeset entry in |
CI performance tests
|
824811d
to
3f6b4f5
Compare
3f6b4f5
to
bc8d1b2
Compare
This PR contains the following updates:
0.6.20
->0.8.0
0.18.1
->0.19.0
0.13.0
->0.14.0
0.3.5
->0.7.0
0.17.1
->0.28.0
0.7.3
->0.8.0
0.12.3
->0.13.0
0.9.1
->0.10.0
0.6.4
->0.7.0
0.12.6
->0.13.0
0.12.6
->0.13.0
0.8.5
->0.9.0
0.6.4
->0.9.0
0.11
->0.12
0.11.0
->0.12.0
0.22.0
->0.24.0
0.8.26
->0.9.0
0.32.0
->0.33.0
0.4.0
->0.5.0
0.5.22
->0.6.0
0.5.22
->0.6.0
Release Notes
tokio-rs/axum (axum)
v0.8.0
: axum v0.8.0Compare Source
since rc.1
axum::extract::ws::Message
now usesBytes
in place ofVec<u8>
,and a new
Utf8Bytes
type in place ofString
, for its variants (#3078)OptionalFromRequestParts
impl forQuery
(#3088)tokio-tungstenite
to 0.26 (#3078)serde_path_to_error
to report fields that failed to parse (#3081)full changelog
You can also read the blog post on tokio
Note: there are further relevant changes in axum-core's changelog
/:single
and/*many
to/{single}
and/{*many}
; the old syntax produces a panic to avoid silent change in behavior (#2645)Sync
for all handlers and services added toRouter
andMethodRouter
(#2473)Path
extractor deserializers now check that the number of parameters matches the tuple length exactly (#2931)Host
extractor toaxum-extra
(#2956)WebSocket::close
. Users should explicitly send close messages themselves. (#2974)serve
generic over the listener and IO types (#2941)Serve::tcp_nodelay
andWithGracefulShutdown::tcp_nodelay
.See
serve::ListenerExt
for an API that let you set arbitrary TCP stream properties. (#2941)Option<Path<T>>
no longer swallows all error conditions,instead rejecting the request in many cases; see its documentation for details (#2475)
axum::extract::ws::Message
now usesBytes
in place ofVec<u8>
,and a new
Utf8Bytes
type in place ofString
, for its variants (#3078)serde_json::RawValue
inEvent::json_data
(#2992)content-length
before middleware.This allows middleware to add bodies to requests without needing to manually set
content-length
(#2897)tokio-tungstenite
to 0.26 (#3078)serde_path_to_error
to report fields that failed to parse (#3081)method_not_allowed_fallback
to set a fallback when a path matches but there is no handler for the given HTTP method (#2903)NoContent
as a self-described shortcut forStatusCode::NO_CONTENT
(#2978)get(ws_endpoint)
handlers toany(ws_endpoint)
(#2894)MethodFilter::CONNECT
,routing::connect[_service]
andMethodRouter::connect[_service]
(#2961)FailedToDeserializePathParams::kind
enum with (ErrorKind::DeserializeError
). This new variant captures bothkey
,value
, andmessage
from named path parameters parse errors, instead of only deserialization error message inErrorKind::Message
. (#2720)v0.7.9
: axum - v0.7.9Compare Source
v0.7.8
: axum - v0.7.8Compare Source
serde_json::RawValue
inEvent::json_data
(#2992)method_not_allowed_fallback
to set a fallback when a path matches but there is no handler for the given HTTP method (#2903)MethodFilter::CONNECT
,routing::connect[_service]
and
MethodRouter::connect[_service]
(#2961)NoContent
as a self-described shortcut forStatusCode::NO_CONTENT
(#2978)v0.7.7
: axum - v0.7.7Compare Source
rustdoc now generates tables of content in the sidebar (#2921)
v0.7.6
: axum - v0.7.6Compare Source
Arc
during deserialization ofPath
axum::serve::Serve::tcp_nodelay
andaxum::serve::WithGracefulShutdown::tcp_nodelay
(#2653)Router::has_routes
function (#2790)Serve::local_addr
andWithGracefulShutdown::local_addr
functions (#2881)v0.7.5
: axum - v0.7.5Compare Source
axum::serve
directly witha
Router
orMethodRouter
(#2586)h2
is no longer pulled as a dependency unless thehttp2
featureis enabled (#2605)
v0.7.4
: axum - v0.7.4Compare Source
debug_handler
on tuple response types (#2201)must_use
attribute toServe
andWithGracefulShutdown
(#2484)axum_core::body::BodyDataStream
from axumv0.7.3
: axum - v0.7.3Compare Source
Body
implementsFrom<()>
now (#2411)tracing
feature by default (#2460)serve
(#2398)RouterIntoService
implementsClone
(#2456)v0.7.2
: axum - v0.7.2Compare Source
axum::body::to_bytes
(#2373)serve
(#2400)v0.7.1
: axum - v0.7.1Compare Source
v0.7.0
: axum - v0.7.0Compare Source
WebSocketUpgrade::max_send_queue
(i.e. the
B
type param has been removed) (#1751 and #1789):FromRequestParts
FromRequest
HandlerService
HandlerWithoutStateExt
Handler
LayeredFuture
Layered
MethodRouter
Next
RequestExt
RouteFuture
Route
Router
hyper::Body
as that type is removedin hyper 1.0. Instead axum has its own body type at
axum::body::Body
(#1751)extract::BodyStream
has been removed asbody::Body
implements
Stream
andFromRequest
directly (#1751)sse::Event::json_data
to useaxum_core::Error
as its error type (#1762)DefaultOnFailedUpdgrade
toDefaultOnFailedUpgrade
(#1664)OnFailedUpdgrade
toOnFailedUpgrade
(#1664)TypedHeader
has been move toaxum-extra
(#1850)Empty
andFull
. Useaxum::body::Body::empty
andaxum::body::Body::from
respectively (#1789)IntoResponse::into_response
must useaxum::body::Body
as the body type.axum::response::Response
does this(#1789)
BoxBody
type alias and itsbox_body
constructor. Use
axum::body::Body::new
instead (#1789)RawBody
extractor.axum::body::Body
implementsFromRequest
directly (#1789)http-body
no longer implementIntoResponse
:Full
, useBody::from
insteadEmpty
, useBody::empty
insteadBoxBody
, useBody::new
insteadUnsyncBoxBody
, useBody::new
insteadMapData
, useBody::new
insteadMapErr
, useBody::new
insteadaxum::extract::Request
type alias where the body isaxum::body::Body
(#1789)Router::as_service
andRouter::into_service
to workaroundtype inference issues when calling
ServiceExt
methods on aRouter
(#1835)axum::Server
as it was removed in hyper 1.0. Insteaduse
axum::serve(listener, service)
or hyper/hyper-util for more configuration options (#1868)Router::nest
.Routers nested with
Router::nest_service
will no longer inherit fallbacks (#1956)Sec-WebSocket-Key
header inWebSocketUpgrade
(#1972)axum::extract::Query::try_from_uri
(#2058)IntoResponse
forBox<str>
andBox<[u8]>
([#2035])MethodFilter
. It no longer uses bitflags (#2073).source()
of composite rejections (#2030)#[debug_handler]
(#2014)IntoResponse
for(R,) where R: IntoResponse
(#2143)NestedPath
extractor (#1924)handle_error
function to existingServiceExt
trait (#2235)impl<T> IntoResponse(Parts) for Extension<T>
now requiresT: Clone
, as that is required by the http crate (#1882)axum::Json::from_bytes
(#2244)FromRequestParts
forhttp::request::Parts
(#2328)FromRequestParts
forhttp::Extensions
(#2328)DefaultBodyLimit
to individual routes (#2157)oli-obk/cargo_metadata (cargo_metadata)
v0.19.1
Compare Source
v0.19.0
Compare Source
Added
semver
crate directly.std::ops::Index<&PackageId>
forResolve
.pub fn is_kind(&self, name: TargetKind) -> bool
toTarget
.PartialEq
,Eq
andHash
forMetadata
and its members' types.PackageBuilder
.pub fn new(name:version:id:path:) -> Self
toPackageBuilder
for providing all required fields upfront.Changed
1.42.0
to1.56.0
.parse_stream
more versatile by accepting anything that implementsRead
.TargetKind
andCrateType
to an enum representation.Removed
BuildMetadata
andPrerelease
fromsemver
crate..is_lib(…)
,.is_bin(…)
,.is_example(…)
,.is_test(…)
,.is_bench(…)
,.is_custom_build(…)
, and.is_proc_macro(…)
fromTarget
(in favor of adding.is_kind(…)
).Fixed
manifest_path
field toArtifact
. Fixes #187.rust-itertools/itertools (itertools)
v0.14.0
Compare Source
Breaking
cons_tuples
(#988)Added
array_combinations
(#991)k_smallest_relaxed
and variants (#925)next_array
andcollect_array
(#560)DoubleEndedIterator
forFilterOk
(#948)DoubleEndedIterator
forFilterMapOk
(#950)Changed
Q: ?Sized
inItertools::contains
(#971)chain!
(#943)into_group_map_by
documentation (#1000)tree_reduce
documentation (#955)merge_join_by
(#966)take_while_inclusive
(#972)find_or_last
andfind_or_first
(#984)tuple_combinations
(#945)track_caller
attr forasser_equal
(#976)Notable Internal Changes
default_features
inCargo.toml
todefault-features
(#985)besok/jsonpath-rust (jsonpath-rust)
v0.4.0
Compare Source
Stranger6667/jsonschema (jsonschema)
v0.28.3
Fixed
Performance
v0.28.2
Fixed
Performance
v0.28.1
Fixed
$id
-anchored subschemas. #640v0.28.0
Added
IntoIterator
forLocation
to iterate overLocationSegment
.FromIter
forLocation
to build aLocation
from an iterator ofLocationSegment
.ValidationError::to_owned
method for converting errors into owned versions.v0.27.1
Added
ExactSizeIterator
forPrimitiveTypesBitMapIterator
.v0.27.0
Added
masked()
andmasked_with()
methods toValidationError
to support hiding sensitive data in error messages. #434Changed
1.71.1
.v0.26.2
Documentation
validate
v0.26.1
Fixed
https
-prefixed$schema
for Draft 4, 5, 6. #629v0.26.0
Important: This release contains breaking changes. See the Migration Guide for details on transitioning to the new API.
Added
Validator::iter_errors
that iterates over all validation errors.Changed
ValidationErrorKind::JSONParse
,ValidationErrorKind::InvalidReference
,ValidationErrorKind::Schema
,ValidationErrorKind::FileNotFound
andValidationErrorKind::Utf8
.Validator::validate
now returns the first error instead of an iterator in theErr
variant.Performance
v0.25.1
Fixed
referencing::Error
asReferencingError
. #614v0.25.0
Important: This release removes deprecated old APIs. See the Migration Guide for details on transitioning to the new API.
Changed
Removed
draft201909
,draft202012
, andcli
features.CompilationOptions
,JSONSchema
,PathChunkRef
,JsonPointerNode
, andSchemaResolverError
aliases.jsonschema::compile
,Validator::compile
,ValidationOptions::compile
,ValidationOptions::with_resolver
,ValidationOptions::with_meta_schemas
,ValidationOptions::with_document
functions.SchemaResolver
trait.v0.24.3
Fixed
$ref
inunevaluatedProperties
.v0.24.2
Fixed
$ref
interaction with$recursiveAnchor
in Draft 2019-09.unevaluatedProperties
with$recursiveRef
&$dynamicRef
.v0.24.1
Fixed
v0.24.0
Added
$ref
,$recursiveRef
, and$dynamicRef
inunevaluatedItems
. #287$vocabulary
. #263Changed
prefixItems
under Draft 2019-09 as it was introduced in Draft 2020-12.Fixed
uniqueItems
.Performance
apply
.v0.23.0
Added
unevaluatedItems
, excluding references.Changed
JsonPointer
in favor ofLocation
.Deprecated
PathChunkRef
in favor ofLocationSegment
.JsonPointerNode
in favor ofLazyLocation
.Fixed
$ref
or$dynamicRef
).Performance
hostname
&idn-hostname
formats validation.apply
.Removed
JsonPointerNode::to_vec
without a replacement.v0.22.3
Performance
v0.22.2
Fixed
Performance
json-pointer
andrelative-json-pointer
formats validation.v0.22.1
Fixed
dbg!
macro.v0.22.0
Changed
&Uri<&str>
instead of&UriRef<&str>
once_cell
to1.20
.regex
to1.11
.Fixed
time
format validation (leap seconds and second fractions).duration
format validation.$id
without base. #547hostname
format validation (double dot).idn-hostname
format validation. #101Performance
hostname
,date
,time
,date-time
, andduration
formats validation.pattern
. #417v0.21.0
Important: This release brings a complete rework of reference resolving which deprecates some older APIs.
While backward compatibility is maintained for now, users are encouraged to update their code. See the Migration Guide for details on transitioning to the new API.
Added
$anchor
support.$recursiveRef
&$recursiveAnchor
support in Draft 2019-09.$dynamicRef
&$dynamicAnchor
support in Draft 2020-12.Changed
$ref
as URI, not URL, and additionally normalize them. #454$id
. #264Deprecated
SchemaResolver
trait andSchemaResolverError
in favor of a simplerRetrieve
that works withBox<dyn std::error::Error>
.In turn, it also deprecates
ValidationOptions::with_resolver
in favor ofValidationOptions::with_retriever
ValidationOptions::with_document
in favor ofValidationOptions::with_resource
.Fixed
unevaluatedProperties
. #420iri
&iri-reference
validation.Performance
uri
,iri
,uri-reference
, andiri-reference
formats.v0.20.0
Important: This release includes several deprecations and renames. While backward compatibility is maintained for now, users are encouraged to update their code. See the Migration Guide for details on transitioning to the new API.
Added
jsonschema::draft4
jsonschema::draft6
jsonschema::draft7
jsonschema::draft201909
jsonschema::draft202012
Each module provides
new()
,is_valid()
, andoptions()
functions.jsonschema::options()
function as a shortcut forjsonschema::Validator::options()
, that allows for customization of the validation process.Changed
Debug
implementation forSchemaNode
opaque.jsonschema::validator_for
and related functions returnValidationError<'static>
in theirErr
variant.This change makes possible to use the
?
operator to return errors from functions where the input schema is defined.Deprecated
CompilationOptions
toValidationOptions
for clarity.JSONSchema
toValidator
for clarity. #424JSONPointer
toJsonPointer
for consistency with naming conventions. #424jsonschema::compile
tojsonschema::validator_for
.CompilationOptions::compile
toValidationOptions::build
.Old names are retained for backward compatibility but will be removed in a future release.
Fixed
v0.19.1
Fixed
ipv4
format validation. #512v0.19.0
Added
jsonschema::compile
shortcut.Changed
1.70
.Fixed
uuid
format validation.unevaluatedProperties
withallOf
andoneOf
. #496Deprecated
cli
feature in favor of a separatejsonschema-cli
crate.draft201909
anddraft202012
features. The relevant functionality is now enabled by default.Performance
uuid
validation viauuid-simd
.v0.18.3
Fixed
$ref
is present in drafts 7 and earlier.dbg!
macro.v0.18.2
Fixed
$schema
in resolved references.maxItems
,maxLength
,maxProperties
,maxContains
,minItems
,minLength
,minProperties
,minContains
.Deprecated
with_meta_schemas()
method. Meta schemas are included by default.v0.18.1
Added
ErrorDescription::into_inner
to retrieve the innerString
value.v0.18.0
Added
JsonPointerNode
that can be converted intoJSONPointer
.This is needed for the upcoming custom validators support.
Changed
base64
to0.22
.clap
to4.5
.fancy-regex
to0.13
.fraction
to0.15
.memchr
to2.7
.once_cell
to1.19
.percent-encoding
to2.3
.regex
to1.10
.url
to2.5
.cli
feature is enabled.CompilationOptions
to support more ways to define custom format checkers (for example in Python bindings).In turn it changes
ValidationErrorKind::Format
to contain aString
instead of a&'static str
.Fixed
schema_path
when multiple errors coming from the$ref
keyword #426Performance
JSONPointer
for validation errors by allocating the exact amount of memory needed.LukasKalbertodt/libtest-mimic (libtest-mimic)
v0.8.1
Compare Source
v0.8.0
Compare Source
threadpool
dependency, getting rid of memory leaks observed when running under valgrind (thanks @Felix-El) in #46termcolor
toanstream
to get rid of duplicate dependencies (thanks @hanna-kruppe) in #44fastrand
to2
(thanks @alexanderkjall) in #47jeromefroe/lru-rs (lru)
v0.13.0
Compare Source
peek_mru
andpop_mru
methods, upgrade dependency onhashbrown
to 0.15.2, and update MSRV to 1.65.0.petgraph/petgraph (petgraph)
v0.7.1
Compare Source
==========================
indexmap
version (#714
_)UndirectedAdaptor
(#717
_).. _
#714
: https://github.com/petgraph/petgraph/pull/714.. _
#717
: https://github.com/petgraph/petgraph/pull/717v0.7.0
Compare Source
==========================
#664
_).v0.6.6
Compare Source
===================================
#658
_)#675
_)UndirectedAdaptor
(#695
_)LowerHex
andUpperHex
implementations forDot
(#687
_)serde
support more complete (#550
_)#685
_)fixedbitset
to 0.5.7 (#664
_)immediately_dominated_by
function called on root of graph returns root itself (#670
_)Csr
andList
(#648
_)#701
_)all_simple_paths
function documentation (#693
_).. _
#658
: https://github.com/petgraph/petgraph/pull/658.. _
#675
: https://github.com/petgraph/petgraph/pull/675.. _
#695
: https://github.com/petgraph/petgraph/pull/695.. _
#687
: https://github.com/petgraph/petgraph/pull/687.. _
#550
: https://github.com/petgraph/petgraph/pull/550.. _
#685
: https://github.com/petgraph/petgraph/pull/685.. _
#664
: https://github.com/petgraph/petgraph/pull/664.. _
#670
: https://github.com/petgraph/petgraph/pull/670.. _
#648
: https://github.com/petgraph/petgraph/pull/648.. _
#701
: https://github.com/petgraph/petgraph/pull/701.. _
#693
: https://github.com/petgraph/petgraph/pull/693tokio-rs/prost (prost)
v0.13.4
Compare Source
PROST! is a Protocol Buffers implementation for the Rust Language.
prost
generates simple, idiomatic Rust code fromproto2
andproto3
files.Features
Performance
Dependencies
bytes
dependency fromprost-build
(#1169)Styling
Testing
Foo::bar
is boxed (#1168)skip_debug
intocustom_debug
(#1178)invalid_doctest
todisable_comments
(#1183)Build
GITHUB_TOKEN
(#1189)v0.13.3
Compare Source
PROST! is a Protocol Buffers implementation for the Rust Language.
prost
generates simple, idiomatic Rust code fromproto2
andproto3
files.Features
normalized
functions (#1158)Bug Fixes
derived(Copy)
on boxed fields (#1157)Documentation
cargo add
in example (#1149)Styling
Path::display()
when printing a path (#1150)MessageGraph::new()
can't actually fail (#1151)Self
inas_str_name
(#1154)Testing
skip_debug
forprost::Oneof
(#1148)Build
protoc
from same repo as .proto-files (#1136)v0.13.2
Compare Source
PROST! is a Protocol Buffers implementation for the Rust Language.
prost
generates simple, idiomatic Rust code fromproto2
andproto3
files.Features
Bug Fixes
Styling
Testing
parse_date
fuzzing target (#1127)parse_duration
fuzzing target (#1129)Miscellaneous Tasks
cargo test
withoutall-targets
(#1118)Build
proc-macro
in Cargo.toml (#1102)tests
crates (#1101)cmake
(#1137)v0.13.1
Compare Source
PROST! is a Protocol Buffers implementation for the Rust Language.
prost
generates simple, idiomatic Rust code fromproto2
andproto3
files.Bug fixes
v0.13.0
Compare Source
note: this version was yanked in favor of 0.13.1
PROST! is a Protocol Buffers implementation for the Rust Language.
prost
generates simple, idiomatic Rust code fromproto2
andproto3
files.This major update brings new features and fixes:
Breaking changes
derive Copy trait for messages where possible (#950)
prost-build
will automatically derivetrait Copy
for some messages. If you manually implementCopy
you should remove your implementation.Change generated functions signatures to remove type parameters (#1045)
The function signature of
trait Message
is changed to useimpl Buf
instead of a named generic type. If you implementtrait Message
, you should change the function signature.Lightweight error value in TryFrom for enums (#1010)
When a
impl TryFrom<i32>
is generated byprost
derive macros, it will now return the error typeUnknownEnumValue
instead ofDecodeError
. The new error can be used to retreive the integer value that failed to convert.Features
fix: Only touch include file if contents is changed (#1058)
Most generated files are untouched when the contents doesn't change. Use the same mechanism for include file as well.
Dependencies
Documentation
Internal
rust-random/rand (rand)
v0.9.0
Compare Source
Security and unsafe
ReseedingRng
andThreadRng
. Instead, it is recommended to callThreadRng::reseed
on fConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.