File tree 4 files changed +23
-5
lines changed
4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" v0.41.0 " ></a >
2
+ # [ v0.41.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.41.0 ) - 2025-04-20
3
+
4
+ ** Breaking Change** : Make ` Span::begin ` and ` Span::end ` consistantly one-indexed
5
+ for both line and column
6
+ ([ rust #139919 ] ( https://github.com/rust-lang/rust/pull/139919 ) ).
7
+ Previously this was incorrecly documented both line and column being
8
+ zero-indexed, but line was actually one-indexed
9
+ ([ rust #139906 ] ( https://github.com/rust-lang/rust/issues/139906 ) ).
10
+
11
+ No changes were made to the schema (i.e. the public api for this crate is
12
+ unchanged), but the format version has been bumped, as this may effect consuming
13
+ tools regardless.
14
+
15
+ - Format Version: 45
16
+ - Upstream Commit: [ ` 076016d55afdf760c7e30e23c5df8f0c079cd85b ` ] ( https://github.com/rust-lang/rust/commit/076016d55afdf760c7e30e23c5df8f0c079cd85b )
17
+ - Diff: [ v0.40.0...v0.41.0] ( https://github.com/rust-lang/rustdoc-types/compare/v0.40.0...v0.41.0 )
18
+
1
19
<a name =" v0.40.0 " ></a >
2
20
# [ v0.40.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.40.0 ) - 2025-04-19
3
21
Original file line number Diff line number Diff line change 1
- 8c50f95cf088c6ccf882a152bd46c090efa3a1c7
1
+ 076016d55afdf760c7e30e23c5df8f0c079cd85b
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rustdoc-types"
3
- version = " 0.40 .0"
3
+ version = " 0.41 .0"
4
4
edition = " 2018"
5
5
license = " MIT OR Apache-2.0"
6
6
description = " Types for rustdoc's json output"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
29
29
/// This integer is incremented with every breaking change to the API,
30
30
/// and is returned along with the JSON blob as [`Crate::format_version`].
31
31
/// Consuming code should assert that this value matches the format version(s) that it supports.
32
- pub const FORMAT_VERSION : u32 = 44 ;
32
+ pub const FORMAT_VERSION : u32 = 45 ;
33
33
34
34
/// The root of the emitted JSON blob.
35
35
///
@@ -204,9 +204,9 @@ pub struct Item {
204
204
pub struct Span {
205
205
/// The path to the source file for this span relative to the path `rustdoc` was invoked with.
206
206
pub filename : PathBuf ,
207
- /// Zero indexed Line and Column of the first character of the `Span`
207
+ /// One indexed Line and Column of the first character of the `Span`.
208
208
pub begin : ( usize , usize ) ,
209
- /// Zero indexed Line and Column of the last character of the `Span`
209
+ /// One indexed Line and Column of the last character of the `Span`.
210
210
pub end : ( usize , usize ) ,
211
211
}
212
212
You can’t perform that action at this time.
0 commit comments