Skip to content

Commit 9e859e6

Browse files
feat: Bump nightly version used by pavexc to generate JSON docs from 'nightly-2025-01-04' to 'nightly-2025-02-22'
1 parent 0b0e1ba commit 9e859e6

File tree

9 files changed

+134
-52
lines changed

9 files changed

+134
-52
lines changed

libs/Cargo.lock

Lines changed: 73 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/Cargo.toml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ version = "0.1.75"
1818
vergen-gitcl = { version = "1.0.5", features = ["build"] }
1919
ahash = "0.8"
2020
anstyle = "1.0.10"
21-
anyhow = "1.0.95"
21+
anyhow = "1.0.96"
2222
better-panic = "0.3.0"
2323
bimap = "0.6.3"
2424
bincode = "1"
2525
biscotti = "0.3.5"
26-
bytes = "1.9.0"
26+
bytes = "1.10.0"
2727
camino = "1"
2828
cargo_metadata = "0.19.1"
2929
cargo-like-utils = "0.2"
3030
cargo-manifest = "0.19.1"
3131
clap = "4"
32-
clap-stdin = "0.5.1"
33-
config = "0.15.6"
32+
clap-stdin = "0.6.0"
33+
config = "0.15.8"
3434
console = "0.15.10"
3535
convert_case = "0.7"
3636
xxhash-rust = "0.8.15"
37-
elsa = "1.10.0"
37+
elsa = "1.11.0"
3838
fixedbitset = "0.5"
3939
form_urlencoded = "1.2"
4040
fs-err = "3"
4141
futures-util = "0.3"
4242
globwalk = "0.9.1"
43-
guppy = "0.17.12"
43+
guppy = "0.17.17"
4444
heck = "0.5.0"
4545
hex = "0.4.3"
4646
http = "1"
@@ -50,24 +50,24 @@ hyper = "1"
5050
hyper-util = "0.1"
5151
include_dir = "0.7.4"
5252
indexmap = "2"
53-
indicatif = "0.17.9"
54-
insta = "1.42.0"
53+
indicatif = "0.17.11"
54+
insta = "1.42.1"
5555
itertools = "0.14"
56-
jsonwebtoken = "9.3.0"
56+
jsonwebtoken = "9.3.1"
5757
la-arena = "0.3"
58-
libc = "0.2.169"
58+
libc = "0.2.170"
5959
libtest-mimic = "0.8.1"
60-
liquid = "0.26.9"
61-
liquid-core = "0.26.9"
60+
liquid = "0.26.11"
61+
liquid-core = "0.26.11"
6262
matchit = "0.8.6"
63-
miette = "7.4.0"
63+
miette = "7.5.0"
6464
mime = "0.3"
6565
num_cpus = "1.16.0"
6666
object-pool = "0.6"
67-
once_cell = "1.20.2"
67+
once_cell = "1.20.3"
6868
paste = "1"
6969
path-absolutize = "3.1.1"
70-
pem = "3.0.4"
70+
pem = "3.0.5"
7171
percent-encoding = "2"
7272
petgraph = { version = "0.7", default-features = false }
7373
pin-project-lite = "0.2"
@@ -87,37 +87,37 @@ reqwest = { version = "0.12", default-features = false, features = [
8787
reqwest-middleware = "0.4"
8888
reqwest-retry = "0.7.0"
8989
reqwest-tracing = "0.5.5"
90-
ring = "0.17.8"
90+
ring = "0.17.11"
9191
ron = "0.8"
9292
rustc-hash = "2"
9393
rusqlite = "0.32"
94-
rustdoc-types = "0.33.0"
94+
rustdoc-types = "0.35.0"
9595
sanitize-filename = "0.6"
9696
self-replace = "1.5.0"
97-
semver = "1.0.24"
98-
serde = "1.0.217"
97+
semver = "1.0.25"
98+
serde = "1.0.218"
9999
serde_html_form = "0.2"
100-
serde_json = "1.0.135"
100+
serde_json = "1.0.139"
101101
serde_path_to_error = "0.1"
102102
serde_stacker = "0.1"
103103
sha2 = "0.10.8"
104-
similar = "2.6.0"
104+
similar = "2.7.0"
105105
smallvec = "1"
106-
sqlx = { version = "0.8" }
106+
sqlx = { version = "0.8", default-features = false }
107107
socket2 = "0.5.8"
108108
static_assertions = "1.1.0"
109109
supports-color = "3.0.2"
110110
supports-hyperlinks = "3.1.0"
111111
supports-unicode = "3.0.0"
112112
syn = "2.0"
113-
tar = "0.4.43"
114-
tempfile = "3.15.0"
113+
tar = "0.4.44"
114+
tempfile = "3.17.1"
115115
terminal_size = "0.4"
116116
textwrap = "0.16.1"
117117
thiserror = "2"
118118
time = "0.3.37"
119119
tokio = "1.43.0"
120-
toml = "0.8.19"
120+
toml = "0.8.20"
121121
toml_edit = "0.22"
122122
tracing = { version = "0.1.41", default-features = false }
123123
tracing-log = "0.2"
@@ -128,7 +128,7 @@ trybuild = "1.0"
128128
type-safe-id = "0.3"
129129
ubyte = "0.10.4"
130130
unicode-width = "0.2"
131-
ureq = "2.12.1"
131+
ureq = "3.0.6"
132132
uuid = "1"
133133
walkdir = "2.5.0"
134134
windows-sys = "0.59.0"
@@ -138,7 +138,7 @@ xdg-home = "1.3.0"
138138
# on their system at runtime.
139139
xz2 = { version = "0.1", features = ["static"] }
140140
zip = { version = "2", default-features = false }
141-
owo-colors = "4.1.0"
141+
owo-colors = "4.2.0"
142142
async-trait = "0.1"
143143
humantime-serde = "1"
144144

libs/pavex_cli/src/prebuilt.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn download_prebuilt(
3131
);
3232
let err_msg = "Failed to download prebuilt binary from GitHub";
3333
let response = ureq::get(&download_url).call().context(err_msg)?;
34-
if response.status() < 200 || response.status() >= 300 {
34+
if !response.status().is_success() {
3535
return Err(
3636
anyhow::anyhow!("GitHub returned a {} status code", response.status())
3737
.context(err_msg)
@@ -40,6 +40,7 @@ pub fn download_prebuilt(
4040
}
4141
let mut bytes = Vec::new();
4242
response
43+
.into_body()
4344
.into_reader()
4445
.read_to_end(&mut bytes)
4546
.context(err_msg)?;
@@ -162,10 +163,13 @@ mod tests {
162163
// We don't commit the ZIP archive to the repository to avoid bloating it,
163164
// so we need to download it on the fly.
164165
let bytes = {
166+
use std::io::Read as _;
167+
165168
let mut bytes = Vec::new();
166169
ureq::get(source_url)
167170
.call()
168171
.expect("Failed to download ZIP archive")
172+
.into_body()
169173
.into_reader()
170174
.read_to_end(&mut bytes)
171175
.expect("Failed to read the response body");
@@ -186,10 +190,13 @@ mod tests {
186190
// We don't commit the ZIP archive to the repository to avoid bloating it,
187191
// so we need to download it on the fly.
188192
let bytes = {
193+
use std::io::Read as _;
194+
189195
let mut bytes = Vec::new();
190196
ureq::get(source_url)
191197
.call()
192198
.expect("Failed to download ZIP archive")
199+
.into_body()
193200
.into_reader()
194201
.read_to_end(&mut bytes)
195202
.expect("Failed to read the response body");

libs/pavex_cli/src/version.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ pub fn latest_released_version() -> Result<Version, anyhow::Error> {
1111
let response = ureq::get("https://api.github.com/repos/LukeMathWalker/pavex/releases/latest")
1212
.call()
1313
.context("Failed to query GitHub's API for the latest release")?;
14-
if response.status() < 200 || response.status() >= 300 {
14+
if !response.status().is_success() {
1515
anyhow::bail!(
1616
"Failed to query GitHub's API for the latest release. It returned an error status code ({})",
1717
response.status()
1818
);
1919
}
20-
let response: Response = response.into_json()?;
20+
let response: Response = response.into_body().read_json()?;
2121
let version = Version::parse(&response.tag_name)
2222
.context("Failed to parse the version returned by GitHub's API for the latest release")?;
2323
Ok(version)

libs/pavex_cli_flock/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pavex_cli_shell = { path = "../pavex_cli_shell", version = "0.1.75" }
1313
tracing = { workspace = true }
1414
libc = { workspace = true }
1515
fs-err = { workspace = true }
16-
windows-sys = { version = "0.52.0", features = [
16+
windows-sys = { workspace = true, features = [
1717
"Win32_Foundation",
1818
"Win32_Security",
1919
"Win32_Storage_FileSystem",

libs/pavex_session_sqlx/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ async-trait = { workspace = true }
2323
tokio = { workspace = true, features = ["sync"] }
2424
tracing = { workspace = true }
2525
anyhow = { workspace = true }
26-
sqlx = { workspace = true, features = ["uuid", "time"] }
26+
sqlx = { workspace = true, default-features = true, features = [
27+
"uuid",
28+
"time",
29+
] }
2730

2831
[dev-dependencies]
2932
pavex_session_sqlx = { path = ".", features = ["postgres"] }

libs/pavexc/src/compiler/resolvers.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ pub(crate) fn resolve_type(
5757
generic_bindings: &GenericBindings,
5858
) -> Result<ResolvedType, anyhow::Error> {
5959
match type_ {
60-
Type::ResolvedPath(rustdoc_types::Path { id, args, name }) => {
60+
Type::ResolvedPath(rustdoc_types::Path {
61+
id,
62+
args,
63+
path: name,
64+
}) => {
6165
let re_exporter_crate_name = {
6266
let mut re_exporter = None;
6367
if let Some(krate) = krate_collection.get_crate_by_package_id(used_by_package_id) {

libs/pavexc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ mod utils;
1313

1414
/// The Rust toolchain used by `pavexc` to generate JSON docs, unless
1515
/// overridden by the user.
16-
pub static DEFAULT_DOCS_TOOLCHAIN: &str = "nightly-2025-01-04";
16+
pub static DEFAULT_DOCS_TOOLCHAIN: &str = "nightly-2025-02-22";

0 commit comments

Comments
 (0)