Skip to content

Commit

Permalink
v0.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 3, 2024
1 parent 4810a9a commit 3d0ca66
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
<a name="v0.33.0"></a>
# [v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.33.0) - 2024-12-03

TODO: Changelog.

- Format Version: 37
- Upstream Commit: [`f33dba028704d108497b8c06943b9bbc3d14c42b`](https://github.com/rust-lang/rust/commit/f33dba028704d108497b8c06943b9bbc3d14c42b)
- Diff: [v0.32.2...v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.32.2...v0.33.0)

<a name="v0.33.0"></a>
# [v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.33.0) - 2024-12-03

- Format Version: 37
- Upstream Commit: [`f33dba028704d108497b8c06943b9bbc3d14c42b`](https://github.com/rust-lang/rust/commit/f33dba028704d108497b8c06943b9bbc3d14c42b)
- Diff: [v0.32.2...v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.32.2...v0.33.0)

Add new `is_unsafe` field in `Static` struct.

<a name="v0.32.2"></a>
# [v0.32.2](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.2) - 2024-10-23

Expand All @@ -11,7 +29,7 @@
# [v0.32.1](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.1) - 2024-10-20

**New Feature**: The optional `rustc-hash` cargo feature has been added.
This changes the hashing algorithm used to [a speedy non-cryptographic hashing algorith](https://github.com/rust-lang/rustc-hash) also used in rustc.
This changes the hashing algorithm used to [a speedy non-cryptographic hashing algorith](https://github.com/rust-lang/rustc-hash) also used in rustc.
This has lead to [modest but appreciable](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types/near/474855731) performace gains for some consumers
([#42](https://github.com/rust-lang/rustdoc-types/pull/42), [rust#131936](https://github.com/rust-lang/rust/pull/131936)).

Expand Down
2 changes: 1 addition & 1 deletion COMMIT.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4b658657da324253a201fc7baf70d106db5df7e0
f33dba028704d108497b8c06943b9bbc3d14c42b
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustdoc-types"
version = "0.32.2"
version = "0.33.0"
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Types for rustdoc's json output"
Expand Down
18 changes: 17 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
/// This integer is incremented with every breaking change to the API,
/// and is returned along with the JSON blob as [`Crate::format_version`].
/// Consuming code should assert that this value matches the format version(s) that it supports.
pub const FORMAT_VERSION: u32 = 36;
pub const FORMAT_VERSION: u32 = 37;

/// The root of the emitted JSON blob.
///
Expand Down Expand Up @@ -1237,6 +1237,22 @@ pub struct Static {
///
/// It's not guaranteed that it'll match the actual source code for the initial value.
pub expr: String,

/// Is the static `unsafe`?
///
/// This is only true if it's in an `extern` block, and not explicity marked
/// as `safe`.
///
/// ```rust
/// unsafe extern {
/// static A: i32; // unsafe
/// safe static B: i32; // safe
/// }
///
/// static C: i32 = 0; // safe
/// static mut D: i32 = 0; // safe
/// ```
pub is_unsafe: bool,
}

/// A primitive type declaration. Declarations of this kind can only come from the core library.
Expand Down

0 comments on commit 3d0ca66

Please sign in to comment.