Skip to content

Commit d87f2f9

Browse files
committed
Bump Rust version
1 parent 5ba474b commit d87f2f9

6 files changed

Lines changed: 22 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
rust:
1919
- stable
20-
- 1.74.0
20+
- 1.85.0
2121
steps:
2222
- uses: actions/checkout@v2
2323
- uses: actions-rs/toolchain@v1
@@ -37,7 +37,7 @@ jobs:
3737
matrix:
3838
rust:
3939
- stable
40-
- 1.74.0
40+
- 1.85.0
4141
steps:
4242
- uses: actions/checkout@v2
4343
- uses: actions-rs/toolchain@v1
@@ -66,6 +66,14 @@ jobs:
6666
fail-fast: false
6767
matrix:
6868
job:
69+
# Ubuntu 24.04
70+
- { os: ubuntu-24.04 , target: x86_64-unknown-linux-gnu , use-cross: false }
71+
- { os: ubuntu-24.04 , target: x86_64-unknown-linux-musl , use-cross: true }
72+
- { os: ubuntu-24.04 , target: arm-unknown-linux-gnueabihf , use-cross: true }
73+
- { os: ubuntu-24.04 , target: aarch64-unknown-linux-gnu , use-cross: true }
74+
- { os: ubuntu-24.04 , target: i586-unknown-linux-gnu , use-cross: true }
75+
- { os: ubuntu-24.04 , target: i686-unknown-linux-gnu , use-cross: true }
76+
- { os: ubuntu-24.04 , target: i686-unknown-linux-musl , use-cross: true }
6977
# Ubuntu 22.04
7078
- { os: ubuntu-22.04 , target: x86_64-unknown-linux-gnu , use-cross: false }
7179
- { os: ubuntu-22.04 , target: x86_64-unknown-linux-musl , use-cross: true }
@@ -74,18 +82,8 @@ jobs:
7482
- { os: ubuntu-22.04 , target: i586-unknown-linux-gnu , use-cross: true }
7583
- { os: ubuntu-22.04 , target: i686-unknown-linux-gnu , use-cross: true }
7684
- { os: ubuntu-22.04 , target: i686-unknown-linux-musl , use-cross: true }
77-
# Ubuntu 20.04
78-
- { os: ubuntu-20.04 , target: x86_64-unknown-linux-gnu , use-cross: false }
79-
- { os: ubuntu-20.04 , target: x86_64-unknown-linux-musl , use-cross: true }
80-
- { os: ubuntu-20.04 , target: arm-unknown-linux-gnueabihf , use-cross: true }
81-
- { os: ubuntu-20.04 , target: aarch64-unknown-linux-gnu , use-cross: true }
82-
- { os: ubuntu-20.04 , target: i586-unknown-linux-gnu , use-cross: true }
83-
- { os: ubuntu-20.04 , target: i686-unknown-linux-gnu , use-cross: true }
84-
- { os: ubuntu-20.04 , target: i686-unknown-linux-musl , use-cross: true }
8585
# MacOS 14
8686
- { os: macos-14 , target: aarch64-apple-darwin , use-cross: false }
87-
# Macos 13
88-
- { os: macos-13 , target: x86_64-apple-darwin , use-cross: false }
8987
# Windows 2022
9088
- { os: windows-2022 , target: i686-pc-windows-msvc , use-cross: false }
9189
- { os: windows-2022 , target: x86_64-pc-windows-gnu , use-cross: false }
@@ -137,7 +135,7 @@ jobs:
137135
- uses: actions-rs/toolchain@v1
138136
with:
139137
profile: minimal
140-
toolchain: 1.74.0
138+
toolchain: 1.85.0
141139
override: true
142140
- run: rustup component add rustfmt
143141
- uses: actions-rs/cargo@v1
@@ -154,7 +152,7 @@ jobs:
154152
- uses: actions-rs/toolchain@v1
155153
with:
156154
profile: minimal
157-
toolchain: 1.74.0
155+
toolchain: 1.85.0
158156
override: true
159157
- run: rustup component add clippy
160158
- uses: actions-rs/cargo@v1

Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ description = "Collect system and environment information for bug reports"
44
categories = ["command-line-interface"]
55
homepage = "https://github.com/sharkdp/bugreport"
66
repository = "https://github.com/sharkdp/bugreport"
7-
keywords = [
8-
"bugreport",
9-
"diagnostics",
10-
"cross-platform",
11-
"cli",
12-
"terminal"
13-
]
7+
keywords = ["bugreport", "diagnostics", "cross-platform", "cli", "terminal"]
148
license = "MIT/Apache-2.0"
159
authors = ["David Peter <mail@david-peter.de>"]
16-
edition = "2018"
10+
edition = "2024"
1711
version = "0.5.1"
12+
rust-version = "1.85"
1813

1914
[features]
2015
default = ["collector_operating_system", "git_hash", "format_markdown"]

examples/custom_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::result::Result;
22

3-
use bugreport::{bugreport, collector::*, format::Markdown, report::ReportEntry, CrateInfo};
3+
use bugreport::{CrateInfo, bugreport, collector::*, format::Markdown, report::ReportEntry};
44

55
struct MyCollector {}
66

src/collector/directory_entries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::fs::{self, DirEntry};
33
use std::io::ErrorKind;
44
use std::path::{Path, PathBuf};
55

6-
use crate::{report::ReportEntry, Collector, CrateInfo, Result};
6+
use crate::{Collector, CrateInfo, Result, report::ReportEntry};
77

88
use super::CollectionError;
99

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'a> BugReport<'a> {
6868
self
6969
}
7070

71-
fn generate(&mut self) -> Report {
71+
fn generate(&mut self) -> Report<'_> {
7272
let mut sections = vec![];
7373

7474
for collector in &mut self.collectors {
@@ -141,7 +141,9 @@ mod tests {
141141
use crate::collector::*;
142142
use crate::format::Markdown;
143143

144-
std::env::set_var("BUGREPORT_TEST", "42");
144+
unsafe {
145+
std::env::set_var("BUGREPORT_TEST", "42");
146+
}
145147

146148
let report = BugReport::from_name_and_version("dummy", "0.1")
147149
.info(EnvironmentVariables::list(&["BUGREPORT_TEST"]))

tests/test_collector_directory_entries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn dir_exists() -> Result<(), std::io::Error> {
8888
fn new() {
8989
DirectoryEntries::new("a", "/a");
9090
// Not possible yet: DirectoryEntries::new(String::from("b"), PathBuf::from("/b"));
91-
DirectoryEntries::new(&String::from("c"), &PathBuf::from("/c"));
91+
DirectoryEntries::new(&String::from("c"), PathBuf::from("/c"));
9292
new_with_title_from_local_variable();
9393
}
9494

0 commit comments

Comments
 (0)