Skip to content

Commit 6e18d43

Browse files
authored
Merge pull request #1661 from dtolnay/codespan
Update codespan-reporting to 0.13
2 parents 3b78c0b + 4fe50c3 commit 6e18d43

File tree

17 files changed

+44
-39
lines changed

17 files changed

+44
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
rust: [nightly, beta, stable, 1.82.0]
24+
rust: [nightly, beta, stable, 1.87.0]
2525
os: [ubuntu]
2626
cc: [g++]
2727
flags: ['']

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = ["ffi", "c++"]
1212
license = "MIT OR Apache-2.0"
1313
links = "cxxbridge1"
1414
repository = "https://github.com/dtolnay/cxx"
15-
rust-version = "1.82"
15+
rust-version = "1.87"
1616

1717
[features]
1818
default = ["std", "cxxbridge-flags/default"] # c++11

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cxx = "1.0"
2424
cxx-build = "1.0"
2525
```
2626

27-
*Compiler support: requires rustc 1.82+ and c++11 or newer*<br>
27+
*Compiler support: requires rustc 1.87+ and c++11 or newer*<br>
2828
*[Release notes](https://github.com/dtolnay/cxx/releases)*
2929

3030
<br>

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fn main() {
3232
println!("cargo:rustc-check-cfg=cfg(skip_ui_tests)");
3333

3434
if let Some(rustc) = rustc_version() {
35-
if rustc.minor < 82 {
36-
println!("cargo:warning=The cxx crate requires a rustc version 1.82.0 or newer.");
35+
if rustc.minor < 87 {
36+
println!("cargo:warning=The cxx crate requires a rustc version 1.87.0 or newer.");
3737
println!(
3838
"cargo:warning=You appear to be building with: {}",
3939
rustc.version,

flags/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = "Compiler configuration of the `cxx` crate (implementation detail)
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
repository = "https://github.com/dtolnay/cxx"
10-
rust-version = "1.82"
10+
rust-version = "1.87"
1111

1212
[features]
1313
default = [] # c++11

gen/build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ homepage = "https://cxx.rs"
1111
keywords = ["ffi", "build-dependencies"]
1212
license = "MIT OR Apache-2.0"
1313
repository = "https://github.com/dtolnay/cxx"
14-
rust-version = "1.82"
14+
rust-version = "1.87"
1515

1616
[features]
1717
parallel = ["cc/parallel"]
1818

1919
[dependencies]
2020
cc = "1.0.101"
21-
codespan-reporting = "0.12"
21+
codespan-reporting = "0.13"
2222
indexmap = "2.9.0"
2323
proc-macro2 = { version = "1.0.74", default-features = false, features = ["span-locations"] }
2424
quote = { version = "1.0.35", default-features = false }

gen/cmd/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ homepage = "https://cxx.rs"
1010
keywords = ["ffi"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/cxx"
13-
rust-version = "1.82"
13+
rust-version = "1.87"
1414

1515
[[bin]]
1616
name = "cxxbridge"
1717
path = "src/main.rs"
1818

1919
[dependencies]
2020
clap = { version = "4.3.11", default-features = false, features = ["error-context", "help", "std", "suggestions", "usage"] }
21-
codespan-reporting = "0.12"
21+
codespan-reporting = "0.13"
2222
indexmap = "2.9.0"
2323
proc-macro2 = { version = "1.0.74", default-features = false, features = ["span-locations"] }
2424
quote = { version = "1.0.35", default-features = false }

gen/lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ exclude = ["build.rs"]
1010
keywords = ["ffi"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/cxx"
13-
rust-version = "1.82"
13+
rust-version = "1.87"
1414

1515
[dependencies]
16-
codespan-reporting = "0.12"
16+
codespan-reporting = "0.13"
1717
indexmap = "2.9.0"
1818
proc-macro2 = { version = "1.0.74", default-features = false, features = ["span-locations"] }
1919
quote = { version = "1.0.35", default-features = false }

gen/src/error.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ fn sort_syn_errors(error: syn::Error) -> Vec<syn::Error> {
111111
errors
112112
}
113113

114-
fn display_syn_error(stderr: &mut dyn WriteColor, path: &Path, source: &str, error: syn::Error) {
114+
fn display_syn_error(
115+
mut stderr: &mut dyn WriteColor,
116+
path: &Path,
117+
source: &str,
118+
error: syn::Error,
119+
) {
115120
let span = error.span();
116121
let start = span.start();
117122
let end = span.end();
@@ -152,7 +157,7 @@ fn display_syn_error(stderr: &mut dyn WriteColor, path: &Path, source: &str, err
152157
let diagnostic = diagnose(file, start_offset..end_offset, error);
153158

154159
let config = Config::default();
155-
let _ = term::emit(stderr, &config, &files, &diagnostic);
160+
let _ = term::emit_to_write_style(&mut stderr, &config, &files, &diagnostic);
156161
}
157162

158163
fn diagnose(file: usize, range: Range<usize>, error: syn::Error) -> Diagnostic<usize> {

macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://cxx.rs"
1010
keywords = ["ffi"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/cxx"
13-
rust-version = "1.82"
13+
rust-version = "1.87"
1414

1515
[lib]
1616
proc-macro = true

0 commit comments

Comments
 (0)