Skip to content

Commit 9eb6cc6

Browse files
committed
update upgrading guide
1 parent b72f2f6 commit 9eb6cc6

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

_data/stable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121

2222
- title: Upgrading
2323
path: "/upgrading"
24+
anchor: true
2425
guides: []

_includes/guide_ul.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
<section class="guide-topic">
3-
<h4 class="guide-topic-title">{{ topic.title }}</h4>
3+
<h4 class="guide-topic-title">
4+
{% if topic.anchor %}<a href="{{ topic.path | prepend:"/" | prepend: topic.path | prepend:"/guides/1" | append:"/" }}>{% endif %}
5+
{{ topic.title }}
6+
{% if topic.anchor %}</a>{% endif %}
7+
</h4>
48
<ul class="nav">
59
{% if page.collection == "legacy" %}
610
{% for guide in topic.guides %}

_stable/upgrading.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
title: Upgrade from 0.14 to 1
2+
title: Upgrade from v0.14 to v1
33
layout: guide
44
permalink: /guides/1/upgrading/
55
---
66

77
This guide is meant to help you upgrade from v0.14 of hyper to v1.
88

9-
## Backports and Deprecations
9+
> Were you looking for the [v0.14 guides](/guides/0.14/)?
10+
11+
## Prepare with Backports and Deprecations
1012

1113
Before upgrading, you can start preparing your 0.14 code base by enabling the
1214
`backports` and `deprecated` features of hyper in your `Cargo.toml`. Like
@@ -21,10 +23,10 @@ The `backports` feature brings several of the new types from 1.0 to 0.14. If
2123
you enable `deprecated` feature as well, it will add deprecation warnings to
2224
any of hyper's types that have direct backports available.
2325

24-
**NOTE**: This won't give you warnings about changes where backports were not
26+
> **NOTE**: This won't give you warnings about changes where backports were not
2527
able to be provided.
2628

27-
## Changelog
29+
## Read the Changelog
2830

2931
As a general rule, we tried hard to mark every possible breaking change in the
3032
[changelog][]. Read through the "breaking changes" section of the 1.0 releases
@@ -64,5 +66,6 @@ The listening server acceptor can be replaced with a simple loop.
6466

6567
[changelog]: https://github.com/hyperium/hyper/blob/master/CHANGELOG.md#v100-2023-11-15
6668
[`hyper-util`]: https://crates.io/crates/hyper-util
69+
[http-body-util]: https://docs.rs/http-body-util
6770
[legacy]: https://docs.rs/hyper-util/latest/hyper_util/client/legacy/struct.Client.html
6871
[auto]: https://docs.rs/hyper-util/latest/hyper_util/server/conn/auto/struct.Builder.html

css/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ a:hover, a:focus {
3131
color: $primary-highlight-color;
3232
}
3333

34-
code, a > code {
34+
code {
3535
background: $code-bg-color;
3636
color: $secondary-color;
3737
padding: 3px 5px;

0 commit comments

Comments
 (0)